Skip to content

Commit 646a513

Browse files
author
Gulshan Singh
committed
Add QEMU upstream remote and checkout stable branch
1 parent 2634c41 commit 646a513

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
@@ -400,6 +400,8 @@ TRUSTY_TARGET ?= qemu-generic-arm64-test-debug
400400
TRUSTY_BUILD_ROOT ?= $(OUT_DIR)/trusty
401401
TRUSTY_OUT := $(TRUSTY_BUILD_ROOT)/build-$(TRUSTY_TARGET)
402402

403+
QEMU_BRANCH := stable-7.2
404+
403405
ATF_DIR := $(TRUSTY_OUT)/atf/qemu/debug
404406
ATF_BL1 := $(ATF_DIR)/bl1.bin
405407
ATF_BL33 := $(ATF_DIR)/bl33.bin
@@ -421,14 +423,19 @@ trusty-init: | $(TRUSTY_SRC)
421423
$(MAKE) trusty-qemu-init
422424

423425
# 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
425431
.PHONY: trusty-qemu-init
426432
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+
430436
cd $(TRUSTY_SRC)/external/qemu \
431-
&& git checkout aosp/upstream-master \
437+
&& git fetch upstream $(QEMU_BRANCH) \
438+
&& git checkout upstream/$(QEMU_BRANCH) \
432439
&& git cherry-pick a4d024b2fdcc478402d00890965eeacb5542c12e \
433440
&& git cherry-pick f060068503259b661be8bd8c803291ff6412d2d6 \
434441
&& git cherry-pick 8a933fbb9c6fb8add1c74f5b523ecb44da7372fa \

0 commit comments

Comments
 (0)