Edk2 20220315 patches
The following changes since commit 352998df1c53b366413690d95b35f76d0721ebed:
Merge tag 'i2c-20220314' of https://github.com/philmd/qemu into staging (2022-03-14 14:39:33 +0000)
are available in the Git repository at:
git://git.kraxel.org/qemu tags/edk2-20220315-pull-request
for you to fetch changes up to 9b437cd0f95398198852f25d7847a605370f984d:
MAINTAINERS: take edk2 (2022-03-15 09:32:22 +0100)
----------------------------------------------------------------
edk2: update to stable202202
----------------------------------------------------------------
Gerd Hoffmann (11):
tests/acpi: allow virt memory hotplug changes
edk2: update submodule to stable202202
edk2: switch to release builds
edk2: .git can be a file
edk2: add microvm build
edk2: update binaries to stable202202 tests/acpi: update expected data files tests/acpi: disallow virt memory hotplug changes edk2/docker: install python3 edk2/docker: use ubuntu 18.04
MAINTAINERS: take edk2
.gitlab-ci.d/edk2/Dockerfile | 4 ++-- MAINTAINERS | 2 +- pc-bios/edk2-aarch64-code.fd.bz2 | Bin 1507722 -> 1161290 bytes pc-bios/edk2-arm-code.fd.bz2 | Bin 1503187 -> 1161845 bytes pc-bios/edk2-i386-code.fd.bz2 | Bin 1646741 -> 1282120 bytes pc-bios/edk2-i386-secure-code.fd.bz2 | Bin 1860546 -> 1473677 bytes pc-bios/edk2-x86_64-code.fd.bz2 | Bin 1680164 -> 1327522 bytes pc-bios/edk2-x86_64-microvm.fd.bz2 | Bin 0 -> 1309407 bytes pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 1912112 -> 1513711 bytes roms/Makefile.edk2 | 30 +++++++++++++++++-------- roms/edk2 | 2 +- roms/edk2-build.sh | 2 +- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 13 files changed, 26 insertions(+), 14 deletions(-) create mode 100644 pc-bios/edk2-x86_64-microvm.fd.bz2
Signature · 1 line
2.35.1
[PULL 02/11] edk2: update submodule to stable202202
--- roms/edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
roms/edk2 +1 -1
@@ -1 +1 @@ -Subproject commit 06dc822d045c2bb42e497487935485302486e151 +Subproject commit b24306f15daa2ff8510b06702114724b33895d3c
Signature · 1 line
2.35.1
[PULL 10/11] edk2/docker: use ubuntu 18.04
In reply to Gerd HoffmannUpstream CI uses ubuntu 18.04 too, so pick that version (instead of something newer).
--- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/edk2/Dockerfile +1 -1
@@ -1,7 +1,7 @@ # # Docker image to cross-compile EDK2 firmware binaries # -FROM ubuntu:16.04 +FROM ubuntu:18.04 MAINTAINER Philippe Mathieu-Daudé <[email protected]>
Signature · 1 line
2.35.1
[PULL 01/11] tests/acpi: allow virt memory hotplug changes
In reply to Gerd Hoffmann--- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+)
tests/qtest/bios-tables-test-allowed-diff.h +1 -0
@@ -1 +1,2 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.35.1
[PULL 08/11] tests/acpi: disallow virt memory hotplug changes
In reply to Gerd Hoffmann--- tests/qtest/bios-tables-test-allowed-diff.h | 1 - 1 file changed, 1 deletion(-)
tests/qtest/bios-tables-test-allowed-diff.h +0 -1
@@ -1,2 +1 @@/* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/virt/SSDT.memhp",
Signature · 1 line
2.35.1
[PULL 03/11] edk2: switch to release builds
In reply to Gerd Hoffmann--- roms/Makefile.edk2 | 17 +++++++++-------- roms/edk2-build.sh | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-)
roms/Makefile.edk2 +9 -8
@@ -13,6 +13,7 @@ SHELL = /bin/bash +target = RELEASE toolchain = $(shell source ./edk2-funcs.sh && qemu_edk2_get_toolchain $(1)) licenses := \
@@ -73,7 +74,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM2_ENABLE \ -D TPM2_CONFIG_ENABLE - cp edk2/Build/ArmVirtQemu-AARCH64/DEBUG_$(call toolchain,aarch64)/FV/QEMU_EFI.fd \ + cp edk2/Build/ArmVirtQemu-AARCH64/$(target)_$(call toolchain,aarch64)/FV/QEMU_EFI.fd \ $@ truncate --size=64M $@
@@ -87,7 +88,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM2_ENABLE \ -D TPM2_CONFIG_ENABLE - cp edk2/Build/ArmVirtQemu-ARM/DEBUG_$(call toolchain,arm)/FV/QEMU_EFI.fd \ + cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_EFI.fd \ $@ truncate --size=64M $@
@@ -101,7 +102,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM_ENABLE \ -D TPM_CONFIG_ENABLE - cp edk2/Build/OvmfIa32/DEBUG_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ + cp edk2/Build/OvmfIa32/$(target)_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-i386-secure-code.fd: submodules +./edk2-build.sh \
@@ -115,7 +116,7 @@ submodules: -D TPM_CONFIG_ENABLE \ -D SECURE_BOOT_ENABLE \ -D SMM_REQUIRE - cp edk2/Build/OvmfIa32/DEBUG_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ + cp edk2/Build/OvmfIa32/$(target)_$(call toolchain,i386)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-x86_64-code.fd: submodules +./edk2-build.sh \
@@ -127,7 +128,7 @@ submodules: -D NETWORK_TLS_ENABLE \ -D TPM_ENABLE \ -D TPM_CONFIG_ENABLE - cp edk2/Build/OvmfX64/DEBUG_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ + cp edk2/Build/OvmfX64/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-x86_64-secure-code.fd: submodules +./edk2-build.sh \
@@ -142,15 +143,15 @@ submodules: -D TPM_CONFIG_ENABLE \ -D SECURE_BOOT_ENABLE \ -D SMM_REQUIRE - cp edk2/Build/Ovmf3264/DEBUG_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ + cp edk2/Build/Ovmf3264/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ ../pc-bios/edk2-arm-vars.fd: ../pc-bios/edk2-arm-code.fd - cp edk2/Build/ArmVirtQemu-ARM/DEBUG_$(call toolchain,arm)/FV/QEMU_VARS.fd \ + cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_VARS.fd \ $@ truncate --size=64M $@ ../pc-bios/edk2-i386-vars.fd: ../pc-bios/edk2-i386-code.fd - cp edk2/Build/OvmfIa32/DEBUG_$(call toolchain,i386)/FV/OVMF_VARS.fd $@ + cp edk2/Build/OvmfIa32/$(target)_$(call toolchain,i386)/FV/OVMF_VARS.fd $@ # The license file accumulates several individual licenses from under edk2, # prefixing each individual license with a header (generated by "tail") that
roms/edk2-build.sh +1 -1
@@ -50,6 +50,6 @@ qemu_edk2_set_cross_env "$emulation_target" build \ --cmd-len=65536 \ -n "$edk2_thread_count" \ - --buildtarget=DEBUG \ + --buildtarget=RELEASE \ --tagname="$edk2_toolchain" \ "${args[@]}"
Signature · 1 line
2.35.1
[PULL 07/11] tests/acpi: update expected data files
In reply to Gerd HoffmannThe switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
See commits ca26041500eb ("edk2: switch to release builds") and 3891a5996fee ("edk2: update binaries to stable202202")
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)
{
Scope (\_SB)
{
Device (NVDR)
{
Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID
Method (NCAL, 5, Serialized)
{
Local6 = MEMA /* \MEMA */
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02))
}
}
Device (NV02)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03))
}
}
}
}- Name (MEMA, 0x43D10000)
+ Name (MEMA, 0x43F50000)
}
--- tests/data/acpi/virt/SSDT.memhp | Bin 736 -> 736 bytes 1 file changed, 0 insertions(+), 0 deletions(-)
tests/data/acpi/virt/SSDT.memhp binary +0 -0
Signature · 1 line
2.35.1
[PULL 04/11] edk2: .git can be a file
In reply to Gerd Hoffmann--- roms/Makefile.edk2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
roms/Makefile.edk2 +1 -1
@@ -51,7 +51,7 @@ all: $(foreach flashdev,$(flashdevs),../pc-bios/edk2-$(flashdev).fd.bz2) \ # we're building from a tarball and that they've already been fetched by # make-release/tarball scripts. submodules: - if test -d edk2/.git; then \ + if test -e edk2/.git; then \ cd edk2 && git submodule update --init --force -- \ ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 \ BaseTools/Source/C/BrotliCompress/brotli \
Signature · 1 line
2.35.1
[PULL 05/11] edk2: add microvm build
In reply to Gerd Hoffmann--- roms/Makefile.edk2 | 11 +++++++++++ 1 file changed, 11 insertions(+)
roms/Makefile.edk2 +11 -0
@@ -33,6 +33,7 @@ flashdevs := \ i386-secure-code \ x86_64-code \ x86_64-secure-code \ + x86_64-microvm \ \ arm-vars \ i386-vars
@@ -145,6 +146,16 @@ submodules: -D SMM_REQUIRE cp edk2/Build/Ovmf3264/$(target)_$(call toolchain,x86_64)/FV/OVMF_CODE.fd $@ +../pc-bios/edk2-x86_64-microvm.fd: submodules + +./edk2-build.sh \ + x86_64 \ + --arch=X64 \ + --platform=OvmfPkg/Microvm/MicrovmX64.dsc \ + -D NETWORK_IP6_ENABLE \ + -D NETWORK_HTTP_BOOT_ENABLE \ + -D NETWORK_TLS_ENABLE + cp edk2/Build/MicrovmX64/$(target)_$(call toolchain,x86_64)/FV/MICROVM.fd $@ + ../pc-bios/edk2-arm-vars.fd: ../pc-bios/edk2-arm-code.fd cp edk2/Build/ArmVirtQemu-ARM/$(target)_$(call toolchain,arm)/FV/QEMU_VARS.fd \ $@
Signature · 1 line
2.35.1
[PULL 09/11] edk2/docker: install python3
In reply to Gerd Hoffmannpython2 is not supported any more,
so go install python3 instead.
--- .gitlab-ci.d/edk2/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/edk2/Dockerfile +1 -1
@@ -20,7 +20,7 @@ RUN apt update \ iasl \ make \ nasm \ - python \ + python3 \ uuid-dev \ && \ \
Signature · 1 line
2.35.1
[PULL 11/11] MAINTAINERS: take edk2
In reply to Gerd Hoffmann--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -3159,7 +3159,7 @@ F: docs/interop/firmware.json EDK2 Firmware M: Philippe Mathieu-Daudé <[email protected]> -R: Gerd Hoffmann <[email protected]> +M: Gerd Hoffmann <[email protected]> S: Supported F: hw/i386/*ovmf* F: pc-bios/descriptors/??-edk2-*.json
Signature · 1 line
2.35.1
[PULL 06/11] edk2: update binaries to stable202202
In reply to Gerd HoffmannThe switch to edk2 RELEASE builds changes the memory layout a bit, resulting in a acpi table change.
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)
{
Scope (\_SB)
{
Device (NVDR)
{
Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID
Method (NCAL, 5, Serialized)
{
Local6 = MEMA /* \MEMA */
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02))
}
}
Device (NV02)
{
Name (_ADR, 0x03) // _ADR: Address
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03))
}
}
}
}- Name (MEMA, 0x43D10000)
+ Name (MEMA, 0x43F50000)
}
--- pc-bios/edk2-aarch64-code.fd.bz2 | Bin 1507722 -> 1161290 bytes pc-bios/edk2-arm-code.fd.bz2 | Bin 1503187 -> 1161845 bytes pc-bios/edk2-i386-code.fd.bz2 | Bin 1646741 -> 1282120 bytes pc-bios/edk2-i386-secure-code.fd.bz2 | Bin 1860546 -> 1473677 bytes pc-bios/edk2-x86_64-code.fd.bz2 | Bin 1680164 -> 1327522 bytes pc-bios/edk2-x86_64-microvm.fd.bz2 | Bin 0 -> 1309407 bytes pc-bios/edk2-x86_64-secure-code.fd.bz2 | Bin 1912112 -> 1513711 bytes 7 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 pc-bios/edk2-x86_64-microvm.fd.bz2
pc-bios/edk2-aarch64-code.fd.bz2 binary +0 -0
pc-bios/edk2-arm-code.fd.bz2 binary +0 -0
pc-bios/edk2-i386-code.fd.bz2 binary +0 -0
pc-bios/edk2-i386-secure-code.fd.bz2 binary +0 -0
pc-bios/edk2-x86_64-code.fd.bz2 binary +0 -0
pc-bios/edk2-x86_64-microvm.fd.bz2 new file binary +0 -0
pc-bios/edk2-x86_64-secure-code.fd.bz2 binary +0 -0
Signature · 1 line
2.35.1
Peter Maydell
AppliedQuoted 7 lines · Gerd Hoffmann
The following changes since commit
352998df1c53b366413690d95b35f76d0721ebed:Merge tag 'i2c-20220314' of https://github.com/philmd/qemu into staging (2022-03-14 14:39:33 +0000)
are available in the Git repository at:
Quoted 9 lines
git://git.kraxel.org/qemutags/edk2-20220315-pull-requestfor you to fetch changes up to
9b437cd0f95398198852f25d7847a605370f984d:
MAINTAINERS: take edk2 (2022-03-15 09:32:22 +0100)----------------------------------------------------------------
edk2: update to stable202202
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.0
for any user-visible changes.
-- PMM