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:
parent
82eb48964d
commit
02ee3a7d4d
@ -398,7 +398,7 @@ INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
|||||||
include $(RIOTCPU)/$(CPU)/Makefile.include
|
include $(RIOTCPU)/$(CPU)/Makefile.include
|
||||||
|
|
||||||
# Include emulator code if available and if emulate target is used
|
# Include emulator code if available and if emulate target is used
|
||||||
ifneq (,$(filter emulate,$(MAKECMDGOALS)))
|
ifneq (,$(filter emulate%,$(MAKECMDGOALS)))
|
||||||
# Use renode as default emulator
|
# Use renode as default emulator
|
||||||
RIOT_EMULATOR ?= renode
|
RIOT_EMULATOR ?= renode
|
||||||
-include $(RIOTMAKE)/tools/$(RIOT_EMULATOR).inc.mk
|
-include $(RIOTMAKE)/tools/$(RIOT_EMULATOR).inc.mk
|
||||||
@ -742,7 +742,15 @@ debug-server:
|
|||||||
$(call check_cmd,$(DEBUGSERVER),Debug server program)
|
$(call check_cmd,$(DEBUGSERVER),Debug server program)
|
||||||
$(DEBUGSERVER) $(DEBUGSERVER_FLAGS)
|
$(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)))
|
ifeq (,$(filter debug%,$(MAKECMDGOALS)))
|
||||||
$(call check_cmd,$(EMULATOR),Emulation program)
|
$(call check_cmd,$(EMULATOR),Emulation program)
|
||||||
$(EMULATOR) $(EMULATOR_FLAGS)
|
$(EMULATOR) $(EMULATOR_FLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user