summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mmcsd/Make.defs
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-06 14:57:01 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-06 14:57:01 +0000
commit7255c5059df9df0082bea450d6cf379ede2ac2d0 (patch)
treefa7c3ed0efb7ac7776edda9b1792a402e9ae827d /nuttx/drivers/mmcsd/Make.defs
parent119a414f4b6ab45cb76ce1ed2704a56ad5ca639c (diff)
downloadpx4-nuttx-7255c5059df9df0082bea450d6cf379ede2ac2d0.tar.gz
px4-nuttx-7255c5059df9df0082bea450d6cf379ede2ac2d0.tar.bz2
px4-nuttx-7255c5059df9df0082bea450d6cf379ede2ac2d0.zip
Patch to removed MMCSD NSLOTS warning from Freddie Chopin
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5316 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mmcsd/Make.defs')
-rw-r--r--nuttx/drivers/mmcsd/Make.defs12
1 files changed, 11 insertions, 1 deletions
diff --git a/nuttx/drivers/mmcsd/Make.defs b/nuttx/drivers/mmcsd/Make.defs
index 850456597..455ac286d 100644
--- a/nuttx/drivers/mmcsd/Make.defs
+++ b/nuttx/drivers/mmcsd/Make.defs
@@ -33,9 +33,17 @@
#
############################################################################
+if ($(CONFIG_MMCSD),y)
+
# Include MMC/SD drivers
-CSRCS += mmcsd_sdio.c mmcsd_spi.c mmcsd_debug.c
+if ($(CONFIG_MMCSD_SDIO),y)
+CSRCS += mmcsd_sdio.c
+endif
+
+if ($(CONFIG_MMCSD_SPI),y)
+CSRCS += mmcsd_spi.c mmcsd_debug.c
+endif
# Include MMC/SD driver build support
@@ -43,4 +51,6 @@ DEPPATH += --dep-path mmcsd
VPATH += :mmcsd
CFLAGS += ${shell $(TOPDIR)/tools/incdir.sh $(INCDIROPT) "$(CC)" $(TOPDIR)/drivers/mmcsd}
+endif
+