[U-Boot] [PATCH v3 27/28] mtd: simplify Makefile
Miquel Raynal
miquel.raynal at bootlin.com
Tue Dec 4 23:57:13 UTC 2018
Now that we do not rely on the command enabled to compile core files,
let's simplify the MTD root Makefile.
Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
---
drivers/mtd/Makefile | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index 68b1029734..fc4c7e0d1f 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -3,9 +3,7 @@
# (C) Copyright 2000-2007
# Wolfgang Denk, DENX Software Engineering, wd at denx.de.
-ifneq (,$(findstring y,$(CONFIG_MTD)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND)$(CONFIG_CMD_SF)$(CONFIG_CMD_MTD)))
-obj-y += mtdcore.o mtd_uboot.o
-endif
+obj-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o
obj-$(CONFIG_DM_MTD) += mtd-uclass.o
obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
obj-$(CONFIG_MTD_CONCAT) += mtdconcat.o
--
2.19.1
More information about the U-Boot
mailing list