summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-15 15:47:36 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-15 15:47:36 +0100
commita923400805d41fc57c760d72588ab88485005690 (patch)
treec119095484ccb41a5ed387ade0448bab9d6e441e /src
parentec15c42ab8f5919d62d563798c62e12bed9c843e (diff)
prototest makefile: add prototest_bench_{energy,cycles} switch
Diffstat (limited to 'src')
-rw-r--r--src/app/prototest/Makefile.inc19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/app/prototest/Makefile.inc b/src/app/prototest/Makefile.inc
index 9bd4ac6..39d3053 100644
--- a/src/app/prototest/Makefile.inc
+++ b/src/app/prototest/Makefile.inc
@@ -1,11 +1,20 @@
-loop ?= 1
+ifeq (${prototest_bench_energy}, 1)
+ loop = 1
+ COMMON_FLAGS += -DPROTOTEST_BENCH_ENERGY
+endif
+
+ifeq (${prototest_bench_cycles}, 1)
+ loop = 0
+ arch_drivers += ,counter
+ COMMON_FLAGS += -DPROTOTEST_BENCH_CYCLES
+endif
-ifeq (${prototest_include_global}, 1)
- COMMON_FLAGS += -DPROTOTEST_INCLUDE_GLOBAL
+ifneq (${prototest_include_global}, )
+ COMMON_FLAGS += -DPROTOTEST_INCLUDE_GLOBAL=${prototest_include_global}
endif
-ifeq (${prototest_include_local}, 1)
- COMMON_FLAGS += -DPROTOTEST_INCLUDE_LOCAL
+ifneq (${prototest_include_local}, )
+ COMMON_FLAGS += -DPROTOTEST_INCLUDE_LOCAL=${prototest_include_local}
endif
ifeq (${prototest_arduinojson}, 1)