summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)