@@ -401,6 +401,7 @@ TRUSTY_SRC ?= $(ROOT_DIR)/trusty
401
401
TRUSTY_TARGET ?= qemu-generic-arm64-test-debug
402
402
TRUSTY_BUILD_ROOT ?= $(OUT_DIR ) /trusty
403
403
TRUSTY_OUT := $(TRUSTY_BUILD_ROOT ) /build-$(TRUSTY_TARGET )
404
+ TRUSTY_KERNEL_IMAGE := $(TRUSTY_OUT ) /linux-build/arch/arm64/boot/Image
404
405
405
406
QEMU_BRANCH := stable-7.2
406
407
@@ -446,7 +447,7 @@ trusty-qemu-init:
446
447
sed -i 's|include project/qemu-qemu-inc.mk|include $(CONFIG_DIR)/trusty/qemu-qemu-inc.mk|g' $(TRUSTY_SRC)/trusty/device/arm/generic-arm64/project/qemu-inc.mk
447
448
448
449
.PHONY : trusty
449
- trusty $(ATF_BL1 ) : | $(TRUSTY_SRC )
450
+ trusty $(ATF_BL1 ) $( TRUSTY_KERNEL_IMAGE ) : | $(TRUSTY_SRC )
450
451
$(BEAR_CMD ) $(TRUSTY_SRC ) /trusty/vendor/google/aosp/scripts/build.py \
451
452
--build-root $(TRUSTY_BUILD_ROOT ) \
452
453
--skip-tests $(TRUSTY_TARGET )
@@ -461,6 +462,11 @@ trusty-bl33 $(ATF_BL33): $(UBOOT_BIN)
461
462
trusty_clean :
462
463
rm -rf $(TRUSTY_OUT )
463
464
465
+ # When Trusty is enabled, use the kernel image built by Trusty
466
+ ifeq ($(TRUSTY ) ,1)
467
+ KERNEL_IMAGE := $(TRUSTY_KERNEL_IMAGE )
468
+ endif
469
+
464
470
# #
465
471
# # Android
466
472
# #
@@ -602,11 +608,6 @@ endif
602
608
603
609
QEMU_ARGS += -append "$(QEMU_KERNEL_CMDLINE ) $(QEMU_EXTRA_KERNEL_CMDLINE ) "
604
610
605
- # Force using the Trusty kernel image for now, there are boot errors with other images
606
- ifeq ($(TRUSTY ) ,1)
607
- QEMU_KERNEL_IMAGE := $(TRUSTY_OUT ) /linux-build/arch/arm64/boot/Image
608
- endif
609
-
610
611
RUN_DEPS := $(QEMU_KERNEL_IMAGE )
611
612
RUN_DIR := $(ROOT_DIR )
612
613
0 commit comments