summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-19 11:02:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-19 11:02:58 +0100
commit6493f6eecf82eb9aec5e57e69529dc16d9068bf6 (patch)
tree6e4145a80b37aacbc8ff43c40009f178054990f8 /src
parentef3ef99299fe3c4ea4cc9ab1c6526da2eb89e1a5 (diff)
set required features in app Makefile
Diffstat (limited to 'src')
-rw-r--r--src/app/bench/Makefile.inc1
-rw-r--r--src/app/ledblink/Makefile.inc2
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc19
3 files changed, 20 insertions, 2 deletions
diff --git a/src/app/bench/Makefile.inc b/src/app/bench/Makefile.inc
new file mode 100644
index 0000000..ded88a9
--- /dev/null
+++ b/src/app/bench/Makefile.inc
@@ -0,0 +1 @@
+timer_cycles ?= 1
diff --git a/src/app/ledblink/Makefile.inc b/src/app/ledblink/Makefile.inc
new file mode 100644
index 0000000..d7dcd37
--- /dev/null
+++ b/src/app/ledblink/Makefile.inc
@@ -0,0 +1,2 @@
+timer_cycles ?= 1
+loop ?= 1
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}