summaryrefslogtreecommitdiff
path: root/nuttx/drivers/sercomm
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-24 18:14:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-24 18:14:23 +0000
commit0c5d9269fdbbab093a66c430fb8be57c8ef9bf8a (patch)
tree5916d90d8141dbd0c5b92edf41e9011321f2a80d /nuttx/drivers/sercomm
parent8fc61a47027beb6309fc16fcc9901059a62026d3 (diff)
downloadpx4-nuttx-0c5d9269fdbbab093a66c430fb8be57c8ef9bf8a.tar.gz
px4-nuttx-0c5d9269fdbbab093a66c430fb8be57c8ef9bf8a.tar.bz2
px4-nuttx-0c5d9269fdbbab093a66c430fb8be57c8ef9bf8a.zip
A few more Calypso/Compal updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4514 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/sercomm')
-rw-r--r--nuttx/drivers/sercomm/Make.defs9
1 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/drivers/sercomm/Make.defs b/nuttx/drivers/sercomm/Make.defs
index b8ccba957..3585f5314 100644
--- a/nuttx/drivers/sercomm/Make.defs
+++ b/nuttx/drivers/sercomm/Make.defs
@@ -33,8 +33,15 @@
#
############################################################################
+# File descriptor support is needed for this driver
+
ifneq ($(CONFIG_NFILE_DESCRIPTORS),0)
+# The sercomm driver should not be build for all platforms. Only build it
+# is so configured
+
+ifeq ($(CONFIG_SERCOMM_CONSOLE),y)
+
# Include serial drivers
CSRCS += console.c uart.c
@@ -43,4 +50,6 @@ CSRCS += console.c uart.c
DEPPATH += --dep-path sercomm
VPATH += :sercomm
+
+endif
endif