Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion base/comps/components.toml
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
[components.ed]
[components.ed25519-java]
[components.editorconfig]
[components.edk2]
[components.efi-rpm-macros]
[components.efibootmgr]
[components.efitools]
Expand Down
31 changes: 31 additions & 0 deletions base/comps/edk2/edk2.comp.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[components.edk2]

# Disable the Xen OVMF build variant — not applicable to Azure Linux (Hyper-V/KVM).

# 1. Rename the build config section so edk2-build.py skips the Xen build.
# The script iterates sections starting with "build." prefix.
[[components.edk2.overlays]]
description = "Disable Xen OVMF build - rename config section so edk2-build.py skips it"
type = "file-search-replace"
file = "edk2-build.fedora"
regex = '\[build\.ovmf\.xen\]'
replacement = '[disabled.ovmf.xen]'

# 2. Remove the ovmf-xen subpackage entirely.
[[components.edk2.overlays]]
description = "Remove %package ovmf-xen"
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"
Comment on lines +17 to +31
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.
Loading