diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-12-19 11:02:58 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-12-19 11:02:58 +0100 |
commit | 6493f6eecf82eb9aec5e57e69529dc16d9068bf6 (patch) | |
tree | 6e4145a80b37aacbc8ff43c40009f178054990f8 /src/arch/msp430fr5969lp | |
parent | ef3ef99299fe3c4ea4cc9ab1c6526da2eb89e1a5 (diff) |
set required features in app Makefile
Diffstat (limited to 'src/arch/msp430fr5969lp')
-rw-r--r-- | src/arch/msp430fr5969lp/Makefile.inc | 19 |
1 files changed, 17 insertions, 2 deletions
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} |