From 0ded029735303c0db04510792bfc5f0dcc62f5af Mon Sep 17 00:00:00 2001 From: Julien Stephan Date: Thu, 2 Jul 2026 17:26:57 +0200 Subject: 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 --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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. -- cgit v1.3.1