From: Anthony PERARD <anthony.perard@citrix.com>
To: <xen-devel@lists.xenproject.org>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>,
Ian Jackson <iwj@xenproject.org>
Subject: [OSSTEST PATCH] ts-xen-build-prep: Grab newer NASM version, to build OVMF
Date: Fri, 13 May 2022 14:35:34 +0100 [thread overview]
Message-ID: <20220513133534.88564-1-anthony.perard@citrix.com> (raw)
Recent versions of OVMF now need a version of NASM that is newer
than the one available on Debian oldstable/buster. They want to use
NASM 2.15.05 [1], which is available in Debian stable/bullseye. The
need to use a newer version started with d3febfd9ade3 ("MdePkg:
Replace Opcode with the corresponding instructions.").
There is no backport package available but the nasm package from
Debian Bullseye can easily be installed on Buster as it has few
dependencies and are already satisfied.
[1] https://github.com/tianocore/edk2/commit/6a890db161cd6d378bec3499a1e774db3f5a27a7
("BaseTools: Upgrade the version of NASM tool")
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
ts-xen-build-prep | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ts-xen-build-prep b/ts-xen-build-prep
index 67b3eae62155..38d4a8e79451 100755
--- a/ts-xen-build-prep
+++ b/ts-xen-build-prep
@@ -250,6 +250,15 @@ END
if ($ho->{Arch} eq 'amd64' && $ho->{Suite} !~ m/squeeze|lenny/) {
target_install_packages($ho, 'libc6-dev-i386');
}
+
+ # Use newer version of NASM, for OVMF
+ if ($ho->{Suite} =~ m/buster/) {
+ my $nasm_pkg = "nasm_2.15.05-1_$ho->{Arch}.deb";
+ my $nasm_url = debian_mirror_url_suite_arch("bullseye", $ho->{Arch})
+ ."/pool/main/n/nasm/$nasm_pkg";
+ target_fetchurl($ho, $nasm_url, "/tmp/$nasm_pkg");
+ target_install_packages($ho, "/tmp/$nasm_pkg");
+ }
}
sub ccache_setup () {
--
Anthony PERARD
next reply other threads:[~2022-05-13 13:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 13:35 Anthony PERARD [this message]
2022-05-13 13:43 ` [OSSTEST PATCH] ts-xen-build-prep: Grab newer NASM version, to build OVMF Anthony PERARD
2022-05-13 14:39 ` Roger Pau Monné
2022-05-13 21:16 ` Ian Jackson
2022-05-13 21:15 ` Ian Jackson
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-all 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=20220513133534.88564-1-anthony.perard@citrix.com \
--to=anthony.perard@citrix.com \
--cc=iwj@xenproject.org \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.