@@ -403,6 +403,8 @@ TRUSTY_TARGET ?= qemu-generic-arm64-test-debug
403
403
TRUSTY_BUILD_ROOT ?= $(OUT_DIR ) /trusty
404
404
TRUSTY_OUT := $(TRUSTY_BUILD_ROOT ) /build-$(TRUSTY_TARGET )
405
405
406
+ QEMU_BRANCH := stable-7.2
407
+
406
408
ATF_DIR := $(TRUSTY_OUT ) /atf/qemu/debug
407
409
ATF_BL1 := $(ATF_DIR ) /bl1.bin
408
410
ATF_BL33 := $(ATF_DIR ) /bl33.bin
@@ -424,14 +426,19 @@ trusty-init: | $(TRUSTY_SRC)
424
426
$(MAKE) trusty-qemu-init
425
427
426
428
# QEMU 3.0 is used by trusty by default. Let's use something newer, we just
427
- # need to apply some Android-specific patches
429
+ # need to apply some Android-specific patches:
430
+ # a4d024b2 arm_gic: Implement GICC_AIAR, GICC_AEOIR and GICC_AHPPIR
431
+ # f0600685 Fix GIC model for aliased interrupts
432
+ # 8a933fbb hw/virt/arm: double the amount of secure memory
433
+ # 0bfea659 hw/arm/virt: Commandeer most of PCIE_MMIO region for secure memory
428
434
.PHONY : trusty-qemu-init
429
435
trusty-qemu-init :
430
- # TODO: Make this a loop, put commit message of each in a comment
431
- # TODO: Hardcode a stable version commit instead
432
- # TODO: Can we skip the third one
436
+ - cd $( TRUSTY_SRC ) /external/qemu \
437
+ && git remote add upstream https://gitlab.com/qemu-project/qemu.git
438
+
433
439
cd $(TRUSTY_SRC)/external/qemu \
434
- && git checkout aosp/upstream-master \
440
+ && git fetch upstream $(QEMU_BRANCH) \
441
+ && git checkout upstream/$(QEMU_BRANCH) \
435
442
&& git cherry-pick a4d024b2fdcc478402d00890965eeacb5542c12e \
436
443
&& git cherry-pick f060068503259b661be8bd8c803291ff6412d2d6 \
437
444
&& git cherry-pick 8a933fbb9c6fb8add1c74f5b523ecb44da7372fa \
0 commit comments