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