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

* Re: [edk2-devel] [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU
  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 ` Gerd Hoffmann
  2023-02-09 17:35   ` Ard Biesheuvel
       [not found] ` <AS8P191MB18780D41137D0434440D8687A2E9A@AS8P191MB1878.EURP191.PROD.OUTLOOK.COM>
  1 sibling, 1 reply; 6+ messages in thread
From: Gerd Hoffmann @ 2023-02-09 13:22 UTC (permalink / raw)
  To: devel, quic_rcran; +Cc: Rebecca Cran, Ard Biesheuvel, Jiewen Yao, Jordan Justen

On Wed, Feb 08, 2023 at 11:01:38AM -0700, Rebecca Cran wrote:
> 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>

Acked-by: Gerd Hoffmann <kraxel@redhat.com>

take care,
  Gerd


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

* Re: [edk2-devel] [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU
  2023-02-09 13:22 ` [edk2-devel] " Gerd Hoffmann
@ 2023-02-09 17:35   ` Ard Biesheuvel
  0 siblings, 0 replies; 6+ messages in thread
From: Ard Biesheuvel @ 2023-02-09 17:35 UTC (permalink / raw)
  To: Gerd Hoffmann
  Cc: devel, quic_rcran, Rebecca Cran, Ard Biesheuvel, Jiewen Yao,
	Jordan Justen

On Thu, 9 Feb 2023 at 14:22, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> On Wed, Feb 08, 2023 at 11:01:38AM -0700, Rebecca Cran wrote:
> > 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>
>
> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
>

Merged as #4024

Thanks,

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

* Re: [edk2-devel] [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU
       [not found] ` <AS8P191MB18780D41137D0434440D8687A2E9A@AS8P191MB1878.EURP191.PROD.OUTLOOK.COM>
@ 2023-09-04 14:24   ` Mike Beaton
  2023-09-04 20:14     ` Rebecca Cran
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Beaton @ 2023-09-04 14:24 UTC (permalink / raw)
  To: devel
  Cc: Rebecca Cran, Ard Biesheuvel, Jiewen Yao, Jordan Justen,
	Gerd Hoffmann

> -----Original Message-----
> From: Rebecca Cran <quic_rcran@quicinc.com>
> Sent: Wednesday, February 8, 2023 6:02 PM
> To: devel@edk2.groups.io
> Cc: Rebecca Cran <rebecca@quicinc.com>; Ard Biesheuvel <ardb+tianocore@kernel.org>; Jiewen Yao <jiewen.yao@intel.com>; Jordan Justen <jordan.l.justen@intel.com>; Gerd Hoffmann <kraxel@redhat.com>
> Subject: [PATCH 1/1] 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>
> 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

Hi,

I was trying to raise the issue that I believe this change from Feb.
of this year breaks intended and useful previous behaviour. It
occurred to me that replying to the original post might make most
sense. I've raised what I think are the issues here:
https://bugzilla.tianocore.org/show_bug.cgi?id=4528 .

WIth many thanks in advance for your attention.

Mike Beaton


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108260): https://edk2.groups.io/g/devel/message/108260
Mute This Topic: https://groups.io/mt/96836052/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



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

* Re: [edk2-devel] [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU
  2023-09-04 14:24   ` Mike Beaton
@ 2023-09-04 20:14     ` Rebecca Cran
  2023-09-05  6:20       ` Mike Beaton
  0 siblings, 1 reply; 6+ messages in thread
From: Rebecca Cran @ 2023-09-04 20:14 UTC (permalink / raw)
  To: devel, mjsbeaton, devel, mjsbeaton
  Cc: Rebecca Cran, Ard Biesheuvel, Jiewen Yao, Jordan Justen,
	Gerd Hoffmann

Sorry I've not responded to your emails before now.

I don't normally use the build.sh script, so I'm fine with reverting to 
the previous behavior.


-- 

Rebecca Cran


On 9/4/23 08:24, Mike Beaton wrote:
>> -----Original Message-----
>> From: Rebecca Cran <quic_rcran@quicinc.com>
>> Sent: Wednesday, February 8, 2023 6:02 PM
>> To: devel@edk2.groups.io
>> Cc: Rebecca Cran <rebecca@quicinc.com>; Ard Biesheuvel <ardb+tianocore@kernel.org>; Jiewen Yao <jiewen.yao@intel.com>; Jordan Justen <jordan.l.justen@intel.com>; Gerd Hoffmann <kraxel@redhat.com>
>> Subject: [PATCH 1/1] 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>
>> 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
> Hi,
>
> I was trying to raise the issue that I believe this change from Feb.
> of this year breaks intended and useful previous behaviour. It
> occurred to me that replying to the original post might make most
> sense. I've raised what I think are the issues here:
> https://bugzilla.tianocore.org/show_bug.cgi?id=4528 .
>
> WIth many thanks in advance for your attention.
>
> Mike Beaton
>
>
> 
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108265): https://edk2.groups.io/g/devel/message/108265
Mute This Topic: https://groups.io/mt/96836052/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



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

* Re: [edk2-devel] [PATCH 1/1] OvmfPkg: Update build.sh to allow building OVMF then running QEMU
  2023-09-04 20:14     ` Rebecca Cran
@ 2023-09-05  6:20       ` Mike Beaton
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Beaton @ 2023-09-05  6:20 UTC (permalink / raw)
  To: Rebecca Cran
  Cc: devel, Rebecca Cran, Ard Biesheuvel, Jiewen Yao, Jordan Justen,
	Gerd Hoffmann

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

On Mon, 4 Sept 2023, 21:14 Rebecca Cran, <rebecca@bsdio.com> wrote:

> Sorry I've not responded to your emails before now.
>
> I don't normally use the build.sh script, so I'm fine with reverting to
> the previous behavior.
>

Ah - thank you for the response - that'd be great, if the original people
who ack-d and committed are fine to approve the change back too.

I did put up a patch to this list (my v2 patch reverts the change, and at
the same time removes an unwanted extra white space line which was actually
there at the end of the original file) - but I am tbh not as familiar as I
should be with text-based patches, I'll double check the process and check
that it applies using (whatever I find out) the normal commands (are...!).

Mike

>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108275): https://edk2.groups.io/g/devel/message/108275
Mute This Topic: https://groups.io/mt/96836052/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 2131 bytes --]

^ permalink raw reply	[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