mirror of https://github.com/acidanthera/audk.git
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:
parent
f6ce1a5cd8
commit
173a7a7daa
|
@ -245,6 +245,11 @@ else
|
|||
echo using prebuilt tools
|
||||
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 [[ ! -d $QEMU_FIRMWARE_DIR ]]; then
|
||||
|
@ -260,11 +265,3 @@ if [[ "$RUN_QEMU" == "yes" ]]; then
|
|||
$QEMU_COMMAND "$@"
|
||||
exit $?
|
||||
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 $?
|
||||
|
||||
|
|
Loading…
Reference in New Issue