commit:     3fab2af1b444aac7abb8ad61eb0780272268b86b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 19 11:34:39 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 19 14:47:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fab2af1

sys-kernel/gentoo-kernel: Bump to 5.10.224

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-kernel/gentoo-kernel/Manifest                  |   2 +
 .../gentoo-kernel/gentoo-kernel-5.10.224.ebuild    | 134 +++++++++++++++++++++
 2 files changed, 136 insertions(+)

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 62c04bff3e74..daf06d551540 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-233.base.tar.xz 7166884 BLAKE2B 
5e1b812e33adcc648e6a85d90ff
 DIST genpatches-5.10-233.extras.tar.xz 4048 BLAKE2B 
8f7686f1815ec0bcfe333c237ad1734276a77b169d6d1f5bb235d6164365bee953919f0fc26ccec2954b1d1aaa250ffdffc1da85bbc5559f4e3fc0be6ba2fd8f
 SHA512 
50646414ca3b5990e92da42550a8beb94ba44f428edf92a94286f20421fe396a9d6e53dde8278a64a3c99020c0a217b104bbe527de60d1d5acde362e61765de1
 DIST genpatches-5.10-234.base.tar.xz 7283988 BLAKE2B 
7429eee0f5adb684e437369df9483c79d6411a1c102026ad49023b364a66704fc98195da228601748ad2d7a51900e9558bda9af3de716e07a6f1437ba4941626
 SHA512 
3bb6bb844aa76c14aa3d8cf4b8641f6492df414c12ca4f2900d18de7b818fd6b93f55a83bac5259f6980740cfb820e24db28950083c81e74399d75b033667a62
 DIST genpatches-5.10-234.extras.tar.xz 4056 BLAKE2B 
0710e06cd3de7af3bcfc9b93db861bdffe880e427220ca594ea1c5c261f273022086c4202c0a362f46f85da31233e7b24b12c77393a0d0a0f87f553470115578
 SHA512 
d4a09984b3ea6207e88bdbbdff8c5ebfaa433af7ebbe3650730b1b5f483c4ffa97fd6f8815cf35d3b865140699e9904151712de627c9f6769080eb71a89ca4b7
+DIST genpatches-5.10-235.base.tar.xz 7367252 BLAKE2B 
ea3261b363e415112f0a13f4666dd226a33ad12962d481532875e7e8551ef739a55ebfee344a299368b3cc48cb1c2a465fe4151ec708983d1daa70f9d36f849f
 SHA512 
bedfd9382d35a151c0b7ec102614d8a1f9866876ff4e308867803c32416db31d34197c26b6dd781c9a0c994e49df33de943975cca8ef9b99680916f2cdf2f325
+DIST genpatches-5.10-235.extras.tar.xz 4056 BLAKE2B 
6341fe389c77377eef465c9a92587bf370a56ecbbb65ec99eb2002e1e9525ad6a6fa1aa60f7ea28b52729a4779e236c706155f98a336358d12d1bf4c80381660
 SHA512 
d14506f3b69069682ab736b96116e58420974b77d99a22818601af7451aa07ee564dad10bef321f288be4594b6990b25521518865fcb111d9886aa3c1681f977
 DIST genpatches-5.15-173.base.tar.xz 7038704 BLAKE2B 
4cf6ffc38ba49bdcac210b165c9ce951283ec083f928ab14f19a16fd46e195730d169f50b45f8ff05e5d8ed2cf9164f4940659ea23a0ee9add30dc2e6ee83f84
 SHA512 
d875a5a2eb58ca5e0659b2cc2a360c5e837e73cb479508c0c8350456e58019025c96278727ab9877a103138d2e41653efee51ea3dff0bcadbd7da0e076a244ef
 DIST genpatches-5.15-173.extras.tar.xz 4052 BLAKE2B 
e7d4effd4092467275f3f076676daa06caa2f647da1173a6132ebc30da1be78a085ddede5aa170c3d666f1808c4824f441dc5a1e873868fd72347a0c84149fff
 SHA512 
7d272e7448a6688efc98a5e71eb8f83a978d82e9b177ae0b9b12c479078e23fb8dd66021f1ad488d9bfc056c89e7ee8642425dbd15607eaece249b565edc7fef
 DIST genpatches-5.15-174.base.tar.xz 7146696 BLAKE2B 
02aaa04e156b848c1303da831795e48f038ced7134453cf1b09534df9ad46888ea807772af161b1c61a679a5c6adabe6a275dea97f425ba10d003ca9391af0b7
 SHA512 
cfc7e7e878d9f1fae329ea4103c785c7cda26bc37f0015a37dc1a5c79842b98a04923e53177cbf1977396a0fdff5fdc62d176642999a5b6fd89bfa9bff251597

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.224.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.224.ebuild
new file mode 100644
index 000000000000..0845d4e45e94
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.224.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2024 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##*.} + 11 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=g13
+
+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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+                       -> kernel-x86_64-fedora.config.${CONFIG_VER}
+       )
+       arm64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+                       -> kernel-aarch64-fedora.config.${CONFIG_VER}
+       )
+       ppc64? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+                       -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+       )
+       x86? (
+               
https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+                       -> kernel-i686-fedora.config.${CONFIG_VER}
+       )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( 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
+"
+
+src_prepare() {
+       local PATCHES=(
+               # meh, genpatches have no directory
+               "${WORKDIR}"/*.patch
+       )
+       default
+
+       local biendian=false
+
+       # prepare the default config
+       case ${ARCH} in
+               amd64)
+                       cp 
"${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+                       ;;
+               arm)
+                       return
+                       ;;
+               arm64)
+                       cp 
"${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+                       biendian=true
+                       ;;
+               hppa)
+                       return
+                       ;;
+               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[@]}"
+}

Reply via email to