[PATCH 25/42] drivers: Simplify Makefile checks

Simon Glass sjg at chromium.org
Fri Sep 27 00:35:50 CEST 2024


The extra ifdefs can be avoided now. Tidy up this Makefile

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/Makefile b/drivers/Makefile
index 1b7db812828..260bde957db 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -45,9 +45,7 @@ obj-$(CONFIG_$(SPL_)VIDEO) += video/
 
 obj-y += bus/
 
-ifndef CONFIG_TPL_BUILD
-ifndef CONFIG_VPL_BUILD
-ifdef CONFIG_XPL_BUILD
+ifdef CONFIG_SPL_BUILD
 
 obj-$(CONFIG_SPL_CPU) += cpu/
 obj-$(CONFIG_SPL_CRYPTO) += crypto/
@@ -70,8 +68,6 @@ obj-$(CONFIG_SPL_SATA) += ata/ scsi/
 obj-$(CONFIG_SPL_LEGACY_BLOCK) += block/
 obj-$(CONFIG_SPL_THERMAL) += thermal/
 
-endif
-endif
 endif
 
 ifdef CONFIG_TPL_BUILD
@@ -80,7 +76,7 @@ obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR) += ddr/fsl/
 
 endif
 
-ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_TPL_BUILD),)
+ifeq ($(CONFIG_XPL_BUILD),)
 
 obj-y += ata/
 obj-$(CONFIG_DM_DEMO) += demo/
-- 
2.43.0



More information about the U-Boot mailing list