sys-kernel/vanilla-kernel: Bump to 6.6.110

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-10-06 13:55:30 +02:00
parent 711f4c4c53
commit 75e9d894f9
2 changed files with 157 additions and 0 deletions

View File

@@ -82,3 +82,4 @@ DIST patch-6.6.106.xz 4880660 BLAKE2B 3205119e8c10be006eb9f5c455a6fd2cec6b98f351
DIST patch-6.6.107.xz 4898532 BLAKE2B 5be64e27df6d78bd192913d6196a75530fc21fd9863426e08fc09e968679921eb706703bc159ddf57bc4c6aa4240a77b9b4eb626569c84c7a97ab834df76ada4 SHA512 84c59a8d255e91f0ba1356ea16e16e9a29e078ecdd7ef368fcd501679e2edb17e8b41ef42feb7f28a32b7b02fc63427d7f96594ca22e0ee0306d02054e173fcb
DIST patch-6.6.108.xz 4910552 BLAKE2B 6d482fe76be8b11fc931087537872b2a5b2ef862c8654be312d8531cc6bb4508a85fbd3a91c67f17190a42f0c6e0a540f27391aec3b4b81308c2ead7c43e2ab7 SHA512 fa31c0f6c378d80723c8acecf2e7dcd49028136d21be0596679d4797efcdc257a0c8994b91ab428934678626d14a01a27648aba48e643ad179cf2ac0b4220335
DIST patch-6.6.109.xz 4925652 BLAKE2B 1eea77c0d6966963fa61546aa5a2e4deff3145a61e0b3ddc2a179222aa736f7f65d8581ce4e549bf2d0a76b679dda6c0a2970e49036b8a6be8c9104a390d9fd6 SHA512 a3c9fadf8d6c55c569fc388c3585ef571a958eee3736cddc900beaec14c3b59e78ad3e38493177d35322f3f840f6f372c231bdf5272243e6d831590499d8c6bc
DIST patch-6.6.110.xz 4926864 BLAKE2B 062eded9bbb18836209b7b07bd5803602212f4bd1d0c9d87252eddbe9cbbce216f78618d3b797c8d3768ec4a1b71081c3aaf1ebf7cdbe4c59ddfcd77595bb658 SHA512 927f002bf2ec227c19d115589337e4189c8320aa30d54325923078e87f74e2b7ffa5f6dd9cec515c3266dcff3d74ddab2cae6cdfd63c120fa34923ed7d455ec3

View File

@@ -0,0 +1,156 @@
# 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
BASE_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=g17
SHA256SUM_DATE=20251006
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://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}/${BASE_P}
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="debug hardened"
REQUIRED_USE="
arm? ( savedconfig )
hppa? ( savedconfig )
riscv? ( 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 | loong | riscv | 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"
"${dist_conf_path}/zboot.config"
)
kernel-build_merge_configs "${merge_configs[@]}"
}