sys-kernel/gentoo-kernel: Bump to 6.6.82

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-03-09 13:24:39 +01:00
parent 291a314c12
commit 45fbee2236
2 changed files with 147 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ DIST genpatches-6.6-89.extras.tar.xz 4056 BLAKE2B 4b99db4ff4597f9e5298dd9399d266
DIST genpatches-6.6-90.base.tar.xz 4599636 BLAKE2B b2edd0cbe2165fd57f89e2677cd705a89223a5a2960a2963d3e5023dd244f6e3c5fc57eabf22310ea8b7bcc19f8a18d4264c464b3b3309a921903b7ed0743a3b SHA512 3e857ef3240e19263609603b145f7407777a75c4e747556c1756076cf4c88a07b83531679de65e783f35bd7dbf883b3a284092a7e12c983bb3a5cecadf43f7be
DIST genpatches-6.6-90.experimental.tar.xz 6048 BLAKE2B 33186cd58a987774bb3b7b3e3f89c4436bfac6aacb939ceaaab5274f76bf68bd37d891bb6ed87a0553106ba40bb94a06cdbc15aafc2689512f8da66fc1f94c06 SHA512 196d2aeebc99bed2a7f7f6711b3abfb009ff80307c34a183e9b115c5d375bc098f71a9cfb291961b1c0b9664c44d21a06069c6db6692b96b8ad25c43a305d2c2
DIST genpatches-6.6-90.extras.tar.xz 4056 BLAKE2B 7340bb8da2740eb61379ef3e4b41833222bf03cf77b43af7783165c4bb1cd62933f7a79d8f206192498c16a5b44152c59f6301a9db3b211d1e8d40747ccfd5f1 SHA512 a96b38962664b6c21afb64e764d17720d52b04ad4e17c1d9862ed136ce93c272e593dad46a30c532784a2eabfc90519614ccf1cf27bf6480a70b2443668a8d05
DIST genpatches-6.6-91.base.tar.xz 4601548 BLAKE2B 51c18245e7540477ad1b70b763d00bb7fa212dcead101c538e7358ece3a3ada8228a5ee8a037d951bb0ad2e55dc8676acd2e11a6c10fed8336e867989d4209e8 SHA512 77cfdf1bfb0ec324a7a5d8fdfb28f1da4d2f0ff3c9edcf7d880628ac7137e2742bca6e359e39956cbba1440c42d9278390e548009c34389d3672016cd36a18a7
DIST genpatches-6.6-91.experimental.tar.xz 6048 BLAKE2B 3b8d1534a2af6099d0bc0c549f977d17dae42e73097f4ea4c71b82faa43fc97bda3fd0311aac9fe36e64331906687dc5c89ce651a1b4f1ce1b78f80be9a4aa55 SHA512 0be361d73ee43f0ba0a59b5f89e877365dc990d95a63e858cb5a171dae145489d323ef5a1bb1bcbfab606d7506bc7ff85ffe0b9e02c0e431b762772b3bb2c981
DIST genpatches-6.6-91.extras.tar.xz 4056 BLAKE2B ced4c827b6f291a1c1ba4392e5c29173a65a3ffad6aec147c11ddd985fb7f4f7d65061319cfb0bc0eed77ec333fa9fddf6b89925ea01591c8a17b48588df80da SHA512 d1a8336c3a2df065d3069940ace82cb36d87fe015339279291dc5dcb6aac618ff1677ad1831cd339fd726e0becae9d06474c98cf1c8ab8704a90c161d6cb6fe1
DIST gentoo-kernel-config-g15.tar.gz 5746 BLAKE2B 2baef40e18cbf3bb975362d71ad674604ad80338d1e6914ffa2fc03af26f1b9c9cec66d39a56077693a7327060bc29bd5eb5787549857dd3779e841192cb2016 SHA512 45d609ee25a529988868b8c99c808f4e6abbde34ae501bf35523431ee85c9f3657663d6f938f2036a5f012a55a68965b32fd41fc44d8f6ca606a6fd38f952445
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52
DIST kernel-aarch64-fedora.config.6.1.102-gentoo 252811 BLAKE2B f6bad0d23132bf0dfbaa25db928a95f39763b6500fd1df9b4aeca4351e3e75f185891c0df96b111ad840e4bac431d74a9b11e7344e766ab49715663c89e4dbfc SHA512 41ebf195d8b656801d49c6bb693ebe1404b6725d70d88d93a75bc4af230030d65ef0701ea931846b022a3c598dcca068fbc38ecf6d064262b3f5b88e57060437

View File

@@ -0,0 +1,144 @@
# 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
MY_P=linux-${PV%.*}
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
# 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=g15
DESCRIPTION="Linux kernel built with Gentoo patches"
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://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
experimental? (
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.tar.xz
)
https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
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}
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="debug experimental hardened"
REQUIRED_USE="
arm? ( savedconfig )
hppa? ( savedconfig )
riscv? ( savedconfig )
sparc? ( savedconfig )
"
RDEPEND="
!sys-kernel/gentoo-kernel-bin:${SLOT}
"
BDEPEND="
debug? ( dev-util/pahole )
"
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
"
src_prepare() {
local PATCHES=(
# meh, genpatches have no directory
"${WORKDIR}"/*.patch
)
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}/${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="-gentoo-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[@]}"
}