From a923400805d41fc57c760d72588ab88485005690 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 15 Nov 2018 15:47:36 +0100 Subject: prototest makefile: add prototest_bench_{energy,cycles} switch --- src/app/prototest/Makefile.inc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src') 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) -- cgit v1.2.3