summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-02-11 13:43:55 (GMT)
committerTom Rini <trini@konsulko.com>2017-02-12 19:30:31 (GMT)
commit554c73c0256c9e22af1b89e842a310b73b5eb657 (patch)
tree9c539305a39a0675d63fe31ad78c1d3f03e081df /common/Makefile
parente856bdcfb49291d30b19603fc101bea096c48196 (diff)
downloadu-boot-fsl-qoriq-554c73c0256c9e22af1b89e842a310b73b5eb657.tar.xz
flash: compile common/flash.c iif CONFIG_MTD_NO_FLASH is enabled
The whole of common/flash.c is guarded by #if defined() ... #endif. Move the conditional to common/Makefile. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index ecc23e6..86225f1 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -67,7 +67,7 @@ endif
# others
obj-$(CONFIG_BOOTSTAGE) += bootstage.o
obj-$(CONFIG_CONSOLE_MUX) += iomux.o
-obj-y += flash.o
+obj-$(CONFIG_MTD_NOR_FLASH) += flash.o
obj-$(CONFIG_CMD_KGDB) += kgdb.o kgdb_stubs.o
obj-$(CONFIG_I2C_EDID) += edid.o
obj-$(CONFIG_KALLSYMS) += kallsyms.o