sys-kernel/gentoo-kernel: Bump to 6.18.22

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-04-11 21:35:36 +02:00
parent 2affcc5dd7
commit 16e37cd386
2 changed files with 176 additions and 0 deletions
+1
View File
@@ -68,6 +68,7 @@ DIST patch-6.18.18.xz 1190664 BLAKE2B 528b75f7963d3e1dd2e24cd282510388c528cd93a4
DIST patch-6.18.19.xz 1261900 BLAKE2B b39f17eedc96c9388720b877ae76796b4d75e02976ad59c0c5461be9be8f90de814c08c63e35b188e7ca65d7c08838fa317597cbb5c6927085642021659e9184 SHA512 f5793b02109ce16d5558b6367d9b1429a4917488d60922859626ba25c76883ace75501f0e1259bfdf52d26d62a71e12f212134c28162ffcd01f540618a35b2a4
DIST patch-6.18.20.xz 1310844 BLAKE2B 7da00fb985db1a29e0da0c957b015b6acc65dda3ca7b26c227cd9bf83f9a8ebb720950b19ac14bf78bebcf317ce5e73dd5c4034ecd120da483613f99f1e450c6 SHA512 c8488e95355a9d036647b14f7355f607b5b0680e74f0c73730c74d490cf2c6df5128512a04a97a78b31c8d668990225fd9bd799de4e9907aa8265398f900edd3
DIST patch-6.18.21.xz 1382072 BLAKE2B 9eaf6bbb97bfb7c7463dc904d65cfaaf67212106c81022e87fd0b766178f865a4c705a2c0430ff101c5fa144d22fcb7c0bf686b12a475249cceedc5ba2a0fa6b SHA512 d9fa1744a674a4666bb5904c899fcb2cfe1e3a8b0a00190fb71ca6346b3d88b36fdd45af17b6442754e996f5bb5510b94aa6db5434291f40e7d799767273dfeb
DIST patch-6.18.22.xz 1461196 BLAKE2B cbf351ca526044c0e5c69053235886d2167173e24ae9c1887cbc96a286f389ae417a5c6c07ad0579a3fae5adcec33524ea811a2f1179e95e90abeed3bb0b5e21 SHA512 8171287486899d50262df42cbbeda81db86c3245334799f5517cb4f01fb2095bf6e27ad95abe01be635bb9992b20647a5cdbc6e19cd8cdf9cc8bdc6aa62509e9
DIST patch-6.19.11.xz 864748 BLAKE2B 2f94e7aeb76f0aebfa26e159bd6c226f31335b3e3d3bc71f289587394d53ba461ca1088d0a24fda4a9920393727d41de0700de588399d80dba843d7fabd32dca SHA512 c68361a19d04529226beb12cdd3a764bdcf481dbad342d5626d83412a00857588942308e880a92fceac31c79fe6f389bcf7b1f171e7c57b0110ec2babc0e24ae
DIST patch-6.19.12.xz 948944 BLAKE2B 155a7b412f7e0699c6b23cc3a53b9ab0fe38980d9ece77977f50c51f748cb79e4076fde7eac574ee68a85dbe661a4e6bc10ed5a6cb5b1fc5fc3b1ec150f25757 SHA512 375caad1de11ef1466f7e2fa85775e990f215bae0e269d4a97661c936f633df40c51af849880ef05c4cd323cf1d27804b72222cb12df98af021623742e000330
DIST patch-6.6.130.xz 5810044 BLAKE2B 11a550c3e859433a159f3f91e315387bfb77907a5ba1d5802558aaf2261a11dc6be9da68042ee73119842d11dc450243289fc32a0d44b86ca37726c7c7d98688 SHA512 c21f87ad8de45a550a2a50e5485c4846964f82a107a50ed542c07fc56ccc8ae0bb6e8774fe816b8dfaa3841c812293063ab6b5903415282de0b18e6bec91ae12
@@ -0,0 +1,175 @@
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
KERNEL_IUSE_GENERIC_UKI=1
inherit kernel-build toolchain-funcs verify-sig
BASE_P=linux-${PV%.*}
PATCH_PV=${PV%_p*}
PATCHSET=linux-gentoo-patches-6.18.16
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
CONFIG_VER=6.18.12-gentoo
GENTOO_CONFIG_VER=g18
SHA256SUM_DATE=20260411
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/${BASE_P}.tar.xz
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PATCH_PV}.xz
https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/$(ver_cut 1-2)/${PATCHSET}.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/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}
)
riscv? (
https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config
-> kernel-riscv64-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 )
sparc? ( savedconfig )
"
RDEPEND="
!sys-kernel/gentoo-kernel-bin:${SLOT}
"
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-${PATCH_PV}.xz"
cd "${WORKDIR}" || die
fi
default
}
src_prepare() {
local patch
eapply "${WORKDIR}/patch-${PATCH_PV}"
eapply "${WORKDIR}/${PATCHSET}"
default
# add Gentoo patchset version
local extraversion=${PV#${PATCH_PV}}
sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${extraversion/_/-}:" Makefile || die
local biendian=false
# prepare the default config
case ${ARCH} in
arm | hppa | loong | 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
;;
riscv)
cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die
;;
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
"${dist_conf_path}"/6.12+.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[@]}"
}