sys-kernel/vanilla-kernel: Bump to 5.10.254

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-04-30 22:09:26 +01:00
parent 7b60f98210
commit 141e334cca
2 changed files with 150 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ DIST linux-7.0.tar.xz 157143652 BLAKE2B 3d9795083c8938f80f480de0d10bfd9c525640e5
DIST linux-7.x-sha256sums-20260427.asc 1876 BLAKE2B f423b97f3c241abe3cdd757f6bda34cd900c4140b371a5a7abb692dc3e404689266e162c177c66e8eee991ce5c3b7bb681d8b8cbf1c2005aaaf7291cba9efe7c SHA512 90be7186a920260a6553d08bcf6bd0ca142988134ff2d8277773624d18d0c92e048a2c620965185b35b4567708aafe610d58ef899eb306f2d4b1e2bd481253e4
DIST linux-7.x-sha256sums-20260430.asc 2206 BLAKE2B 24d86e0f6338498e8b5f74cb0886692ae0003c30a70e6f6654588064df9ec4f569071982e141bedba1b2e7c6728e73dede5e2ce2764554c62db7587b5fc1e86a SHA512 cf08970476eb1cfedc9cf75ff73fdcf8bfbb79d1a49ead4a07e0bee8659a6fa3c8c369b33251c75b030ec34cfc2c4077b25fe07c1022c2e6a1db4026c7768189
DIST patch-5.10.253.xz 7248732 BLAKE2B ea684b60dfb1c3b28f5f530d46e8933fa4ff3f4ea1a6498b9cfe8c995621f27d824fe8b40686494549981ac6e30c809cd626eef6a9536f44c929e91d28c5e2f1 SHA512 f195170a0e6f924aa114f66fb72fccf19bec43c4b69d15dd94052f6e00bcfd671a30d47cc1b86617d9bb6943e05df22d6df0a32dbfd5effb65b98f1c4fd99ae3
DIST patch-5.10.254.xz 7254948 BLAKE2B c409ba9cdc2f8280c8b947a1901980db9ed886f7aa2baad24524333a5bb855a60ae05747b745a830beaadc8500177b6b736dc0fd7266f556d9c141600a90e24e SHA512 1859322a2f1b7a40bafe6c8c386b44ec92801f7c42b4c917fa5e755b3ecee50e53a48ed004546369d0c6ce656e5a5802d6ad10fef86f47fa5881919abb176e40
DIST patch-5.15.203.xz 7676312 BLAKE2B 3a0e051b3c93864baab5c7f4757c6b147b17a75a1347e65f4c37bb83c268ab2d6f1c1258e7195b777f588f86b02e69416b96831d9284da8e9d3e52ccc153d5e5 SHA512 fb4dd6a04e408a3cd12963427e1b9acef6ecabb3feaf3e4721588c428d26e6c184b1c673b35f4ddda0d669a27d013c6c6e906289493546df82960d409581e903
DIST patch-5.15.204.xz 7681224 BLAKE2B 5f876404ff1acf25e2553dbb62658d1ab205207811296f0119fae04aca751484e93c0146d019199b406af7a9d79a589bec8b0290730cf2367fd3fa823d74226d SHA512 f0a9ad08dbfc324a8e063fa7c656557ad46dec323f986df01bb722259cfd325b39551c9c2c485ca3b1a2447bdc9c589384992742728a9523bf2aa152d988eeb5
DIST patch-6.1.169.xz 7317628 BLAKE2B c9ca4999f7433c27ebbb3d2592227e8097353ec084e1c58c328f3a887a2b0543c7c8d5ae1a140c13ee3d3861a958ebf29a21b6e935b44c28a322f6e3fc491855 SHA512 23aad9a93157c55907e168d5a492c4c9749833b90e051e590281b3cb075b17ef5227f79694008fdc3470ab78a13054c416f9c71f6dd9a205fcafa8645e1eae8f

View File

@@ -0,0 +1,149 @@
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit kernel-build toolchain-funcs verify-sig
BASE_P=linux-${PV%.*}
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
CONFIG_VER=5.10.12
CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
GENTOO_CONFIG_VER=g17
SHA256SUM_DATE=20260430
DESCRIPTION="Linux kernel built from vanilla upstream sources"
HOMEPAGE="
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
https://www.kernel.org/
"
SRC_URI+="
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
verify-sig? (
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
)
amd64? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
arm64? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
-> kernel-aarch64-fedora.config.${CONFIG_VER}
)
ppc64? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
)
x86? (
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
-> kernel-i686-fedora.config.${CONFIG_VER}
)
"
S=${WORKDIR}/${BASE_P}
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug hardened"
REQUIRED_USE="
arm? ( savedconfig )
hppa? ( savedconfig )
sparc? ( savedconfig )
"
BDEPEND="
debug? ( dev-util/pahole )
verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
QA_FLAGS_IGNORED="
usr/src/linux-.*/scripts/gcc-plugins/.*.so
usr/src/linux-.*/vmlinux
usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
src_unpack() {
if use verify-sig; then
cd "${DISTDIR}" || die
verify-sig_verify_signed_checksums \
"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
cd "${WORKDIR}" || die
fi
default
}
src_prepare() {
eapply "${WORKDIR}/patch-${PV}"
default
local biendian=false
# prepare the default config
case ${ARCH} in
arm | hppa | sparc)
> .config || die
;;
amd64)
cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
;;
arm64)
cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
biendian=true
;;
ppc)
# assume powermac/powerbook defconfig
# we still package.use.force savedconfig
cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
;;
ppc64)
cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
biendian=true
;;
x86)
cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
;;
*)
die "Unsupported arch ${ARCH}"
;;
esac
local myversion="-dist"
use hardened && myversion+="-hardened"
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
local merge_configs=(
"${T}"/version.config
"${dist_conf_path}"/base.config
)
use debug || merge_configs+=(
"${dist_conf_path}"/no-debug.config
)
if use hardened; then
merge_configs+=( "${dist_conf_path}"/hardened-base.config )
tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
fi
fi
# this covers ppc64 and aarch64_be only for now
if [[ ${biendian} == true && $(tc-endian) == big ]]; then
merge_configs+=( "${dist_conf_path}/big-endian.config" )
fi
use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" )
kernel-build_merge_configs "${merge_configs[@]}"
}