1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Makefile.include: renode: add emulate-only target

This commit is contained in:
Alexandre Abadie 2020-11-21 18:44:36 +01:00
parent 82eb48964d
commit 02ee3a7d4d
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

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