summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorRebecca Cran <quic_rcran@quicinc.com>2023-02-08 11:01:38 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-02-09 17:34:32 +0000
commit173a7a7daaad560cd69e1000faca1d2b91774c46 (patch)
tree6fed4fe251bb55cb862a31c50b63f8faf5c94537 /OvmfPkg
parentf6ce1a5cd8932844ec24701d158254ccf75b6159 (diff)
downloadedk2-173a7a7daaad560cd69e1000faca1d2b91774c46.tar.gz
edk2-173a7a7daaad560cd69e1000faca1d2b91774c46.tar.bz2
edk2-173a7a7daaad560cd69e1000faca1d2b91774c46.zip
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>
Diffstat (limited to 'OvmfPkg')
-rwxr-xr-xOvmfPkg/build.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index 91b1442ade..b0334fb76e 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -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 $?
-