Skip to contentSkip to conversation

ts-xen-build-prep: Install newer NASM version, to build OVMF

PATCH In review Anthony PERARD 3 participants 3 messages May 19, 2022 – May 23, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ts-xen-build-prep: Install newer NASM version, to build OVMF

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")

---
 production-config | 2 ++
 ts-xen-build-prep | 2 ++
 2 files changed, 4 insertions(+)
production-config +2 -0
index 9d2e7e0ee492..b77763a19443 100644
@@ -112,6 +112,8 @@ DebianExtraPackages_jessie chiark-scripts_6.0.3~citrix1_all.deb
 DebianExtraPackages_stretch chiark-scripts_6.0.4~citrix1_all.deb
 DebianExtraPackages_buster chiark-scripts_6.0.5~citrix1_all.deb libc-kernel-bug.960271/linux-libc-dev_4.19.118-2.0iwj_.deb
 
+DebianExtraPackages_build_buster nasm_2.15.05-1_.deb
+
 DebianExtraPackages_uefi_i386_jessie   extradebs-uefi-i386-2018-04-01/
 DebianExtraPackages_uefi_amd64_jessie  extradebs-uefi-amd64-2018-04-01/
 DebianExtraPackages_uefi_i386_stretch  extradebs-uefi-i386-2018-04-01/
ts-xen-build-prep +2 -0
index 67b3eae62155..e76c0254bfd0 100755
@@ -250,6 +250,8 @@ END
     if ($ho->{Arch} eq 'amd64' && $ho->{Suite} !~ m/squeeze|lenny/) {
         target_install_packages($ho, 'libc6-dev-i386');
     }
+
+    some_extradebs($ho, [ 'DebianExtraPackages', 'build', $ho->{Suite} ]);
 }
 
 sub ccache_setup () {
Signature · 1 line
Anthony PERARD
Acked-by on v2 1/1
#1 lore raw

Anthony PERARD writes ("[OSSTEST PATCH v2] ts-xen-build-prep: Install newer NASM version, to build OVMF"):

Quoted 6 lines

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.").

Quoted 6 lines

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")

LGTM assuming Roger is also happy...

Signature · 4 lines
Ian Jackson <[email protected]>   These opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.
#2 lore raw
Quoted 11 lines · Ian Jackson

Anthony PERARD writes ("[OSSTEST PATCH v2] ts-xen-build-prep: Install newer NASM version, to build OVMF"):

Quoted 10 lines

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.

Quoted 6 lines
Quoted 2 lines

[1] https://github.com/tianocore/edk2/commit/6a890db161cd6d378bec3499a1e774db3f5a27a7
("BaseTools: Upgrade the version of NASM tool")

LGTM assuming Roger is also happy...

Sure, I'm gonna push this now then.

Thanks both, Roger.