From ca2fdf8ffd447f10a836a90235dddeee3b554153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 26 Nov 2018 11:33:29 +0100 Subject: [PATCH] [build/makefiles] Commands to create a scenario logger and creator --- Makefile | 1 + build/config.mak | 2 ++ build/scenario/Makefile | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 build/scenario/Makefile diff --git a/Makefile b/Makefile index 2670b127f..bb10ae979 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ include escher/Makefile # Executable Makefiles include apps/Makefile include build/struct_layout/Makefile +include build/scenario/Makefile include quiz/Makefile # Quiz needs to be included at the end products += $(objs) diff --git a/build/config.mak b/build/config.mak index fe0a49664..4181b8944 100644 --- a/build/config.mak +++ b/build/config.mak @@ -11,6 +11,7 @@ EPSILON_APPS ?= calculation graph code statistics probability solver sequence re EPSILON_I18N ?= en fr es de pt EPSILON_GETOPT ?= 0 MATRICES_ARE_DEFINED ?=1 +ESCHER_LOG_EVENTS_BINARY ?= 0 include build/defaults.mak include build/platform.$(PLATFORM).mak @@ -36,3 +37,4 @@ ifeq (update,$(EPSILON_BOOT_PROMPT)) SFLAGS += -DEPSILON_BOOT_PROMPT=$(EPSILON_UPDATE_PROMPT) endif SFLAGS += -DMATRICES_ARE_DEFINED=$(MATRICES_ARE_DEFINED) +SFLAGS += -DESCHER_LOG_EVENTS_BINARY=$(ESCHER_LOG_EVENTS_BINARY) diff --git a/build/scenario/Makefile b/build/scenario/Makefile new file mode 100644 index 000000000..4950ab228 --- /dev/null +++ b/build/scenario/Makefile @@ -0,0 +1,11 @@ +.PHONY: scenario_logger +scenario_logger: + $(Q) make clean && make -j8 DEBUG=1 PLATFORM=blackbox epsilon.bin + $(Q) cp epsilon.bin epsilon_scenario_logger.bin + @echo "Run ./epsilon_scenario_logger.bin --logAfter 0 < scenario.esc to log a scenario" + +.PHONY: scenario_creator +scenario_creator: + $(Q) make clean && make -j8 DEBUG=1 ESCHER_LOG_EVENTS_BINARY=1 PLATFORM=simulator epsilon.elf + $(Q) cp epsilon.elf epsilon_scenario_creator.elf + @echo "Run ./epsilon_scenario_creator.elf > scenario.esc to create a scenario"