From: rebecca@bsdio.com
To: devel@edk2.groups.io, michael.d.kinney@intel.com, "Justen,
Jordan L" <jordan.l.justen@intel.com>,
Laszlo Ersek <lersek@redhat.com>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: Re: [edk2-devel] [PATCH 1/2] OvmfPkg/build.sh: use newer '-drive if=pflash' syntax when running qemu
Date: Thu, 25 Jul 2019 09:46:04 -0600 [thread overview]
Message-ID: <11cb5057-89e0-e76a-1a3e-d32fd47f8dd9@bsdio.com> (raw)
In-Reply-To: <E92EE9817A31E24EB0585FDF735412F5B9D7D3D7@ORSMSX113.amr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1785 bytes --]
On 2019-07-24 10:53, Michael D Kinney wrote:
> Rebecca,
>
> If you are interested, I prototyped using a python
> script and POSTBUILD statement in the DSC file to
> support 'run' targets for OVMF in the following
> branch. This potentially allows the same code to
> be used for all host OS environments to launch QEMU.
>
> https://github.com/tianocore/edk2-staging/tree/Bug_1525_FmpDevicePkg_MultipleControllers_V2/OvmfPkg
>
> https://github.com/tianocore/edk2-staging/blob/Bug_1525_FmpDevicePkg_MultipleControllers_V2/OvmfPkg/PostBuild.py
>
> https://github.com/tianocore/edk2-staging/blob/Bug_1525_FmpDevicePkg_MultipleControllers_V2/OvmfPkg/Run.py
>
> Could also be extended to support doing either QEMU or
> KVM launch with a -D flag.
Thanks. One issue I noticed is that the POSTBUILD line runs "python".
Can we use $PYTHON_COMMAND there instead? macOS (and FreeBSD) doesn't
install a 'python' symlink, so for macOS you need to run python3 or
python3.7 etc., while on FreeBSD we don't have python3 either, so you
need to use python3.7. Apart from that, the changes seem to work nicely:
the capsules were generated, and when I added 'run' to the build command
line, PuTTY opened and QEMU ran.
On a related subject, I noticed last week that the build still exits
with a return code of 0 if the postbuild step fails: I created
https://bugzilla.tianocore.org/show_bug.cgi?id=1977 .
- Postbuild Start -
TARGET is RELEASE
...
Write binary output file /home/bcran/workspace/Build/Vlv2TbltDevicePkg/Capsules//TestCert/MinnowMaxRelease.cap
Success
cp: MinnowMaxRelease.cap: No such file or directory
build.py...
: error F008: Postbuild process is not success!
- Failed -
Build end time: 21:31:38, Jul.12 2019
Build total time: 00:00:02
build returned 0
--
Rebecca Cran
[-- Attachment #2: Type: text/html, Size: 2953 bytes --]
next prev parent reply other threads:[~2019-07-25 15:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-24 1:51 [PATCH 1/2] OvmfPkg/build.sh: use newer '-drive if=pflash' syntax when running qemu rebecca
2019-07-24 1:51 ` [PATCH 2/2] OvmfPkg/build.sh: use $QEMU_FIRMWARE_DIR as QEMU fat root rebecca
2019-07-24 3:09 ` Jordan Justen
2019-07-24 21:31 ` rebecca
2019-07-24 2:54 ` [edk2-devel] [PATCH 1/2] OvmfPkg/build.sh: use newer '-drive if=pflash' syntax when running qemu Jordan Justen
2019-07-24 3:08 ` rebecca
2019-07-24 12:27 ` Philippe Mathieu-Daudé
2019-07-24 17:26 ` Jordan Justen
2019-07-24 17:39 ` Philippe Mathieu-Daudé
2019-07-24 21:29 ` rebecca
2019-07-24 21:57 ` Jordan Justen
2019-07-25 2:10 ` rebecca
2019-07-24 16:53 ` Michael D Kinney
2019-07-25 15:46 ` rebecca [this message]
2019-07-26 0:14 ` Laszlo Ersek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11cb5057-89e0-e76a-1a3e-d32fd47f8dd9@bsdio.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox