summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand/Makefile
diff options
context:
space:
mode:
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 92074b2552..1d35a57d84 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))
OpenPOWER on IntegriCloud