Patchwork [U-Boot] mtd/nand/Makefile: simplify ifdefs

login
register
mail settings
Submitter Andreas Bießmann
Date Nov. 2, 2012, 12:12 p.m.
Message ID <1351858340-17062-1-git-send-email-andreas.devel@googlemail.com>
Download mbox | patch
Permalink /patch/196551/
State Superseded
Delegated to: Scott Wood
Headers show

Comments

Andreas Bießmann - Nov. 2, 2012, 12:12 p.m.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Cc: Scott Wood <scottwood@freescale.com>
---
 drivers/mtd/nand/Makefile |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

Patch

diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index beb99ca..862fad2 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -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