]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: eeprom: Fix config dependency
authorIvan Orlov <ivan.orlov@codethink.co.uk>
Fri, 23 Feb 2024 17:14:20 +0000 (17:14 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 4 Mar 2024 15:25:47 +0000 (10:25 -0500)
We should have CONFIG_DM_I2C or CONFIG_SYS_I2C_LEGACY enabled in
order for `cmd/eeprom.c` to compile as it depends on the i2c functions
which are not compiled otherwise. Update the Kconfig entry for the
'eeprom' command correspondingly.

Signed-off-by: Ivan Orlov <ivan.orlov@codethink.co.uk>
Reviewed-by: Tom Rini <trini@konsulko.com>
cmd/Kconfig

index 438c6d1c48006ca68c3d625e0fd087537e8b8f98..3d204edfa3f8172303ecf5798835507261a2def3 100644 (file)
@@ -740,6 +740,7 @@ config CRC32_VERIFY
 
 config CMD_EEPROM
        bool "eeprom - EEPROM subsystem"
+       depends on DM_I2C || SYS_I2C_LEGACY
        help
          (deprecated, needs conversion to driver model)
          Provides commands to read and write EEPROM (Electrically Erasable