This commit is contained in:
Kevin Zhao 2025-08-12 16:59:29 +08:00 committed by GitHub
commit 5443e8c50f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 3 deletions

View File

@ -465,6 +465,13 @@ ifneq (,$(QEMUCMD))
ifneq (,$(QEMUFWVOL))
FIRMWAREVOLUMEPATH := $(PREFIXDEPS)/share/ovmf/$(QEMUFWVOL)
endif
ifneq (,$(QEMUFW_ARM64))
FIRMWAREPATH := $(PREFIXDEPS)/share/aavmf/$(QEMUFW_ARM64)
endif
ifneq (,$(QEMUFWVOL_ARM64))
FIRMWAREVOLUMEPATH := $(PREFIXDEPS)/share/aavmf/$(QEMUFWVOL_ARM64)
endif
endif
ifneq (,$(CLHCMD))

View File

@ -11,8 +11,8 @@ MACHINEACCELERATORS :=
CPUFEATURES := pmu=off
QEMUCMD := qemu-system-aarch64
QEMUFW := AAVMF_CODE.fd
QEMUFWVOL := AAVMF_VARS.fd
QEMUFW_ARM64 := AAVMF_CODE.fd
QEMUFWVOL_ARM64 := AAVMF_VARS.fd
# Firecracker binary name
FCCMD := firecracker

View File

@ -84,7 +84,11 @@ fi
popd
info "Install fd to destdir"
install_dir="${DESTDIR}/${PREFIX}/share/ovmf"
if [ "${ovmf_build}" == "arm64" ]; then
install_dir="${DESTDIR}/${PREFIX}/share/aavmf"
else
install_dir="${DESTDIR}/${PREFIX}/share/ovmf"
fi
mkdir -p "${install_dir}"
if [ "${ovmf_build}" == "sev" ]; then