Skip to content

Commit 1e57568

Browse files
committed
feat(edk2): disable Xen OVMF build variant
Azure Linux targets Hyper-V/KVM, not Xen. The upstream edk2 spec builds a Xen OVMF firmware variant (edk2-ovmf-xen) when %fedora is defined. Disable by renaming [build.ovmf.xen] in edk2-build.fedora so the build script skips the Xen target, and remove the ovmf-xen subpackage via spec-remove-section overlays. All other Fedora-path features (IGVM, 4M qcow2, experimental, riscv64, loongarch64, ext4, tools-python) are preserved. Verified: build succeeds, edk2-ovmf-xen RPM is no longer produced, main edk2-ovmf package is intact.
1 parent a9fec89 commit 1e57568

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

base/comps/components.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
414414
[components.ed]
415415
[components.ed25519-java]
416416
[components.editorconfig]
417-
[components.edk2]
418417
[components.efi-rpm-macros]
419418
[components.efibootmgr]
420419
[components.efitools]

base/comps/edk2/edk2.comp.toml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[components.edk2]
2+
3+
# Disable the Xen OVMF build variant — not applicable to Azure Linux (Hyper-V/KVM).
4+
5+
# 1. Rename the build config section so edk2-build.py skips the Xen build.
6+
# The script iterates sections starting with "build." prefix.
7+
[[components.edk2.overlays]]
8+
description = "Disable Xen OVMF build - rename config section so edk2-build.py skips it"
9+
type = "file-search-replace"
10+
file = "edk2-build.fedora"
11+
regex = '\[build\.ovmf\.xen\]'
12+
replacement = '[disabled.ovmf.xen]'
13+
14+
# 2. Remove the ovmf-xen subpackage entirely.
15+
[[components.edk2.overlays]]
16+
description = "Remove %package ovmf-xen"
17+
type = "spec-remove-section"
18+
section = "%package"
19+
package = "ovmf-xen"
20+
21+
[[components.edk2.overlays]]
22+
description = "Remove %description ovmf-xen"
23+
type = "spec-remove-section"
24+
section = "%description"
25+
package = "ovmf-xen"
26+
27+
[[components.edk2.overlays]]
28+
description = "Remove %files ovmf-xen"
29+
type = "spec-remove-section"
30+
section = "%files"
31+
package = "ovmf-xen"

0 commit comments

Comments
 (0)