OvmfPkg: Update build.sh to allow building OVMF then running QEMU

Allow users to build OVMF then run QEMU by moving the build block above
the run block and removing the exit line.

Signed-off-by: Rebecca Cran <rebecca@quicinc.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Rebecca Cran 2023-02-08 11:01:38 -07:00 committed by mergify[bot]
parent f6ce1a5cd8
commit 173a7a7daa

View File

@ -245,6 +245,11 @@ else
echo using prebuilt tools echo using prebuilt tools
fi fi
#
# Build the edk2 OvmfPkg
#
echo Running edk2 build for OvmfPkg$Processor
build -p $PLATFORMFILE $BUILD_OPTIONS -b $BUILDTARGET -t $TARGET_TOOLS -n $THREADNUMBER -DDEBUG_ON_SERIAL_PORT=TRUE
if [[ "$RUN_QEMU" == "yes" ]]; then if [[ "$RUN_QEMU" == "yes" ]]; then
if [[ ! -d $QEMU_FIRMWARE_DIR ]]; then if [[ ! -d $QEMU_FIRMWARE_DIR ]]; then
@ -260,11 +265,3 @@ if [[ "$RUN_QEMU" == "yes" ]]; then
$QEMU_COMMAND "$@" $QEMU_COMMAND "$@"
exit $? exit $?
fi fi
#
# Build the edk2 OvmfPkg
#
echo Running edk2 build for OvmfPkg$Processor
build -p $PLATFORMFILE $BUILD_OPTIONS -b $BUILDTARGET -t $TARGET_TOOLS -n $THREADNUMBER
exit $?