cmd: eeprom: Fix config dependency
PATCH v2 1/1 cmd: eeprom: Fix config dependency
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.
---
V1 -> V2:
- Remove redundant SYS_SPL_I2C_LEGACY dependency as we can't realy enable commands in the SPL mode
cmd/Kconfig | 1 + 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
@@ -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
Signature · 1 line
2.34.1
Quoted 6 lines · Ivan Orlov
We should have
CONFIG_DM_I2CorCONFIG_SYS_I2C_LEGACYenabled in order forcmd/eeprom.cto compile as it depends on the i2c functions which are not compiled otherwise. Update theKconfigentry for the 'eeprom' command correspondingly.Signed-off-by Ivan Orlov <[email protected]>
Signature · 1 line
Tom
Quoted 7 lines · Ivan Orlov
We should have
CONFIG_DM_I2CorCONFIG_SYS_I2C_LEGACYenabled in order forcmd/eeprom.cto compile as it depends on the i2c functions which are not compiled otherwise. Update theKconfigentry for the 'eeprom' command correspondingly.Signed-off-by Ivan Orlov <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom