diff mbox series

[2/4] cmd: sys_eeprom reflect I2C dependency in Kconfig

Message ID 20200119071050.16240-3-mrjoel@lixil.net
State New
Headers show
Series Updates for ClearFog EEPROM | expand

Commit Message

Joel Johnson Jan. 19, 2020, 7:10 a.m. UTC
Given that {read,write}_sys_eeprom hardcode reading from I2C EEPROM
devices, make the config dependency reflect this fact.

This allows config to handle cases such as the following, which
previously failed to build.

CONFIG_SPL_DRIVERS_MISC_SUPPORT=n
CONFIG_CMD_SYS_EEPROM=y
CONFIG_SPL_CMD_SYS_EEPROM=y
CONFIG_I2C_EEPROM=y
CONFIG_SPL_I2C_EEPROM=y

Signed-off-by: Joel Johnson <mrjoel at lixil.net>
---

 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 1965245f90..e37c1c6f58 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -250,6 +250,7 @@  config CMD_SYS_EEPROM
 
 config SPL_CMD_SYS_EEPROM
 	bool "sys_eeprom for SPL"
+	depends on SPL_DRIVERS_MISC_SUPPORT
 	depends on SPL_I2C_EEPROM
 	help
 	  Read system EEPROM data block.