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