sys-kernel/vanilla-kernel: Bump to 6.6.94

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-06-19 18:03:58 +02:00
parent 3d451c932b
commit b070b6edfd
2 changed files with 139 additions and 0 deletions

View File

@@ -65,3 +65,5 @@ DIST linux-6.6.92.tar.sign 989 BLAKE2B a953fefe6029d3691c4dd8d14b3951ad2edc7e459
DIST linux-6.6.92.tar.xz 140596892 BLAKE2B 5c70c904ba024ae6e9886414c6e25a38b70b54449a798ebb4a72cd702edc6269eb867833bd90e7631e9f30ecf6dad3d64e8bb8db6d0c877f3416a9c738ea3f11 SHA512 3399da69b892ba80d041ab7c25714ea5fbb73d3fdf0f616c79a58bea861af8796581444859a28773ab0ab1cdf1147f7e3dfc9b0f048d210f92ac45a288823830
DIST linux-6.6.93.tar.sign 989 BLAKE2B 5983d746896148f8c7da680e838217b0f59aff1705e5b4312b63f96140912c05428c8b4cafa4b1c0813724c04e1d04c69f98ffc3eb53fc6a06baaa6be9cf743a SHA512 1bf539b2972184cf28b50e3e4366079bba7d71bf08c7afc6636848bc0a626785d918c1b530cfc16da68c201da4fff6466239f78e93a362693332ebf402a150a2
DIST linux-6.6.93.tar.xz 140532064 BLAKE2B 6539b362f93a0c0ce2004f9a5d1dd89c96e07789cf0015784bac1f4fc91138db7c2dfa5797d0157cf5113355b939aaa08a83c1a938fecf7e8ff6807cb2ceb31d SHA512 92c99641380b2ee8968f029daab3c37708b59bd925d9795549d5710f2f153161aa1d797bcae154079ee1efee1118292a127a3b6c1ced97e550bd31ceae69e114
DIST linux-6.6.94.tar.sign 989 BLAKE2B ff090df5f609aa2784fe70b60e865c2057e332f4d2a9dc7b2da167fe77d9a285d2015abc99cadc63a9976907c6103de10d9aabe907e9f1c02f042f3894a24e92 SHA512 04d9dee0369b0b0de20215ccdd676401ec49a734232684edb697e6d38bc5e45368f77145b36d9302d44176dbbb263ac2184f4290fbf2b5311edee0fd770a3725
DIST linux-6.6.94.tar.xz 140571164 BLAKE2B 1fc4d4e72ab3d979343eb39055167df8f530c58b66fa5f16870f5bc33cc04f6375f569eef005d034d23c2c6a90e07ce9bd598bf0311df0579f80bfc7f9fa53b1 SHA512 c25a7f0bdc3c333fec9a9930884c0d30e9322a166e66de2949a81881f2c1d727916d7a7a78f2de5f2d2ab44f28149f2610c68dfb64382566891318b9b9f8cc7e

View File

@@ -0,0 +1,137 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
KERNEL_IUSE_GENERIC_UKI=1
KERNEL_IUSE_MODULES_SIGN=1
inherit kernel-build toolchain-funcs verify-sig
MY_P=linux-${PV}
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
CONFIG_VER=6.6.12-gentoo
GENTOO_CONFIG_VER=g16
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/${MY_P}.tar.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/${MY_P}.tar.sign
)
amd64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config
-> kernel-x86_64-fedora.config.${CONFIG_VER}
)
arm64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config
-> kernel-aarch64-fedora.config.${CONFIG_VER}
)
ppc64? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config
-> kernel-ppc64le-fedora.config.${CONFIG_VER}
)
x86? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config
-> kernel-i686-fedora.config.${CONFIG_VER}
)
"
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~x86"
IUSE="debug hardened"
REQUIRED_USE="arm? ( savedconfig )"
BDEPEND="
debug? ( dev-util/pahole )
verify-sig? ( sec-keys/openpgp-keys-kernel )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
src_unpack() {
if use verify-sig; then
verify-sig_uncompress_verify_unpack \
"${DISTDIR}"/linux-${PV}.tar.{xz,sign}
unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz"
else
default
fi
}
src_prepare() {
default
local biendian=false
# prepare the default config
case ${ARCH} in
arm | hppa | loong)
> .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}/${MY_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[@]}"
}