[build/makefiles] Commands to create a scenario logger and creator

This commit is contained in:
Léa Saviot
2018-11-26 11:33:29 +01:00
committed by EmilieNumworks
parent 2772e0397f
commit ca2fdf8ffd
3 changed files with 14 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)

11
build/scenario/Makefile Normal file
View File

@@ -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"