Merge ~slyon/ubuntu/+source/edk2:lp-2106771-libvirt-amdsev-ovmf-plucky into ubuntu/+source/edk2:ubuntu/plucky-devel

Proposed by Lukas Märdian
Status: Work in progress
Proposed branch: ~slyon/ubuntu/+source/edk2:lp-2106771-libvirt-amdsev-ovmf-plucky
Merge into: ubuntu/+source/edk2:ubuntu/plucky-devel
Diff against target: 96 lines (+51/-1)
4 files modified
debian/changelog (+7/-0)
debian/descriptors/60-edk2-x86_64-amdsev.json (+31/-0)
debian/ovmf.install (+1/-0)
debian/rules (+12/-1)
Reviewer Review Type Date Requested Status
Canonical Server Reporter Pending
git-ubuntu import Pending
Review via email: mp+484967@code.launchpad.net

Description of the change

PPA: https://launchpad.net/~slyon/+archive/ubuntu/lp-2106771-libvirt-amdsev-ovmf/+packages

DEP-8:
$ ppa tests ppa:slyon/lp-2106771-libvirt-amdsev-ovmf -r plucky -L
[...]
* Results:
  - edk2: plucky/edk2/2025.02-3ubuntu2.1~ppa2 [amd64]
    + ✅ edk2 on plucky for amd64 @ 28.04.25 07:52:47
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-slyon-lp-2106771-libvirt-amdsev-ovmf/plucky/amd64/e/edk2/20250428_075247_fca9d@/log.gz
  - edk2: plucky/edk2/2025.02-3ubuntu2.1~ppa2 [arm64]
    + ✅ edk2 on plucky for arm64 @ 28.04.25 08:14:37
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-slyon-lp-2106771-libvirt-amdsev-ovmf/plucky/arm64/e/edk2/20250428_081437_56ee3@/log.gz
  - edk2: plucky/edk2/2025.02-3ubuntu2.1~ppa2 [armhf]
    + ✅ edk2 on plucky for armhf @ 28.04.25 07:54:15
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-slyon-lp-2106771-libvirt-amdsev-ovmf/plucky/armhf/e/edk2/20250428_075415_eca91@/log.gz
  - edk2: plucky/edk2/2025.02-3ubuntu2.1~ppa2 [i386]
    + ✅ edk2 on plucky for i386 @ 28.04.25 10:28:27
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-slyon-lp-2106771-libvirt-amdsev-ovmf/plucky/i386/e/edk2/20250428_102827_be8a4@/log.gz
  - edk2: plucky/edk2/2025.02-3ubuntu2.1~ppa2 [ppc64el]
    + ✅ edk2 on plucky for ppc64el @ 28.04.25 08:03:01
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-slyon-lp-2106771-libvirt-amdsev-ovmf/plucky/ppc64el/e/edk2/20250428_080301_f9358@/log.gz
  - edk2: plucky/edk2/2025.02-3ubuntu2.1~ppa2 [s390x]
    + ✅ edk2 on plucky for s390x @ 28.04.25 07:51:37
      • Log: https://autopkgtest.ubuntu.com/results/autopkgtest-plucky-slyon-lp-2106771-libvirt-amdsev-ovmf/plucky/s390x/e/edk2/20250428_075137_0a95d@/log.gz

To post a comment you must log in.

Unmerged commits

1c056fd... by Lukas Märdian

changelog

ab3f49a... by Lukas Märdian

d/descriptors: Add amd-sev JSON

cfdab92... by Lukas Märdian

d/rules: Build OVMF.amdsev.fd (LP: #2106771)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index b353a3a..de4cf69 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+edk2 (2025.02-3ubuntu2.1) plucky; urgency=medium
7+
8+ * d/rules: Build OVMF.amdsev.fd (LP: #2106771)
9+ * d/descriptors: Add amd-sev JSON
10+
11+ -- Lukas Märdian <slyon@ubuntu.com> Thu, 24 Apr 2025 16:58:02 +0200
12+
13 edk2 (2025.02-3ubuntu2) plucky; urgency=medium
14
15 * Uninstall memory attribute protocol in all images, workaround for (LP: #2104316)
16diff --git a/debian/descriptors/60-edk2-x86_64-amdsev.json b/debian/descriptors/60-edk2-x86_64-amdsev.json
17new file mode 100644
18index 0000000..78dac81
19--- /dev/null
20+++ b/debian/descriptors/60-edk2-x86_64-amdsev.json
21@@ -0,0 +1,31 @@
22+{
23+ "description": "UEFI firmware for x86_64, with SEV-ES support",
24+ "interface-types": [
25+ "uefi"
26+ ],
27+ "mapping": {
28+ "device": "flash",
29+ "mode": "stateless",
30+ "executable": {
31+ "filename": "/usr/share/ovmf/OVMF.amdsev.fd",
32+ "format": "raw"
33+ }
34+ },
35+ "targets": [
36+ {
37+ "architecture": "x86_64",
38+ "machines": [
39+ "pc-q35-*"
40+ ]
41+ }
42+ ],
43+ "features": [
44+ "amd-sev",
45+ "amd-sev-es",
46+ "amd-sev-snp",
47+ "verbose-dynamic"
48+ ],
49+ "tags": [
50+
51+ ]
52+}
53diff --git a/debian/ovmf.install b/debian/ovmf.install
54index 85d09be..483e2b0 100644
55--- a/debian/ovmf.install
56+++ b/debian/ovmf.install
57@@ -1,4 +1,5 @@
58 debian/ovmf-install/OVMF.fd /usr/share/ovmf
59+debian/ovmf-install/OVMF.amdsev.fd /usr/share/ovmf
60 debian/ovmf-install/OVMF_CODE*.fd /usr/share/OVMF
61 debian/ovmf-install/OVMF_VARS*.fd /usr/share/OVMF
62 debian/descriptors/*-edk2-x86_64*.json /usr/share/qemu/firmware
63diff --git a/debian/rules b/debian/rules
64index 86a99f5..cd3d290 100755
65--- a/debian/rules
66+++ b/debian/rules
67@@ -73,10 +73,12 @@ debian/setup-build-stamp:
68 OVMF_INSTALL_DIR = debian/ovmf-install
69 OVMF64_BUILD_ROOT = Build/OvmfX64
70 OVMF64_BUILD_DIR = $(OVMF64_BUILD_ROOT)/$(BUILD_TYPE)_$(EDK2_TOOLCHAIN)
71+AMDSEV_BUILD_ROOT = Build/AmdSev
72+AMDSEV_BUILD_DIR = $(AMDSEV_BUILD_ROOT)/$(BUILD_TYPE)_$(EDK2_TOOLCHAIN)
73 OVMF_ENROLL = $(OVMF_INSTALL_DIR)/EnrollDefaultKeys.efi
74 OVMF_SHELL = $(OVMF_INSTALL_DIR)/Shell.efi
75 OVMF_BINARIES = $(OVMF_ENROLL) $(OVMF_SHELL)
76-OVMF_IMAGES := $(addprefix $(OVMF_INSTALL_DIR)/,OVMF_CODE_4M.fd OVMF_CODE_4M.secboot.fd OVMF_VARS_4M.fd)
77+OVMF_IMAGES := $(addprefix $(OVMF_INSTALL_DIR)/,OVMF_CODE_4M.fd OVMF_CODE_4M.secboot.fd OVMF_VARS_4M.fd OVMF.amdsev.fd)
78 OVMF_PREENROLLED_VARS := $(addprefix $(OVMF_INSTALL_DIR)/,OVMF_VARS_4M.ms.fd OVMF_VARS_4M.snakeoil.fd)
79
80 OVMF32_INSTALL_DIR = debian/ovmf32-install
81@@ -161,6 +163,15 @@ $(OVMF_BINARIES) $(OVMF_IMAGES): debian/setup-build-stamp
82 $(OVMF_INSTALL_DIR)/
83 cp $(OVMF64_BUILD_DIR)/FV/OVMF_CODE.fd \
84 $(OVMF_INSTALL_DIR)/OVMF_CODE_4M.secboot.fd
85+ rm -rf $(AMDSEV_BUILD_ROOT)
86+ touch OvmfPkg/AmdSev/Grub/grub.efi
87+ set -e; . ./edksetup.sh; \
88+ build -a X64 \
89+ -t $(EDK2_TOOLCHAIN) \
90+ -p OvmfPkg/AmdSev/AmdSevX64.dsc \
91+ $(OVMF_COMMON_FLAGS) -b $(BUILD_TYPE)
92+ cp $(AMDSEV_BUILD_DIR)/FV/OVMF.fd \
93+ $(OVMF_INSTALL_DIR)/OVMF.amdsev.fd
94
95 ifeq ($(call dpkg_vendor_derives_from_v1,ubuntu),yes)
96 debian/PkKek-1-vendor.pem: debian/PkKek-1-Ubuntu.pem

Subscribers

People subscribed via source and target branches