Use source compiled OVMF in Asterinas

This commit is contained in:
Hsy-Intel
2025-04-22 09:15:42 +08:00
committed by Tate, Hongliang Tian
parent 6912cca51f
commit 93602e9fce

View File

@ -155,7 +155,7 @@ if [ "$OVMF" = "on" ]; then
if [ "$1" = "test" ]; then if [ "$1" = "test" ]; then
echo "We use QEMU direct boot for testing, which does not support OVMF, ignoring OVMF" 1>&2 echo "We use QEMU direct boot for testing, which does not support OVMF, ignoring OVMF" 1>&2
else else
OVMF_PATH="/usr/share/OVMF" OVMF_PATH="/root/ovmf/release"
QEMU_ARGS="${QEMU_ARGS} \ QEMU_ARGS="${QEMU_ARGS} \
-drive if=pflash,format=raw,unit=0,readonly=on,file=$OVMF_PATH/OVMF_CODE.fd \ -drive if=pflash,format=raw,unit=0,readonly=on,file=$OVMF_PATH/OVMF_CODE.fd \
-drive if=pflash,format=raw,unit=1,file=$OVMF_PATH/OVMF_VARS.fd \ -drive if=pflash,format=raw,unit=1,file=$OVMF_PATH/OVMF_VARS.fd \