Skip to content

refactor(kernel): remove unsupported architectures and automotive support - #18647

Draft
Rachel Menge (rlmenge) wants to merge 2 commits into
microsoft:4.0from
rlmenge:rlmenge/4.0/kernel-trim
Draft

refactor(kernel): remove unsupported architectures and automotive support#18647
Rachel Menge (rlmenge) wants to merge 2 commits into
microsoft:4.0from
rlmenge:rlmenge/4.0/kernel-trim

Conversation

@rlmenge

Copy link
Copy Markdown
Contributor

Summary
Trim the Azure Linux 4.0 kernel packaging to match the configurations we support and ship.

  • Restrict kernel packaging to x86_64 and aarch64.
  • Remove ppc64le, s390x, and riscv64 configuration and kABI inputs.
  • Remove architecture-specific build requirements, routing, and conditionals.
  • Remove the s390x-only zfcpdump path.
  • Remove the unused automotive kernel variant end-to-end, including configuration, package, build, install, scriptlet, and file-list handling.
  • Refresh the kernel lock and rendered component in each commit.

This intentionally leaves the remaining disabled kernel variants unchanged so they can be removed in smaller follow-up PRs.

Copilot AI balanced review requested due to automatic review settings August 27, 2026 21:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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
Copilot AI review requested due to automatic review settings August 27, 2026 22:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

)

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.
Copilot AI review requested due to automatic review settings August 27, 2026 22:40
@rlmenge

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

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}}}\
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