Skip to content

Commit a89d481

Browse files
Gulshan Singhgsingh93
authored andcommitted
Add QEMU upstream remote and checkout stable branch
1 parent c517ab8 commit a89d481

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Makefile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ TRUSTY_TARGET ?= qemu-generic-arm64-test-debug
403403
TRUSTY_BUILD_ROOT ?= $(OUT_DIR)/trusty
404404
TRUSTY_OUT := $(TRUSTY_BUILD_ROOT)/build-$(TRUSTY_TARGET)
405405

406+
QEMU_BRANCH := stable-7.2
407+
406408
ATF_DIR := $(TRUSTY_OUT)/atf/qemu/debug
407409
ATF_BL1 := $(ATF_DIR)/bl1.bin
408410
ATF_BL33 := $(ATF_DIR)/bl33.bin
@@ -424,14 +426,19 @@ trusty-init: | $(TRUSTY_SRC)
424426
$(MAKE) trusty-qemu-init
425427

426428
# 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
428434
.PHONY: trusty-qemu-init
429435
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+
433439
cd $(TRUSTY_SRC)/external/qemu \
434-
&& git checkout aosp/upstream-master \
440+
&& git fetch upstream $(QEMU_BRANCH) \
441+
&& git checkout upstream/$(QEMU_BRANCH) \
435442
&& git cherry-pick a4d024b2fdcc478402d00890965eeacb5542c12e \
436443
&& git cherry-pick f060068503259b661be8bd8c803291ff6412d2d6 \
437444
&& git cherry-pick 8a933fbb9c6fb8add1c74f5b523ecb44da7372fa \

0 commit comments

Comments
 (0)