diff options
| author | Julien Stephan <[email protected]> | 2026-07-02 17:26:57 +0200 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2026-07-09 07:18:18 +0200 |
| commit | 0ded029735303c0db04510792bfc5f0dcc62f5af (patch) | |
| tree | b8d4faf1f9589d3fd3b4da04fac1304f7f6c1ee3 /cmd | |
| parent | b8487e7e2d10f83bd356f42b0cc29134eafe97ca (diff) | |
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
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. |
