public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU
@ 2023-02-08 18:01 Rebecca Cran
  2023-02-09 13:22 ` [edk2-devel] " Gerd Hoffmann
       [not found] ` <AS8P191MB18780D41137D0434440D8687A2E9A@AS8P191MB1878.EURP191.PROD.OUTLOOK.COM>
  0 siblings, 2 replies; 6+ messages in thread
From: Rebecca Cran @ 2023-02-08 18:01 UTC (permalink / raw)
  To: devel
  Cc: Rebecca Cran, Ard Biesheuvel, Jiewen Yao, Jordan Justen,
	Gerd Hoffmann

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>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
---
 OvmfPkg/build.sh | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index 91b1442ade6b..b0334fb76e74 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 $?
-
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-05  6:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 18:01 [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU Rebecca Cran
2023-02-09 13:22 ` [edk2-devel] " Gerd Hoffmann
2023-02-09 17:35   ` Ard Biesheuvel
     [not found] ` <AS8P191MB18780D41137D0434440D8687A2E9A@AS8P191MB1878.EURP191.PROD.OUTLOOK.COM>
2023-09-04 14:24   ` Mike Beaton
2023-09-04 20:14     ` Rebecca Cran
2023-09-05  6:20       ` Mike Beaton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox