mtd: build RAMTRON and AT45DB drivers only if selected

This commit is contained in:
Juha Niskanen
2017-05-11 07:17:29 -06:00
committed by Gregory Nutt
parent b5c1dd09f5
commit 797e3c3ca4
+9 -1
View File
@@ -39,7 +39,7 @@
ifeq ($(CONFIG_MTD),y)
CSRCS += at45db.c ftl.c ramtron.c mtd_config.c
CSRCS += ftl.c mtd_config.c
ifeq ($(CONFIG_MTD_PARTITION),y)
CSRCS += mtd_partition.c
@@ -80,6 +80,14 @@ ifeq ($(CONFIG_MTD_AT24XX),y)
CSRCS += at24xx.c
endif
ifeq ($(CONFIG_MTD_AT45DB),y)
CSRCS += at45db.c
endif
ifeq ($(CONFIG_MTD_RAMTRON),y)
CSRCS += ramtron.c
endif
ifeq ($(CONFIG_MTD_SST25),y)
CSRCS += sst25.c
endif