refactor(kernel): remove unsupported architectures and automotive support - #18647
Draft
Rachel Menge (rlmenge) wants to merge 2 commits into
Draft
refactor(kernel): remove unsupported architectures and automotive support#18647Rachel Menge (rlmenge) wants to merge 2 commits into
Rachel Menge (rlmenge) wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Trims kernel packaging to supported x86_64 and aarch64 targets and removes automotive support.
Changes:
- Removes unsupported architecture configuration and kABI inputs.
- Simplifies architecture-specific packaging and automotive logic.
- Refreshes rendered output, release history, and component lock.
Reviewed changes
Copilot reviewed 6 out of 49 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
base/comps/kernel/kernel.spec |
Updates source kernel packaging logic. |
base/comps/kernel/process_configs.sh |
Removes unsupported config routing. |
base/comps/kernel/Makefile.rhelver |
Removes automotive version metadata. |
base/comps/kernel/Module.kabi_s390x |
Deletes s390x kABI input. |
base/comps/kernel/Module.kabi_riscv64 |
Deletes riscv64 kABI input. |
base/comps/kernel/Module.kabi_ppc64le |
Deletes ppc64le kABI input. |
base/comps/kernel/Module.kabi_dup_s390x |
Deletes duplicate s390x kABI input. |
base/comps/kernel/Module.kabi_dup_riscv64 |
Deletes duplicate riscv64 kABI input. |
base/comps/kernel/Module.kabi_dup_ppc64le |
Deletes duplicate ppc64le kABI input. |
specs/k/kernel/kernel.spec |
Regenerates the packaged specification. |
specs/k/kernel/process_configs.sh |
Regenerates supported config routing. |
specs/k/kernel/Makefile.rhelver |
Regenerates automotive metadata removal. |
specs/k/kernel/Module.kabi_s390x |
Removes rendered s390x kABI input. |
specs/k/kernel/Module.kabi_riscv64 |
Removes rendered riscv64 kABI input. |
specs/k/kernel/Module.kabi_ppc64le |
Removes rendered ppc64le kABI input. |
specs/k/kernel/Module.kabi_dup_s390x |
Removes rendered duplicate s390x input. |
specs/k/kernel/Module.kabi_dup_riscv64 |
Removes rendered duplicate riscv64 input. |
specs/k/kernel/Module.kabi_dup_ppc64le |
Removes rendered duplicate ppc64le input. |
locks/kernel.lock |
Refreshes the component input fingerprint. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # | ||
| # Azure Linux ships a single general-purpose kernel. All other variants | ||
| # (debug, realtime/rt-64k, arm64-16k/64k, automotive, zfcpdump) are | ||
| # (debug, realtime/rt-64k, arm64-16k/64k) are |
Rachel Menge (rlmenge)
force-pushed
the
rlmenge/4.0/kernel-trim
branch
from
August 27, 2026 22:33
75a5fed to
6b37e97
Compare
| ) | ||
|
|
||
| KERNEL_CONFIG_PATH_PATTERN = re.compile(r"^base/comps/kernel.*/.*config.*$") | ||
| KERNEL_CONFIG_PATH_PATTERN = re.compile(r"^base/comps/kernel[^/]*/[^/]*(?:x86_64|aarch64)[^/]*\.config$") |
Azure Linux 4.0 supports kernel builds only for x86_64 and aarch64. Remove the complete ppc64le, s390x, and riscv64 architecture slices instead of retaining disabled routing. Delete their kernel configs and kABI inputs, remove corresponding Source declarations, architecture conditionals, build requirements, process_configs.sh mappings, and the complete s390x-only zfcpdump package path. Keep the x86_64 and aarch64 base-kernel paths unchanged. Bump the manual package release to 6.18.39-1.5 and refresh the lock and rendered component in the same commit.
Azure Linux does not build or ship an automotive kernel variant. Remove the automotive vertical slice rather than retaining it behind permanently disabled macros. Delete the automotive configs and Source declarations, build options and derived state, package declarations, config routing, build/install handling, scriptlets, file lists, and obsolete RHEL automotive metadata. Preserve the generic base-kernel machinery. Bump the manual package release to 6.18.39-1.6 and refresh the lock and rendered component in the same commit.
Rachel Menge (rlmenge)
force-pushed
the
rlmenge/4.0/kernel-trim
branch
from
August 27, 2026 22:40
6b37e97 to
98f1d74
Compare
Contributor
Author
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
| Requires: %{name}-%{?1:%{1}-}-modules-core-uname-r = %{KVERREL}%{uname_variant %{?1}}\ | ||
| %endif\ | ||
| %{expand:%%kernel_reqprovconf %{?1:%{1}} %{-o:%{-o}}}\ | ||
| %{expand:%%kernel_reqprovconf %{?1:%{1}}}\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Trim the Azure Linux 4.0 kernel packaging to match the configurations we support and ship.
This intentionally leaves the remaining disabled kernel variants unchanged so they can be removed in smaller follow-up PRs.