projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: Introduce CONFIG_MTD_DEVICE to select compilation of mtdcore.o
[oweals/u-boot.git]
/
drivers
/
mtd
/
nand_legacy
/
Makefile
diff --git
a/drivers/mtd/nand_legacy/Makefile
b/drivers/mtd/nand_legacy/Makefile
index 4e29c36e7046646ad03492201dd72f8a4a093d33..a1a9cc92b593c65eb3ef79d76b7636f3d26ebec1 100644
(file)
--- 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))