sys-kernel/gentoo-kernel: Bump to 5.15.186

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-06-27 14:38:15 +02:00
parent 3f9f8e0c13
commit f57a0d26c7
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 138 additions and 0 deletions

View File

@ -8,6 +8,8 @@ DIST genpatches-5.15-193.base.tar.xz 8222200 BLAKE2B 387f5ebf9ba84a21c256bd6312a
DIST genpatches-5.15-193.extras.tar.xz 4060 BLAKE2B 5b70750cccd0c797e57d8b7cf67bfb389b61bd56bcbf03f49c2659dbd38e23e0b669eea292c642164f07e5e47eb6fc7d83f2c21eaac9b63d9ecced8eb0ecadab SHA512 410b0236e2ce33bf6b575a4d1f5f888f7be9cd65e51a90723481807eb4cd85083b2e6d5401016f8a6f4e8b03d8866c0b672e798e80d6a90e282e239473b67716
DIST genpatches-5.15-195.base.tar.xz 8297016 BLAKE2B 0cb4e5da03682a78b41e38de78919ea41c52acc67eed3fdc88ecf919884fb8e037983e1524649caad519497a944585c550468afaa79dc62c2d10e4bf5e218147 SHA512 3b0c3cbd6c4c2d4094e403f91780f8e5e1f453a3add2727b7437e29b4803b32da763539e8720da93002e0a6debc02f9a0ba15efa83f2ea66b4871283fe9aa3e7
DIST genpatches-5.15-195.extras.tar.xz 4056 BLAKE2B 3c7999a16ba1a5c3f84ecc0edd1fa92c4456201f582185eb954a38ec413d6ee4f77fef6bc9807372ebacc197f5d03bc1eafbbc113d4c44c60862568954e85a46 SHA512 3c096445a11a49c3f0547f2a51c2265d21b2f0d6b9ffd084faa90034e4e2f598e422f9d612fa47a474d420e2d9f4caa8e5d1b818d8e1276930865e4ad85a6bb4
DIST genpatches-5.15-196.base.tar.xz 8379708 BLAKE2B 81831098487c9d83e8cea12250349a6f8a1ff83bcc363458ed6c4fce747e12073a373cebeaa182a6a12f0475bd7ad77de12f416cfb660a7982f31a1cdab7b3fa SHA512 e6155527e8c400e2d6663ef1b4a5e318379784d5c32f2cf94ab59720fec8aebef4fc52e904773a493e098f10910bbc48c78fc073c91662e58e1b1a18c2207d03
DIST genpatches-5.15-196.extras.tar.xz 4056 BLAKE2B 453c2bd72b2c1fc554b4d618e9530d6eb9f4fd6bbbf7994a802f098ca21ad1fe3f5d50ec9644a2dd6ee3770569b2d5cf5c65a9e83dc4ee966e9c8aede5d54f73 SHA512 24bc5325672dc94227e3ca02cfcbc2ced44ff60ed8c6c6582f31d2249c26ebda77a44580f8b9b1a42e16342db5b0d56af563c30b8286c752b2638ae13a04a3d7
DIST genpatches-6.1-150.base.tar.xz 7305232 BLAKE2B ab1cc6541bda8af60a3aa5a9cf58a47ec3d0f5ab84d79cd557f4fd71b0c43984068300d5df18ed3f7e2b3548c3b3e7712f6c6c6c767f23de9103d7138e9e500b SHA512 9ef78029cda981e733b6340079bf37ebabc86d97e5d7974b0bc5b39ca90744beebb06aafc6a9b35ede5bd75657d3161307dd4d85b9f80907854488b3750b2699
DIST genpatches-6.1-150.extras.tar.xz 4052 BLAKE2B e268be13305885933ddf6b51953488c134f5709b824ab06921577788a7c77f687e87699b0d75148af3384be8d5cc00dd0c0633fe8edfa2096eb733f668656cea SHA512 6a656b40cd59fd788f0faa9b93ec33b8a48b11014f83b2a0ba52288ad88101cb7a40cb3168fc6a502da93a2c79972c640ad37a12b4ef2485fa7001a963e491a6
DIST genpatches-6.1-151.base.tar.xz 7402608 BLAKE2B a7f5f902d84b19d48a26e1c00adb3d6351c8001a357b87e7012817dd4b568fffc8b7312873e5baca443f79f42e90e5fc33f6a949020ee431d82803ee219935af SHA512 e1806dd94379d483a99d76a2cdcfa60d304dbffb19c4b7e17c38118f1df0926df7a0c36824b5398798bff86147c2e557aedd35dc828ff17d53dfa8324171a25f

View File

@ -0,0 +1,136 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit kernel-build toolchain-funcs
MY_P=linux-${PV%.*}
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo
CONFIG_VER=6.1.102-gentoo
GENTOO_CONFIG_VER=g16
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
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}
LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~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 )
"
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 | 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
kernel-build_merge_configs "${merge_configs[@]}"
}