Skip to content

feat(edk2): disable Xen OVMF build variant#16469

Open
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/remove-xen-edk2-no-subpackage
Open

feat(edk2): disable Xen OVMF build variant#16469
christopherco wants to merge 1 commit intotomls/base/mainfrom
chrco/remove-xen-edk2-no-subpackage

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

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.

@christopherco
Copy link
Copy Markdown
Collaborator Author

Replaces #16465

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.
@christopherco christopherco force-pushed the chrco/remove-xen-edk2-no-subpackage branch from aa49e98 to 1e57568 Compare April 9, 2026 05:50
@christopherco christopherco marked this pull request as ready for review April 9, 2026 06:58
Copilot AI review requested due to automatic review settings April 9, 2026 06:58
@christopherco
Copy link
Copy Markdown
Collaborator Author

CI fix - #16529

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to disable building the Xen-specific OVMF firmware variant in the edk2 component, aligning Azure Linux firmware outputs with Hyper-V/KVM targets while preserving other Fedora-path firmware/features.

Changes:

  • Add a dedicated edk2.comp.toml with overlays intended to disable the Xen OVMF build and remove the ovmf-xen subpackage.
  • Remove the bare [components.edk2] entry from base/comps/components.toml now that edk2 has a dedicated component definition file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
base/comps/edk2/edk2.comp.toml Introduces overlays to skip the Xen build target and drop the ovmf-xen subpackage.
base/comps/components.toml Removes the inline edk2 component entry in favor of the dedicated *.comp.toml file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +17 to +31
type = "spec-remove-section"
section = "%package"
package = "ovmf-xen"

[[components.edk2.overlays]]
description = "Remove %description ovmf-xen"
type = "spec-remove-section"
section = "%description"
package = "ovmf-xen"

[[components.edk2.overlays]]
description = "Remove %files ovmf-xen"
type = "spec-remove-section"
section = "%files"
package = "ovmf-xen"
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spec-remove-section is not a valid overlay type in the current azldev schema (external/schemas/azldev.schema.json lists only spec--tag/lines/search-replace, patch-, file-*). As written, this component config will fail schema validation / overlay application. Please replace these with supported overlay types (e.g., spec-search-replace scoped to the relevant %package/%description/%files blocks, or another supported mechanism to prevent the ovmf-xen subpackage from being defined/built).

Suggested change
type = "spec-remove-section"
section = "%package"
package = "ovmf-xen"
[[components.edk2.overlays]]
description = "Remove %description ovmf-xen"
type = "spec-remove-section"
section = "%description"
package = "ovmf-xen"
[[components.edk2.overlays]]
description = "Remove %files ovmf-xen"
type = "spec-remove-section"
section = "%files"
package = "ovmf-xen"
type = "spec-search-replace"
section = "%package"
package = "ovmf-xen"
regex = '^.*$'
replacement = ''
[[components.edk2.overlays]]
description = "Remove %description ovmf-xen"
type = "spec-search-replace"
section = "%description"
package = "ovmf-xen"
regex = '^.*$'
replacement = ''
[[components.edk2.overlays]]
description = "Remove %files ovmf-xen"
type = "spec-search-replace"
section = "%files"
package = "ovmf-xen"
regex = '^.*$'
replacement = ''

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants