Skip to content

Commit

Permalink
qemu_v8: support new path to QEMU v9.2.0
Browse files Browse the repository at this point in the history
Add support for the new build path used for QEMU v9.2.0. The makefile
will search first the new location and then the old location to maintain
backward compatibility.

Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Dec 16, 2024
1 parent 23855b0 commit 1977c37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qemu_v8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ QEMU_RUN_ARGS = $(QEMU_BASE_ARGS) $(QEMU_SCMI_ARGS)
QEMU_RUN_ARGS += $(QEMU_RUN_ARGS_COMMON)
QEMU_RUN_ARGS += -s -S -serial tcp:127.0.0.1:$(QEMU_NW_PORT) -serial tcp:127.0.0.1:$(QEMU_SW_PORT)

# The aarch64-softmmu part of the path to qemu-system-aarch64 was removed
# somewhere between 8.1.2 and 9.1.2
QEMU_BIN = $(or $(wildcard $(QEMU_BUILD)/qemu-system-aarch64),$(wildcard $(QEMU_BUILD)/aarch64-softmmu/qemu-system-aarch64),qemu-system-aarch64-not-found)

.PHONY: run-only
run-only:
ln -sf $(ROOT)/out-br/images/rootfs.cpio.gz $(BINARIES_PATH)/
Expand All @@ -571,8 +575,7 @@ run-only:
$(call launch-terminal,$(QEMU_NW_PORT),"Normal World")
$(call launch-terminal,$(QEMU_SW_PORT),"Secure World")
$(call wait-for-ports,$(QEMU_NW_PORT),$(QEMU_SW_PORT))
cd $(BINARIES_PATH) && $(QEMU_BUILD)/aarch64-softmmu/qemu-system-aarch64 \
$(QEMU_RUN_ARGS)
cd $(BINARIES_PATH) && $(QEMU_BIN) $(QEMU_RUN_ARGS)

ifneq ($(filter check check-rust,$(MAKECMDGOALS)),)
CHECK_DEPS := all
Expand Down

0 comments on commit 1977c37

Please sign in to comment.