Skip to content

Commit

Permalink
kernel-5.10: remove variant sensitivity
Browse files Browse the repository at this point in the history
Now that the only in-tree users of the 5.10 kernel are aws variants,
merge the aws-specific config into the main config and remove the
variant sensitive marker from the package.

Signed-off-by: Ben Cressey <[email protected]>
  • Loading branch information
bcressey committed Apr 12, 2024
1 parent ed0f6aa commit 63ccf40
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 134 deletions.
1 change: 0 additions & 1 deletion packages/kernel-5.10/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ publish = false
build = "../build.rs"

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

[lib]
Expand Down
13 changes: 13 additions & 0 deletions packages/kernel-5.10/config-bottlerocket
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,16 @@ CONFIG_SCSI_SMARTPQI=m
# Disable AL port of BBR2 congestion algorithm
# CONFIG_TCP_CONG_BBR2 is not set

# Support boot from IDE disks
CONFIG_ATA=y
CONFIG_ATA_PIIX=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y

# Mellanox network support
CONFIG_NET_SWITCHDEV=y
CONFIG_NET_VENDOR_MELLANOX=y
CONFIG_MLX5_CORE=m
CONFIG_MLX5_CORE_EN=y
CONFIG_MLX5_INFINIBAND=m
CONFIG_MLXFW=m
13 changes: 0 additions & 13 deletions packages/kernel-5.10/config-bottlerocket-aws

This file was deleted.

115 changes: 0 additions & 115 deletions packages/kernel-5.10/config-bottlerocket-metal

This file was deleted.

Empty file.
6 changes: 1 addition & 5 deletions packages/kernel-5.10/kernel-5.10.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ URL: https://www.kernel.org/
# Use latest-srpm-url.sh to get this.
Source0: https://cdn.amazonlinux.com/blobstore/f2f4a85aff9b0efec71d75bc29454ce8ab73974486a2a8ba541343cee1c7a622/kernel-5.10.213-201.855.amzn2.src.rpm
Source100: config-bottlerocket
Source101: config-bottlerocket-aws
Source102: config-bottlerocket-metal
Source103: config-bottlerocket-vmware

# Help out-of-tree module builds run `make prepare` automatically.
Patch1001: 1001-Makefile-add-prepare-target-for-external-modules.patch
Expand Down Expand Up @@ -103,8 +100,7 @@ scripts/kconfig/merge_config.sh \
%if "%{_cross_arch}" == "x86_64"
../config-microcode \
%endif
%{SOURCE100} \
%{_sourcedir}/config-bottlerocket-%{_cross_variant_platform}
%{SOURCE100}

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

Expand Down

0 comments on commit 63ccf40

Please sign in to comment.