From: Julien Stephan Date: Thu, 2 Jul 2026 15:26:57 +0000 (+0200) Subject: cmd: kconfig: i2c: add missing I2C API dependency X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0ded029735303c0db04510792bfc5f0dcc62f5af;p=thirdparty%2Fu-boot.git cmd: kconfig: i2c: add missing I2C API dependency CMD_I2C relies on either the Driver Model I2C API or the legacy I2C API, but its Kconfig currently does not enforce either dependency. As a result, enabling CMD_I2C without DM_I2C or SYS_I2C_LEGACY can lead to link errors due to unresolved i2c_* symbols. Require either DM_I2C or SYS_I2C_LEGACY to prevent unsupported configurations while preserving support for legacy platforms. Signed-off-by: Julien Stephan Reviewed-by: Tom Rini Reviewed-by: Heiko Schocher --- diff --git a/cmd/Kconfig b/cmd/Kconfig index ca1039f6a03..637119d3ff5 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1399,6 +1399,7 @@ config CMD_IOTRACE config CMD_I2C bool "i2c" + depends on DM_I2C || SYS_I2C_LEGACY help I2C support.