diff options
Diffstat (limited to 'nuttx/configs/kwikstik-k40/src/Makefile')
-rwxr-xr-x | nuttx/configs/kwikstik-k40/src/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/configs/kwikstik-k40/src/Makefile b/nuttx/configs/kwikstik-k40/src/Makefile index 8e46fb2d2..9e0d72258 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 |