diff --git a/makefiles/tools/qemu.inc.mk b/makefiles/tools/qemu.inc.mk index 9644dfcee5..9e5732b784 100644 --- a/makefiles/tools/qemu.inc.mk +++ b/makefiles/tools/qemu.inc.mk @@ -2,6 +2,7 @@ EMULATOR ?= qemu-system-arm EMULATOR_MACHINE ?= $(BOARD) EMULATOR_MONITOR_PORT ?= 45454 EMULATOR_MONITOR_FLAGS ?= telnet::$(EMULATOR_MONITOR_PORT),server,nowait +FLASHFILE ?= $(ELFFILE) EMULATOR_FLAGS = -machine $(EMULATOR_MACHINE) -device loader,file=$(ELFFILE) \ -serial stdio \ diff --git a/makefiles/tools/renode.inc.mk b/makefiles/tools/renode.inc.mk index 94acf1547b..0335fe0372 100644 --- a/makefiles/tools/renode.inc.mk +++ b/makefiles/tools/renode.inc.mk @@ -1,6 +1,9 @@ RENODE ?= renode RENODE_IMAGE_FILE ?= $(ELFFILE) RENODE_BOARD_CONFIG ?= $(BOARDDIR)/dist/board.resc + +# Global build system configurations +FLASHFILE ?= $(ELFFILE) EMULATORDEPS += $(RENODE_BOARD_CONFIG) # Use renode interactive commands to specify the image file and board config