summaryrefslogtreecommitdiffstats
path: root/nuttx/configs/kwikstik-k40
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-08-16 15:06:39 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-08-16 15:06:39 +0000
commitb318e52bf8df2b3aa783bda305c335c420aeefb6 (patch)
tree0847a3cf16e7da35806646b1316e092e63cc8d9d /nuttx/configs/kwikstik-k40
parent50fb2045c83960bddd72292e111f22c96e296566 (diff)
Fixed for Kinetis build with DEBUG on
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3885 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/configs/kwikstik-k40')
-rwxr-xr-xnuttx/configs/kwikstik-k40/src/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/configs/kwikstik-k40/src/Makefile b/nuttx/configs/kwikstik-k40/src/Makefile
index 8e46fb2d22..9e0d72258b 100755
--- a/nuttx/configs/kwikstik-k40/src/Makefile
+++ b/nuttx/configs/kwikstik-k40/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_lcd.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