sys-kernel/vanilla-kernel: Bump to 6.6.112

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-10-15 14:53:07 +02:00
parent cf54c5e41f
commit 65563d7094
2 changed files with 157 additions and 0 deletions

View File

@@ -92,3 +92,4 @@ DIST patch-6.6.108.xz 4910552 BLAKE2B 6d482fe76be8b11fc931087537872b2a5b2ef862c8
DIST patch-6.6.109.xz 4925652 BLAKE2B 1eea77c0d6966963fa61546aa5a2e4deff3145a61e0b3ddc2a179222aa736f7f65d8581ce4e549bf2d0a76b679dda6c0a2970e49036b8a6be8c9104a390d9fd6 SHA512 a3c9fadf8d6c55c569fc388c3585ef571a958eee3736cddc900beaec14c3b59e78ad3e38493177d35322f3f840f6f372c231bdf5272243e6d831590499d8c6bc
DIST patch-6.6.110.xz 4926864 BLAKE2B 062eded9bbb18836209b7b07bd5803602212f4bd1d0c9d87252eddbe9cbbce216f78618d3b797c8d3768ec4a1b71081c3aaf1ebf7cdbe4c59ddfcd77595bb658 SHA512 927f002bf2ec227c19d115589337e4189c8320aa30d54325923078e87f74e2b7ffa5f6dd9cec515c3266dcff3d74ddab2cae6cdfd63c120fa34923ed7d455ec3
DIST patch-6.6.111.xz 4931684 BLAKE2B a832e787516bb20de7e4841b1f5adb45683c900bb4df9b7856878c150a0b5e27d8b83c951eb68cdbf8ff0cd42e4a12c65792c032854b140efd7759eb9b1c39be SHA512 583fbec82cf16b75e1e447a51c858dfde9b1599f4970e927043d6f2e7f4cd0afc619432b001d3cb89d33c02414eb217b811717973b163d646676c3ca86f48b3c
DIST patch-6.6.112.xz 4963076 BLAKE2B 4e4798a85173a15fd73cd126d9444b0726701bc9c4d7f94a5fce44401787f6e8c2550190e9243426b8216e866663aa9a554552b1199e55b54138d60a4c9f22be SHA512 6a622dac83d2a7f737799403d41695582ed7f7cd008096af55fc930cc387c498dcffd826ed51cf9fa5011bd7a53549f8ab95418c010e9ed9a0e16aba91cbbde2

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=20251015
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[@]}"
}