summaryrefslogtreecommitdiff
path: root/nuttx/configs/twr-k60n512/src/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-16 15:06:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-16 15:06:39 +0000
commit9e0911ad7919c5082a699ca100f8843b8f690390 (patch)
tree0847a3cf16e7da35806646b1316e092e63cc8d9d /nuttx/configs/twr-k60n512/src/Makefile
parent6ebace65d8530505ae32559d06b6a68b57b1b585 (diff)
downloadpx4-nuttx-9e0911ad7919c5082a699ca100f8843b8f690390.tar.gz
px4-nuttx-9e0911ad7919c5082a699ca100f8843b8f690390.tar.bz2
px4-nuttx-9e0911ad7919c5082a699ca100f8843b8f690390.zip
Fixed for Kinetis build with DEBUG on
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3885 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/twr-k60n512/src/Makefile')
-rwxr-xr-xnuttx/configs/twr-k60n512/src/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/configs/twr-k60n512/src/Makefile b/nuttx/configs/twr-k60n512/src/Makefile
index 2593963b1..4a5e743b7 100755
--- a/nuttx/configs/twr-k60n512/src/Makefile
+++ b/nuttx/configs/twr-k60n512/src/Makefile
@@ -40,12 +40,24 @@ CFLAGS += -I$(TOPDIR)/sched
ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT))
-CSRCS = up_boot.c up_lcd.c up_leds.c up_buttons.c up_spi.c up_usbdev.c
+CSRCS = up_boot.c up_spi.c
+
+ifeq ($(CONFIG_ARCH_LEDS),y)
+CSRCS += up_leds.c
+endif
+
+ifeq ($(CONFIG_ARCH_BUTTONS),y)
+CSRCS += up_buttons.c
+endif
ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += up_nsh.c
endif
+ifeq ($(CONFIG_USBDEV),y)
+CSRCS += up_usbdev.c
+endif
+
ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c
endif