tlv_eeprom: Add missing CRC32 dependency
authorPali Rohár <pali@kernel.org>
Mon, 30 May 2022 08:42:35 +0000 (10:42 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Jul 2022 08:14:04 +0000 (10:14 +0200)
tlv_eeprom uses crc32() function, so add dependency into Kconfig.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefan Roese <sr@denx.de>
cmd/Kconfig

index d5f8421..b3820f1 100644 (file)
@@ -184,6 +184,7 @@ config CMD_REGINFO
 config CMD_TLV_EEPROM
        bool "tlv_eeprom"
        depends on I2C_EEPROM
+       select CRC32
        help
          Display and program the system EEPROM data block in ONIE Tlvinfo
          format. TLV stands for Type-Length-Value.
@@ -192,6 +193,7 @@ config SPL_CMD_TLV_EEPROM
        bool "tlv_eeprom for SPL"
        depends on SPL_I2C_EEPROM
        select SPL_DRIVERS_MISC
+       select SPL_CRC32
        help
          Read system EEPROM data block in ONIE Tlvinfo format from SPL.