From 6493f6eecf82eb9aec5e57e69529dc16d9068bf6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 19 Dec 2017 11:02:58 +0100 Subject: set required features in app Makefile --- src/arch/msp430fr5969lp/Makefile.inc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'src/arch/msp430fr5969lp') diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc index 9786785..8480b71 100644 --- a/src/arch/msp430fr5969lp/Makefile.inc +++ b/src/arch/msp430fr5969lp/Makefile.inc @@ -11,11 +11,26 @@ CXX = /opt/msp430/ti/gcc/bin/msp430-elf-g++ OBJCOPY = /opt/msp430/ti/gcc/bin/msp430-elf-objcopy TARGETS += src/arch/msp430fr5969lp/arch.cc -TARGETS += src/arch/msp430fr5969lp/driver/adc.cc + +ifneq ($(findstring adc,${arch_drivers}), ) + TARGETS += src/arch/msp430fr5969lp/driver/adc.cc +endif + TARGETS += src/arch/msp430fr5969lp/driver/gpio.cc TARGETS += src/arch/msp430fr5969lp/driver/stdout.cc TARGETS += src/arch/msp430fr5969lp/driver/uptime.cc -TARGETS += src/arch/msp430fr5969lp/driver/i2c.cc + +ifneq ($(findstring i2c,${arch_drivers}), ) + TARGETS += src/arch/msp430fr5969lp/driver/i2c.cc +endif + +ifneq ($(findstring spi,${arch_drivers}), ) + TARGETS += src/arch/msp430fr5969lp/driver/spi.cc +endif + +ifneq ($(findstring spi_b,${arch_drivers}), ) + TARGETS += src/arch/msp430fr5969lp/driver/spi_b.cc +endif OBJECTS = ${TARGETS:.cc=.o} -- cgit v1.2.3