commit: c3320c18509476403d74c29eba2f9d8495496596
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 26 12:07:24 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 26 13:37:33 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3320c18
sys-kernel/gentoo-kernel: Bump to 5.10.179
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sys-kernel/gentoo-kernel/Manifest | 2 +
.../gentoo-kernel/gentoo-kernel-5.10.179.ebuild | 134 +++++++++++++++++++++
2 files changed, 136 insertions(+)
diff --git a/sys-kernel/gentoo-kernel/Manifest
b/sys-kernel/gentoo-kernel/Manifest
index 8917262ef98c..c14a23c89f4a 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-186.base.tar.xz 5195200 BLAKE2B
80451354985fedc89685d4bc689
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.10-188.base.tar.xz 5250408 BLAKE2B
0fd1169e3638e5a220dde27354790b43a16b5b3e8087c6ad1f64dcad04214810464923db0290163b94dfdd4d2afb80df138786d94f06707ec939997774c2528f
SHA512
516f910acee2d6e42399c380cbab3a0b7f7ed30c99704f3f7e5eb8f8a15a8a8eade2c065d165502d93b724ee7d43c6987f08125b4a98b85d5c6b28e939507fb4
+DIST genpatches-5.10-188.extras.tar.xz 3872 BLAKE2B
bfd4b91944fad6cc5781dae0365b019dd1897bb00e255e098cae2f220af481734ea84f225494ec5e34bf601572a2b3d514b4808036e913ea947033457d0b8065
SHA512
a783c59c8f1e9dfe6938478536c9de36bc98440a47d9a85c2360aed9d4f96402e64161c57a3daf8ac53196e91fe47c1358f72af94f67040814067f42a7529601
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.179.ebuild
b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.179.ebuild
new file mode 100644
index 000000000000..5bbe99781a9f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.179.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/~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[@]}"
+}