Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel: Only build metal specific drivers for metal variants #2279

Merged
merged 1 commit into from
Jul 19, 2022
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: 1 addition & 0 deletions packages/kernel-5.10/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ publish = false
build = "build.rs"

[package.metadata.build-package]
variant-sensitive = true
package-name = "kernel-5.10"

[lib]
Expand Down
4 changes: 4 additions & 0 deletions packages/kernel-5.10/kernel-5.10.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%global debug_package %{nil}
%global _is_metal_variant %(if echo %{_cross_variant} | grep -Fqw "metal"; then echo 1; else echo 0; fi)

Name: %{_cross_os}kernel-5.10
Version: 5.10.118
Expand Down Expand Up @@ -95,7 +96,10 @@ scripts/kconfig/merge_config.sh \
../config-microcode \
%endif
%{SOURCE100} \
%if %{_is_metal_variant}
%{SOURCE101}
%endif

rm -f ../config-* ../*.patch

%global kmake \
Expand Down
1 change: 1 addition & 0 deletions packages/kernel-5.15/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ publish = false
build = "build.rs"

[package.metadata.build-package]
variant-sensitive = true
package-name = "kernel-5.15"

[lib]
Expand Down
4 changes: 4 additions & 0 deletions packages/kernel-5.15/kernel-5.15.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
%global debug_package %{nil}
%global _is_metal_variant %(if echo %{_cross_variant} | grep -Fqw "metal"; then echo 1; else echo 0; fi)

Name: %{_cross_os}kernel-5.15
Version: 5.15.43
Expand Down Expand Up @@ -93,7 +94,10 @@ scripts/kconfig/merge_config.sh \
../config-microcode \
%endif
%{SOURCE100} \
%if %{_is_metal_variant}
%{SOURCE101}
%endif

rm -f ../config-* ../*.patch

%global kmake \
Expand Down