summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand_legacy/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-13 01:40:43 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-13 01:40:43 +0200
commit9483df6408c25f16060432de3868901e352e23bc (patch)
tree432e228bb31753ec0306f4e51bc928172ce41d0c /drivers/mtd/nand_legacy/Makefile
parentcc4a0ceeac5462106172d0cc9d9d542233aa3ab2 (diff)
downloadu-boot-imx-9483df6408c25f16060432de3868901e352e23bc.zip
u-boot-imx-9483df6408c25f16060432de3868901e352e23bc.tar.gz
u-boot-imx-9483df6408c25f16060432de3868901e352e23bc.tar.bz2
drivers/mtd/nand_legacy: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mtd/nand_legacy/Makefile')
-rw-r--r--drivers/mtd/nand_legacy/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/nand_legacy/Makefile b/drivers/mtd/nand_legacy/Makefile
index 4e29c36..a1a9cc9 100644
--- a/drivers/mtd/nand_legacy/Makefile
+++ b/drivers/mtd/nand_legacy/Makefile
@@ -25,8 +25,11 @@ include $(TOPDIR)/config.mk
LIB := $(obj)libnand_legacy.a
-COBJS := nand_legacy.o
+ifdef CONFIG_CMD_NAND
+COBJS-$(CONFIG_NAND_LEGACY) := nand_legacy.o
+endif
+COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))