commit:     898e3cfdd090bc6a73da3d520ce1208eb76a7b07
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 20 13:47:05 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr 20 19:12:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=898e3cfd

sys-kernel/gentoo-kernel: Bump to 5.10.178

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

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

diff --git a/sys-kernel/gentoo-kernel/Manifest 
b/sys-kernel/gentoo-kernel/Manifest
index 03e48081a13d..30167b7eccf9 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-185.base.tar.xz 5154772 BLAKE2B 
f7d88f5c6b98dc265fbbabcc5a4
 DIST genpatches-5.10-185.extras.tar.xz 3868 BLAKE2B 
d42ae4d95f81771334ab313b01f8282c4e12ae4b89e2c7e60ebddffcc78a53131a4b54874ad914a47bd81d3b9e24f4c072a8d042c824dad8cef209a20d6788d0
 SHA512 
9bb9676480aa5fefe8a5202da3d20a0e2f395fcf4a0b6ecdae2ec62745b5adf4955a56bb1a346b7441162f36108b4c1f02374b248217d99f03d241f5dd51bbd9
 DIST genpatches-5.10-186.base.tar.xz 5195200 BLAKE2B 
80451354985fedc89685d4bc6897aa66833eb2ae3916b8eeee9a5884107256f4050e8512194effa5f47123f580e50d2b1c454e178a46255aabb9c84a7d743cca
 SHA512 
267850925d6c4d527cf9e847657d5a7d33d9073444a2a1076b81c0db1ee973b333f99b7c4165688bc2072f8a11447aa35e460039569369091ddf45d457b48839
 DIST genpatches-5.10-186.extras.tar.xz 3868 BLAKE2B 
fd83930f87ffab80902b20d931dc9131915e3d6d33f66d7698f5ec7bae211ef1da5d3be0b60a6871b8696e0ad3a60d71dd0b17fb09fb14eaf77a0d570f6e0948
 SHA512 
aa3df46b0a3640310377455592411b3254505b2262ce58f0c3a374077199ec0c7a63262dcba84ef88a553951c786cf6d9ace55a7cacce48d19696ab568c25cc5
+DIST genpatches-5.10-187.base.tar.xz 5232456 BLAKE2B 
286880822b99151a2141cd880c9db078bce6d994ba34af779702358e958534e4962645d858c69abde2adbfb6b757bf2674f2e0147d50080adb615f0eb48f286f
 SHA512 
2aa1bbd3ae2501eaf6cb2d9739322dce59580031696ca5e4b58750765aa9618222ecd02b1adfb5796100b3a44ef302a1266b0ca6430b36bed583b976fbc63c8b
+DIST genpatches-5.10-187.extras.tar.xz 3872 BLAKE2B 
f84dd90909c62c540aeb80714d78a9690095fae1e39bad7a4dd54a2536960c10c7a006d57fc7db367912f11bb1180e43d45ef051e23cc31cf7680c35c6eb23c9
 SHA512 
6e7a6ee7bfdded4246b499471254d6233e6de7e2cf1192505ff7da4cfe7f967adecb455b34374900ce482fd31482024a51486e2942eae6c600491762417cb247
 DIST genpatches-5.15-110.base.tar.xz 4312720 BLAKE2B 
58e3c5a0001f1245a25cbb66e239d393c48d265a5213e51601ea9b24fc33fce97472a1cb63e990ac2d2165c5e7d40372e53952aa47d347282c8ce9f8434a140a
 SHA512 
abbe6099973c90e0751456a522717d7f2d993d873af4a98aff0150c1dfc9a75cf56f9d850dd2a5b8c80915ab27110c65b0b482df27bda00262c043fba731cde6
 DIST genpatches-5.15-110.extras.tar.xz 3932 BLAKE2B 
f280b14d3c6b1ed89ccf9752071dd55641d59354a680a2419a8caaa993036ecec716fe063d40fb566ab788632ebc71970b2460b6b915ea2d1db68d78fb7069fc
 SHA512 
cbb844978cc225fab030f43ab0ba76fe5138a9c84381bf1318df55c24fe33bb734f60512daf27e20c191c58da821c69228aa98ca91adf224383a08bf3457741c
 DIST genpatches-5.15-111.base.tar.xz 4338620 BLAKE2B 
4f9776b980fabba9dcfddaae243b747bbae801ce1339268b64064284301050870435f17e3b9ad601e2fad4e1e3f9c5f355246b8410040f190cb584d23f697567
 SHA512 
89829bfd02281f04a3d4cb5c5a72afb166eabff4d0fb794a37a8b746f828b12fd4571773c5c9429f66345a25faee91a0d77d10f768bf69d3d2814e868a1664b5

diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.178.ebuild 
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.178.ebuild
new file mode 100644
index 000000000000..275a706cd1cb
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.178.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2023 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##*.} + 9 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.10.12
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
+GENTOO_CONFIG_VER=g7
+
+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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+       
https://dev.gentoo.org/~alicef/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