From 02ee3a7d4d61e861133cf857e79ec82740968a3a Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Sat, 21 Nov 2020 18:44:36 +0100 Subject: [PATCH] Makefile.include: renode: add emulate-only target --- Makefile.include | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index 7337cfd531..f2bdb9ff93 100644 --- a/Makefile.include +++ b/Makefile.include @@ -398,7 +398,7 @@ INCLUDES += -I$(RIOTCPU)/$(CPU)/include include $(RIOTCPU)/$(CPU)/Makefile.include # Include emulator code if available and if emulate target is used -ifneq (,$(filter emulate,$(MAKECMDGOALS))) +ifneq (,$(filter emulate%,$(MAKECMDGOALS))) # Use renode as default emulator RIOT_EMULATOR ?= renode -include $(RIOTMAKE)/tools/$(RIOT_EMULATOR).inc.mk @@ -742,7 +742,15 @@ debug-server: $(call check_cmd,$(DEBUGSERVER),Debug server program) $(DEBUGSERVER) $(DEBUGSERVER_FLAGS) -emulate: +emulate: all $(EMULATORDEPS) +ifeq (,$(filter debug%,$(MAKECMDGOALS))) + $(call check_cmd,$(EMULATOR),Emulation program) + $(EMULATOR) $(EMULATOR_FLAGS) +else + @: +endif + +emulate-only: $(EMULATORDEPS) ifeq (,$(filter debug%,$(MAKECMDGOALS))) $(call check_cmd,$(EMULATOR),Emulation program) $(EMULATOR) $(EMULATOR_FLAGS)