aboutsummaryrefslogtreecommitdiff
path: root/drivers/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-07-10 21:14:36 -0600
committerTom Rini <trini@konsulko.com>2021-07-28 14:29:37 -0400
commit975e7cf301b9641517a1173e2a1047ac0ed20daf (patch)
treed8d3eb3177cb7b8667955818951161ca509c35a0 /drivers/Makefile
parent59e11ebf841454a0991731f1ee6ae4eafd9cb235 (diff)
downloadu-boot-975e7cf301b9641517a1173e2a1047ac0ed20daf.zip
u-boot-975e7cf301b9641517a1173e2a1047ac0ed20daf.tar.gz
u-boot-975e7cf301b9641517a1173e2a1047ac0ed20daf.tar.bz2
i2c: Rename SPL/TPL_I2C_SUPPORT to I2C
Rename these options so that CONFIG_IS_ENABLED can be used with them. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/Makefile')
-rw-r--r--drivers/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/Makefile b/drivers/Makefile
index 8961131..2d4e302 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -9,7 +9,11 @@ obj-$(CONFIG_$(SPL_TPL_)GPIO) += gpio/
obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC) += misc/
obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset/
obj-$(CONFIG_$(SPL_TPL_)FIRMWARE) +=firmware/
-obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) += i2c/
+
+# This is needed for now, until we drop the i2c/ rule in the top-level Makefile
+ifdef CONFIG_SPL_BUILD
+obj-$(CONFIG_$(SPL_TPL_)I2C) += i2c/
+endif
obj-$(CONFIG_$(SPL_TPL_)INPUT) += input/
obj-$(CONFIG_$(SPL_TPL_)LED) += led/
obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += mmc/