File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -495,8 +495,9 @@ QEMU_DTS := $(OUT_DIR)/qemu.dts
495
495
.PHONY : android-dtb
496
496
android-dtb $(ANDROID_DTB ) :
497
497
ifneq ($(ARCH ) ,arm64)
498
- $(error android-dtb is only supported from arm64)
498
+ $(error android-dtb is only supported from arm64)
499
499
endif
500
+
500
501
QEMU_EXTRA_ARGS="-M dumpdtb=$(QEMU_DTB)" $(MAKE) run
501
502
$(DTC) -I dtb -O dts $(QEMU_DTB) > $(QEMU_DTS)
502
503
cat $(QEMU_DTS) $(ATF_DIR)/firmware.android.dts > $(ANDROID_DTS)
@@ -591,7 +592,6 @@ else ifeq ($(ARCH),i386)
591
592
else
592
593
ifeq ($(TRUSTY),1)
593
594
# Trusty needs to use its own build of QEMU which has some custom patches
594
- # QEMU_BIN ?= $(TRUSTY_OUT)/qemu-build/qemu-system-aarch64
595
595
QEMU_BIN ?= $(TRUSTY_OUT ) /qemu-build/aarch64-softmmu/qemu-system-aarch64
596
596
else
597
597
QEMU_BIN ?= qemu-system-aarch64
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ QEMU_EXTRA_CFLAGS := \
57
57
# Newer capstone releases have the headers under include/capstone
58
58
QEMU_EXTRA_CFLAGS += -I$(TRUSTY_TOP ) /$(QEMU_ROOT ) /capstone/include/capstone
59
59
60
+ $(QEMU_MAKEFILE ) : QEMU_ARCH:=$(QEMU_ARCH )
60
61
$(QEMU_MAKEFILE ) : QEMU_ROOT:=$(QEMU_ROOT )
61
62
$(QEMU_MAKEFILE ) : QEMU_BUILD_BASE:=$(QEMU_BUILD_BASE )
62
63
$(QEMU_MAKEFILE ) : QEMU_TARGET:=$(QEMU_TARGET )
@@ -71,6 +72,9 @@ $(QEMU_MAKEFILE):
71
72
--disable-gcrypt $(QEMU_AOSP_DISABLES ) \
72
73
--enable-slirp
73
74
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
+
74
78
$(QEMU_BIN ) : QEMU_BUILD_BASE:=$(QEMU_BUILD_BASE )
75
79
$(QEMU_BIN ) : $(QEMU_MAKEFILE ) .PHONY
76
80
$(MAKE ) -C $(QEMU_BUILD_BASE )
You can’t perform that action at this time.
0 commit comments