summaryrefslogtreecommitdiff
path: root/nuttx/configs/ez80f910200zco/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/ez80f910200zco/src/Makefile')
-rw-r--r--nuttx/configs/ez80f910200zco/src/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/configs/ez80f910200zco/src/Makefile b/nuttx/configs/ez80f910200zco/src/Makefile
index 29273e093..66b05da7d 100644
--- a/nuttx/configs/ez80f910200zco/src/Makefile
+++ b/nuttx/configs/ez80f910200zco/src/Makefile
@@ -43,7 +43,14 @@ CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCH
ASRCS =
AOBJS = $(ASRCS:.S=$(OBJEXT))
-CSRCS = ez80_lowinit.c ez80_leds.c
+
+CSRCS = ez80_lowinit.c
+ifeq ($(CONFIG_ARCH_LEDS),y)
+CSRCS += ez80_leds.c
+endif
+ifeq ($(CONFIG_ARCH_BUTTONS),y)
+CSRCS += ez80_buttons.c
+endif
COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)