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 | |
parent | ef3ef99299fe3c4ea4cc9ab1c6526da2eb89e1a5 (diff) |
set required features in app Makefile
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/app/bench/Makefile.inc | 1 | ||||
-rw-r--r-- | src/app/ledblink/Makefile.inc | 2 | ||||
-rw-r--r-- | src/arch/msp430fr5969lp/Makefile.inc | 19 |
4 files changed, 22 insertions, 2 deletions
@@ -7,6 +7,8 @@ CXXFLAGS = -std=c++14 TARGETS = src/app/${app}/main.cc src/os/object/cpp_helpers.cc src/os/object/outputstream.cc +include src/app/${app}/Makefile.inc + ifneq ($(findstring lm75,${drivers}), ) TARGETS += src/driver/lm75.cc COMMON_FLAGS += -DDRIVER_LM75 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} |