summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand/Makefile
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-13 01:40:42 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-08-13 01:40:42 +0200
commit4fb09b81920e5dfdfc4576883186733f0bd6059c (patch)
tree2c78a7e50edac0f91614d6b3c8bd16a859126595 /drivers/mtd/onenand/Makefile
parent00b1883a4cac59d97cd297b1a3a398db85982865 (diff)
downloadu-boot-imx-4fb09b81920e5dfdfc4576883186733f0bd6059c.zip
u-boot-imx-4fb09b81920e5dfdfc4576883186733f0bd6059c.tar.gz
u-boot-imx-4fb09b81920e5dfdfc4576883186733f0bd6059c.tar.bz2
drivers/mtd/onenand: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mtd/onenand/Makefile')
-rw-r--r--drivers/mtd/onenand/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/Makefile b/drivers/mtd/onenand/Makefile
index 92074b2..1d35a57 100644
--- a/drivers/mtd/onenand/Makefile
+++ b/drivers/mtd/onenand/Makefile
@@ -25,8 +25,9 @@ include $(TOPDIR)/config.mk
LIB := $(obj)libonenand.a
-COBJS := onenand_uboot.o onenand_base.o onenand_bbt.o
+COBJS-$(CONFIG_CMD_ONENAND) := onenand_uboot.o onenand_base.o onenand_bbt.o
+COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))