Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel/
Date: Sat, 05 Feb 2022 22:17:55
Message-Id: 1644099460.c53aa2d1ce53507ba4b064884070700006b5305a.mgorny@gentoo
1 commit: c53aa2d1ce53507ba4b064884070700006b5305a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 5 19:41:18 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 5 22:17:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c53aa2d1
7
8 sys-kernel/gentoo-kernel: Bump to 5.10.98
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-kernel/gentoo-kernel/Manifest | 2 +
13 .../gentoo-kernel/gentoo-kernel-5.10.98.ebuild | 127 +++++++++++++++++++++
14 2 files changed, 129 insertions(+)
15
16 diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
17 index 783868898bb7..0e6377b75092 100644
18 --- a/sys-kernel/gentoo-kernel/Manifest
19 +++ b/sys-kernel/gentoo-kernel/Manifest
20 @@ -2,6 +2,8 @@ DIST genpatches-5.10-103.base.tar.xz 2987764 BLAKE2B fab174b3219d24b39f22dc92943
21 DIST genpatches-5.10-103.extras.tar.xz 3876 BLAKE2B 8f8a1ec8ccb9874660ab1a357a28bd48f622affd173c459e7014a737435c8ddaed5ea086adef4306298f3ff1779b497832804fc914c895d74b750e147d99969b SHA512 656cd727882aa8eb4b86690fbcb6c56a20de2aabd2d7de0e29ce2807b12e738a085537cd94cd37020b1d7c95469ac1566c4e2b7a3ec67ab7b88f8cf98de66a9f
22 DIST genpatches-5.10-104.base.tar.xz 2993596 BLAKE2B 76aa47af46b4ab39bb19e89151c85064f5f530365196a1cf068cb055ecc26178974eaea4ca35328d1818f90c4e6d4d2b3bc2549f98b6c3f0a47071419e0d2d84 SHA512 b3fa1e616d2beccf73b1adea6f86203d1f19f4cf0492d529bf683e126d90dc74dd33abbb67bf3d86f855148aceced7d1e565475f05b19d520f45193c77dd6850
23 DIST genpatches-5.10-104.extras.tar.xz 3876 BLAKE2B 6e245a2360aa73d3cf99d4439556a5057a3705e6d04d541888fdb07b648a8f0ec5d87c86cb08d85e1e7945ec086ad1ee373470271985cd4b5e85612895d1928b SHA512 643fe234bd05fa86b4161d78a6ea901623c459ae0205972fc0fa11db4c07ecc3691552c77e14cf6f02eac9c6fba16656ff40f4027411a54a6cbe205a7c0a5cc3
24 +DIST genpatches-5.10-105.base.tar.xz 2993776 BLAKE2B 6087b0ca5ea7150567bb23d43f83a02e653e1e1ca068e55951db43b3fbb3cb18b84fdad9c9b5ecfe77938b1192fd3260a6d241e3f840a7b09dd83449a2389ff0 SHA512 c74695b8d4b4c0205c0287840abcfa5a6e06d88cda53898e1f1a4bc67f4c264d5ca6c0c197ef5ae6d6e3627227e276865566d5dbb6a096c4bf21f569fde178a4
25 +DIST genpatches-5.10-105.extras.tar.xz 3872 BLAKE2B ff451545dc2cadfa871ffa39b689dc2effdecbe09a84338b82231fbc5886ac546c60cb71deeac0391d6e4a783ced9b17d56f79fb72a480e815e1ed1d6e463cc1 SHA512 b041afab67f32b35a68621f8bf34a5656f61aa3143bc75cbb4ea5df3775513afbd3adf312858b7468aee3bdb0587cbdb7eb7a9958cb590864b13ac969ecd6a2b
26 DIST genpatches-5.15-21.base.tar.xz 979868 BLAKE2B 217af3325d15020a43cc661746272b7756aa030d7e4e66d014f68e421b83f20fd6ad16cc036cf676b3719c118d4532b174a9f7b05aad730f22a13803fd621702 SHA512 5946fa7783d48d25b4f350815e645078e1629d3678aab048de1ec5c62066180de8db940b1b0e8db2062838fc2e06820a354278c20f60ec8da71f2ea686255c58
27 DIST genpatches-5.15-21.extras.tar.xz 3876 BLAKE2B 4c07b166a474bc11502de000f1bb00d8f0c25914a7877b2a94db844c694e0e7a4c757e8a10880eff40438b97214326ba50e716070d79ce1ef7f68c65d876da39 SHA512 384a2111655d8fd78a2f6165e99be0c74b36cf90333a465a4bb4cb6cda5ba32e1d435958987094a2d1407f02df7331ff2bd4fccace4f0a6ebe0c300692598f41
28 DIST genpatches-5.15-22.base.tar.xz 986832 BLAKE2B 48fcd267e6e28850d226693b902fd66696024e75db6a75bb78ec79c7ac8afdac62643c4113ff205c301024d245f075716e0bf8083f97917dcfc8b1fcd71b674e SHA512 e8c64bd91caedc3dcd98301dbcbd2003b4aceb5a9713bd908a69448eaa2aea945fa8162e57442862b03daa0e1a4e7642e4504701b1f34a6edb127692e582e0e0
29
30 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.98.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.98.ebuild
31 new file mode 100644
32 index 000000000000..2bba5adce42e
33 --- /dev/null
34 +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.98.ebuild
35 @@ -0,0 +1,127 @@
36 +# Copyright 2020-2022 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit kernel-build toolchain-funcs
42 +
43 +MY_P=linux-${PV%.*}
44 +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 ))
45 +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
46 +CONFIG_VER=5.10.12
47 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
48 +GENTOO_CONFIG_VER=5.15.5
49 +
50 +DESCRIPTION="Linux kernel built with Gentoo patches"
51 +HOMEPAGE="https://www.kernel.org/"
52 +SRC_URI+="
53 + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
54 + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
55 + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
56 + https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz
57 + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
58 + amd64? (
59 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
60 + -> kernel-x86_64-fedora.config.${CONFIG_VER}
61 + )
62 + arm64? (
63 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
64 + -> kernel-aarch64-fedora.config.${CONFIG_VER}
65 + )
66 + ppc64? (
67 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
68 + -> kernel-ppc64le-fedora.config.${CONFIG_VER}
69 + )
70 + x86? (
71 + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
72 + -> kernel-i686-fedora.config.${CONFIG_VER}
73 + )"
74 +S=${WORKDIR}/${MY_P}
75 +
76 +LICENSE="GPL-2"
77 +KEYWORDS="~arm64"
78 +IUSE="debug hardened"
79 +REQUIRED_USE="arm? ( savedconfig )"
80 +
81 +RDEPEND="
82 + !sys-kernel/gentoo-kernel-bin:${SLOT}"
83 +BDEPEND="
84 + debug? ( dev-util/pahole )"
85 +PDEPEND="
86 + >=virtual/dist-kernel-${PV}"
87 +
88 +QA_FLAGS_IGNORED="
89 + usr/src/linux-.*/scripts/gcc-plugins/.*.so
90 + usr/src/linux-.*/vmlinux
91 +"
92 +
93 +src_prepare() {
94 + local PATCHES=(
95 + # meh, genpatches have no directory
96 + "${WORKDIR}"/*.patch
97 + )
98 + default
99 +
100 + local biendian=false
101 +
102 + # prepare the default config
103 + case ${ARCH} in
104 + amd64)
105 + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
106 + ;;
107 + arm)
108 + return
109 + ;;
110 + arm64)
111 + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
112 + biendian=true
113 + ;;
114 + hppa)
115 + return
116 + ;;
117 + ppc)
118 + # assume powermac/powerbook defconfig
119 + # we still package.use.force savedconfig
120 + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
121 + ;;
122 + ppc64)
123 + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
124 + biendian=true
125 + ;;
126 + x86)
127 + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
128 + ;;
129 + *)
130 + die "Unsupported arch ${ARCH}"
131 + ;;
132 + esac
133 +
134 + local myversion="-gentoo-dist"
135 + use hardened && myversion+="-hardened"
136 + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
137 + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
138 +
139 + local merge_configs=(
140 + "${T}"/version.config
141 + "${dist_conf_path}"/base.config
142 + )
143 + use debug || merge_configs+=(
144 + "${dist_conf_path}"/no-debug.config
145 + )
146 + if use hardened; then
147 + merge_configs+=( "${dist_conf_path}"/hardened-base.config )
148 +
149 + tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
150 +
151 + if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
152 + merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
153 + fi
154 + fi
155 +
156 + # this covers ppc64 and aarch64_be only for now
157 + if [[ ${biendian} == true && $(tc-endian) == big ]]; then
158 + merge_configs+=( "${dist_conf_path}/big-endian.config" )
159 + fi
160 +
161 + kernel-build_merge_configs "${merge_configs[@]}"
162 +}