Skip to contentSkip to conversation

mtd/nand/Makefile: simplify ifdefs

PATCH New Andreas Bießmann 1 participant 1 message Nov 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd/nand/Makefile: simplify ifdefs

---
 drivers/mtd/nand/Makefile |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
drivers/mtd/nand/Makefile +2 -6
index beb99ca..862fad2 100644
@@ -27,12 +27,8 @@ LIB	:= $(obj)libnand.o
 
 ifdef CONFIG_CMD_NAND
 ifdef CONFIG_SPL_BUILD
-ifdef CONFIG_SPL_NAND_SIMPLE
-COBJS-y += nand_spl_simple.o
-endif
-ifdef CONFIG_SPL_NAND_LOAD
-COBJS-y	+= nand_spl_load.o
-endif
+COBJS-$(CONFIG_SPL_NAND_SIMPLE)		+= nand_spl_simple.o
+COBJS-$(CONFIG_SPL_NAND_LOAD)		+= nand_spl_load.o
 else
 COBJS-y += nand.o
 COBJS-y += nand_bbt.o
Signature · 1 line
1.7.10.4