diff mbox series

[17/17] Makefile: Move drivers/i2c/ into drivers/Makefile

Message ID 20210710211425.17.If0d6c9decfecc6dd5f96cb044fea1502b1087567@changeid
State Accepted
Commit 537892065ac1428a48193d4b0fa7bf827e8d0d44
Delegated to: Tom Rini
Headers show
Series Makefile: Start simplifying Makefile rules (Part A) | expand

Commit Message

Simon Glass July 11, 2021, 3:14 a.m. UTC
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         | 1 -
 drivers/Makefile | 4 ----
 2 files changed, 5 deletions(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 8cae2718377..f7c6dab6bc6 100644
--- a/Makefile
+++ b/Makefile
@@ -808,7 +808,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/ \
diff --git a/drivers/Makefile b/drivers/Makefile
index af56c2ceb97..aea10f13a4b 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -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/