Skip to contentSkip to conversation

roms/efi: cleanup fix, config update, ekd2 binary rebuild

PATCH In review Gerd Hoffmann 2 participants 8 messages Mar 14, 2024 – Mar 15, 2024 RISC-V

lore
Share & tools
lore
#0 lore raw

cover roms/efi: cleanup fix, config update, ekd2 binary rebuild

Gerd Hoffmann (5):
roms/efi: clean up edk2 build config
roms/efi: drop workaround for edk2-stable202308 roms/efi: exclude efi shell from secure boot builds roms/efi: use pure 64-bit build for edk2-x86_64-secure-code.fd update edk2 binaries for arm, risc-v and x86 secure boot.

 pc-bios/edk2-aarch64-code.fd.bz2       | Bin 1589320 -> 1589310 bytes
 pc-bios/edk2-arm-code.fd.bz2           | Bin 1571418 -> 1571693 bytes
 pc-bios/edk2-i386-secure-code.fd.bz2   | Bin 2130741 -> 1876986 bytes
 pc-bios/edk2-riscv-code.fd.bz2         | Bin 1345420 -> 1289160 bytes
 pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 2214892 -> 1967967 bytes
 roms/Makefile                          |   1 +
 roms/edk2-build.config                 |  13 ++++---------
 7 files changed, 5 insertions(+), 9 deletions(-)
Signature · 1 line
2.44.0
#1 lore raw

PATCH 1/5 roms/efi: clean up edk2 build config

Needed to avoid stale toolchain configurations breaking firmware builds.

---
 roms/Makefile | 1 +
 1 file changed, 1 insertion(+)
roms/Makefile +1 -0
index 8e5d8d26a9a0..edc234a0e886 100644
@@ -187,6 +187,7 @@ clean:
 	rm -rf seabios/.config seabios/out seabios/builds
 	$(MAKE) -C ipxe/src veryclean
 	$(MAKE) -C edk2/BaseTools clean
+	rm -rf edk2/Conf/{.cache,BuildEnv.sh,build_rule.txt,target.txt,tools_def.txt}
 	$(MAKE) -C SLOF clean
 	rm -rf u-boot/build-e500
 	$(MAKE) -C u-boot-sam460ex distclean
Signature · 1 line
2.44.0
#3 lore raw

PATCH 2/5 roms/efi: drop workaround for edk2-stable202308

In reply to Gerd Hoffmann

Not needed for newer edk2 versions.

---
 roms/edk2-build.config | 6 ------
 1 file changed, 6 deletions(-)
roms/edk2-build.config +0 -6
index 0d367dbdb775..05cbafef70cb 100644
@@ -32,9 +32,6 @@ PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD1
 # shim.efi has broken MemAttr code
 PcdUninstallMemAttrProtocol    = TRUE
 
-[pcds.workaround.202308]
-PcdFirstTimeWakeUpAPsBySipi = FALSE
-
 ####################################################################################
 # i386
 
@@ -66,7 +63,6 @@ desc = ovmf build (64-bit)
 conf = OvmfPkg/OvmfPkgX64.dsc
 arch = X64
 opts = common
-pcds = workaround.202308
 plat = OvmfX64
 dest = ../pc-bios
 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-code.fd
@@ -77,7 +73,6 @@ conf = OvmfPkg/OvmfPkgIa32X64.dsc
 arch = IA32 X64
 opts = common
        ovmf.sb.smm
-pcds = workaround.202308
 plat = Ovmf3264
 dest = ../pc-bios
 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-secure-code.fd
@@ -87,7 +82,6 @@ desc = ovmf build for microvm
 conf = OvmfPkg/Microvm/MicrovmX64.dsc
 arch = X64
 opts = common
-pcds = workaround.202308
 plat = MicrovmX64
 dest = ../pc-bios
 cpy1 = FV/MICROVM.fd  edk2-x86_64-microvm.fd
Signature · 1 line
2.44.0
#4 lore raw

PATCH 3/5 roms/efi: exclude efi shell from secure boot builds

In reply to Gerd Hoffmann

Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=4641

---
 roms/edk2-build.config | 1 +
 1 file changed, 1 insertion(+)
roms/edk2-build.config +1 -0
index 05cbafef70cb..ef3eb7beebe7 100644
@@ -18,6 +18,7 @@ CAVIUM_ERRATUM_27456     = TRUE
 [opts.ovmf.sb.smm]
 SECURE_BOOT_ENABLE       = TRUE
 SMM_REQUIRE              = TRUE
+BUILD_SHELL              = FALSE
 
 [opts.armvirt.silent]
 DEBUG_PRINT_ERROR_LEVEL  = 0x80000000
Signature · 1 line
2.44.0
#6 lore raw

PATCH 4/5 roms/efi: use pure 64-bit build for edk2-x86_64-secure-code.fd

In reply to Gerd Hoffmann
---
 roms/edk2-build.config | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
roms/edk2-build.config +3 -3
index ef3eb7beebe7..cc9b21154205 100644
@@ -70,11 +70,11 @@ cpy1 = FV/OVMF_CODE.fd edk2-x86_64-code.fd
 
 [build.ovmf.x86_64.secure]
 desc = ovmf build (64-bit, secure boot)
-conf = OvmfPkg/OvmfPkgIa32X64.dsc
-arch = IA32 X64
+conf = OvmfPkg/OvmfPkgX64.dsc
+arch = X64
 opts = common
        ovmf.sb.smm
-plat = Ovmf3264
+plat = OvmfX64
 dest = ../pc-bios
 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-secure-code.fd
 
Signature · 1 line
2.44.0
#7 lore raw

PATCH 5/5 update edk2 binaries for arm, risc-v and x86 secure boot.

In reply to Gerd Hoffmann

Rebuilt with latest build configuration
and up-to-date toolchain setup.
No source code changes.

---
 pc-bios/edk2-aarch64-code.fd.bz2       | Bin 1589320 -> 1589310 bytes
 pc-bios/edk2-arm-code.fd.bz2           | Bin 1571418 -> 1571693 bytes
 pc-bios/edk2-i386-secure-code.fd.bz2   | Bin 2130741 -> 1876986 bytes
 pc-bios/edk2-riscv-code.fd.bz2         | Bin 1345420 -> 1289160 bytes
 pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 2214892 -> 1967967 bytes
 5 files changed, 0 insertions(+), 0 deletions(-)
pc-bios/edk2-aarch64-code.fd.bz2 binary +0 -0
index 5d0a57173d258d86f00821a5593417b63779c4c0..3204e2816b8db14b89bdf54ab7eb01a3fc0b140c 100644
GIT binary patch
pc-bios/edk2-arm-code.fd.bz2 binary +0 -0
index af49559f34bc92e6d5023c8b6e56dd14d370e6e4..de916e9d7681235f15b2089720173fbe6b8eabd7 100644
GIT binary patch
pc-bios/edk2-i386-secure-code.fd.bz2 binary +0 -0
index 983e1778c451f9beabfd9ac2e0b62cdbf7697734..925a7d1ef0fd1ab77da41993fb992e86e039dc8c 100644
GIT binary patch
pc-bios/edk2-riscv-code.fd.bz2 binary +0 -0
index b6cd3c6f742c74be1b3ba208a918ba1edcc30eed..446117073c9b86cb932e1f80a8bb2dd5f7568eb2 100644
GIT binary patch
pc-bios/edk2-x86_64-secure-code.fd.bz2 binary +0 -0
index abeb60bcf327402e52acef73a0cf8c6b6a9b02b3..30d0545e020febf79024975ec70f9029a16b57a3 100644
GIT binary patch
Signature · 1 line
2.44.0