]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile: Move drivers/i2c/ into drivers/Makefile
authorSimon Glass <sjg@chromium.org>
Sun, 11 Jul 2021 03:14:37 +0000 (21:14 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jul 2021 18:29:37 +0000 (14:29 -0400)
This rule should not be in the top-level Makefile. Now that we have a
consistent set of I2C Kconfigs for U-Boot proper, SPL and TPL, we can move
it.

Make use of the existing SPL/TPL rule in drivers/Makefile instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile
drivers/Makefile

index 4f386ed47b697517b63fb5ff3fbeb40dbb9b6fbc..b4ae66b2014f0293547e19fe2eb5481e0c108f24 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -815,7 +815,6 @@ libs-y += disk/
 libs-y += drivers/
 libs-y += drivers/dma/
 libs-y += drivers/gpio/
-libs-y += drivers/i2c/
 libs-y += drivers/net/
 libs-y += drivers/net/phy/
 libs-y += drivers/power/ \
index 2d4e30229b61c8325b99ceba16e9023c051645a8..56749278f43b1bac5ce7406d516b2411af9d72ea 100644 (file)
@@ -9,11 +9,7 @@ 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/
-
-# 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/