Skip to content

Commit d7965e2

Browse files
committed
Symlink to old QEMU binary
1 parent acbd573 commit d7965e2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,9 @@ QEMU_DTS := $(OUT_DIR)/qemu.dts
499499
.PHONY: android-dtb
500500
android-dtb $(ANDROID_DTB):
501501
ifneq ($(ARCH),arm64)
502-
$(error android-dtb is only supported from arm64)
502+
$(error android-dtb is only supported from arm64)
503503
endif
504+
504505
QEMU_EXTRA_ARGS="-M dumpdtb=$(QEMU_DTB)" $(MAKE) run
505506
$(DTC) -I dtb -O dts $(QEMU_DTB) > $(QEMU_DTS)
506507
cat $(QEMU_DTS) $(ATF_DIR)/firmware.android.dts > $(ANDROID_DTS)
@@ -606,7 +607,6 @@ else ifeq ($(ARCH),i386)
606607
else
607608
ifeq ($(TRUSTY),1)
608609
# Trusty needs to use its own build of QEMU which has some custom patches
609-
# QEMU_BIN ?= $(TRUSTY_OUT)/qemu-build/qemu-system-aarch64
610610
QEMU_BIN ?= $(TRUSTY_OUT)/qemu-build/aarch64-softmmu/qemu-system-aarch64
611611
else
612612
QEMU_BIN ?= qemu-system-aarch64

config/trusty/qemu-qemu-inc.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ QEMU_EXTRA_CFLAGS := \
5757
# Newer capstone releases have the headers under include/capstone
5858
QEMU_EXTRA_CFLAGS += -I$(TRUSTY_TOP)/$(QEMU_ROOT)/capstone/include/capstone
5959

60+
$(QEMU_MAKEFILE): QEMU_ARCH:=$(QEMU_ARCH)
6061
$(QEMU_MAKEFILE): QEMU_ROOT:=$(QEMU_ROOT)
6162
$(QEMU_MAKEFILE): QEMU_BUILD_BASE:=$(QEMU_BUILD_BASE)
6263
$(QEMU_MAKEFILE): QEMU_TARGET:=$(QEMU_TARGET)
@@ -71,6 +72,9 @@ $(QEMU_MAKEFILE):
7172
--disable-gcrypt $(QEMU_AOSP_DISABLES) \
7273
--enable-slirp
7374

75+
# Symlink to the old QEMU path so we can always find it at the same place
76+
ln -s $(QEMU_BUILD_BASE)/qemu-system-$(QEMU_ARCH) $(QEMU_BIN)
77+
7478
$(QEMU_BIN): QEMU_BUILD_BASE:=$(QEMU_BUILD_BASE)
7579
$(QEMU_BIN): $(QEMU_MAKEFILE) .PHONY
7680
$(MAKE) -C $(QEMU_BUILD_BASE)

0 commit comments

Comments
 (0)