1 |
commit: 8b20ad5d8c48c71021bfa34c919bef8c6fe57122 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 22 11:52:57 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 22 11:52:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b20ad5d |
7 |
|
8 |
sys-kernel/gentoo-kernel: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-kernel/gentoo-kernel/Manifest | 8 -- |
13 |
.../gentoo-kernel/gentoo-kernel-5.10.84.ebuild | 119 -------------------- |
14 |
.../gentoo-kernel/gentoo-kernel-5.10.86.ebuild | 124 --------------------- |
15 |
.../gentoo-kernel/gentoo-kernel-5.15.9.ebuild | 124 --------------------- |
16 |
.../gentoo-kernel/gentoo-kernel-5.4.164.ebuild | 91 --------------- |
17 |
5 files changed, 466 deletions(-) |
18 |
|
19 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
20 |
index 7d4d3e808d08..ef4f60ae21a1 100644 |
21 |
--- a/sys-kernel/gentoo-kernel/Manifest |
22 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
23 |
@@ -1,19 +1,11 @@ |
24 |
-DIST genpatches-5.10-91.base.tar.xz 2708936 BLAKE2B 65251dd2fe437bf95f82ff3c3b82c58a4138a7b1ec84c232f8f80ee1355e61a7bf793e8a59de80bff8caa3a9a7b8d1b0dce990b536515fb2911cb27df67174b4 SHA512 92550863b8232a91b39445b392c6de7471f1f9c9c5fb541858ecd93d283fca2e500e937208d7a3922e8984ed41ec7396339b563c94d31c49c3aa28e4119da906 |
25 |
-DIST genpatches-5.10-91.extras.tar.xz 3844 BLAKE2B caf397547329c9656aea77d1c68bcf73819b2f5bcd5530f728ad315eac86fceaeda88aa1d3fcfad928e7c97f2a7b148c85500574a0a52130c3289a47de140a0b SHA512 ca5fa3a15abf90931b0c6e7eefb3d1253e934d2d71162e057fa99ddfc19524335e34fdbbc83a261ea97debd5051c823aeefc02d6a308eace1b44e9c0c736447f |
26 |
DIST genpatches-5.10-92.base.tar.xz 2744152 BLAKE2B 17fb94359b2c2c137093fb7d54a6e85b3a986837f6509a40815582e5e1cfae504b3340281199020388eef0be5406b9b7cdadd6395fc418c968dbbc22093965dc SHA512 53fe7c3b446a4fac5d1d10fe17e124414506c1f5fe53d810085c3f754a44cafbb54f3da7f3fd2000470edf4a834b4433d96c6ef63785b8019533624b46a8f351 |
27 |
DIST genpatches-5.10-92.extras.tar.xz 3844 BLAKE2B 0adbc9d201b5ef2f9ccca1e05bd2b4d086ceae9545526bf92a5e9704d63827b3df1f0f784155a517c989cb9fc87fa3203cf45cb5cf8212b8b30dc03a318579fb SHA512 1ac5acb0734ce0ed89c0358ba13f14abc54e63ebb20ad7a32b2ab5e7491f26a0f9efccdb9322ae35c8b4dd29e64b9a27892fe04a92938e9b439ea13028a61f79 |
28 |
-DIST genpatches-5.10-93.base.tar.xz 2744560 BLAKE2B 485d90002a0dbd811eae853d5fd080683a915ee064e539432edf8c763ede0af8aab994381b3d62b13039fb7d5fbbf8840c9d964dab7577066303ac1d5e6ea165 SHA512 2eff7fc0db785913a3c43cb960a136d8209a727608c91157580e3c30a26a85f72f1befa07630ce9e2a8dbb73257e0e685f560f3deb2bfd831555b92ce1e4b910 |
29 |
-DIST genpatches-5.10-93.extras.tar.xz 3844 BLAKE2B 679a8530673988a4c3307aa322164bc2194299e9eeb5823571234d075839ec66ef8592ebdd324c0ef999e9297eafb897b04326ea207db76277837b1a3deb303d SHA512 46a3079a340dae831183878fda86f19fd687c6861a06f1eca900ebddb6efba98d773b6869d2ab0729d449e9506f8636ada5a063aef6267bf0324a7da74eb70b7 |
30 |
DIST genpatches-5.10-94.base.tar.xz 2750672 BLAKE2B a504548a085dc347be062a5ce44c80983a9dea51389002c6a131678111007c41185572486ea3b2c3173114fcb93eed4dc3482442ffabe7a0aedf1f0b658ecdbb SHA512 c8be80f7b275f5ecc5a4efc5c7c031927a96199481078fbf0f38378b492f92d593689de7ee08de5ac1b7a5de1e838fcecaeba092d527aa45e5f73821b0be826b |
31 |
DIST genpatches-5.10-94.extras.tar.xz 3840 BLAKE2B 842c7a0ce6a2663fbe84b9e64ebdcd478b0c7c6f09e6cc445633bc6619f19c4330414f5087c6360f402aea60aea4bc7717b7c336720b858768b876aafcbbc95f SHA512 976232c1cb16c5eac908176645f077e7de3e98f3ad3f089dc8d77480fd88117e251dac3eb36564a4fba715d6dd0efe8c8bfe5bce6d4ce62ba1dfce85b79be9a6 |
32 |
DIST genpatches-5.14-24.base.tar.xz 865892 BLAKE2B 5855b54e7ad2fe9fec353706d026b774c939f82967af5b57c41245762e0ea7fd18731faf1251b1b7aa814c2949d354ff24ce9f078dc68a5c8409490e5517462b SHA512 d83feb3e3c9a32df559fd25b598cb358987f076c107a233a8503390f85132fe6d2a62ee163482439308fa7a62d15aa83ebf9bebaabe0e631eb831fbbbfb700c8 |
33 |
DIST genpatches-5.14-24.extras.tar.xz 3844 BLAKE2B b11a8019a920d12c848fdc34514ed7352217e41f659bb7935c6211132897e8f948a8ebfd281b89e67e3993e3e5a03f2f32b0b4d3b73f5d1228e65812cf6cbeea SHA512 a2b757955740078aa3891a6a696bd50fa35606bfc6dac0e739abe2869d5322554417b4bfd6a989d23a2d31bea14c06294747578025ffac3d77e8a91ea16f4ee6 |
34 |
-DIST genpatches-5.15-11.base.tar.xz 551644 BLAKE2B fc52fcd6b02396c6bb06cb9f5a19bc2e0701ba818cc24447f7d588344726a2152e444ae850936c10879dfb810cb2ee82c006752fb45de47885bb769c5d119a43 SHA512 0df194f7bc113a1e73fa8392285bf06bd42644ab4a3d8b5a5eca1ae88475cad3d931fad58834fef3ee1be76db0c79a29255dcb8afad62792591caaccf3d83d21 |
35 |
-DIST genpatches-5.15-11.extras.tar.xz 3844 BLAKE2B 667bc393b599d2e8d902d70f5494e93c647a99319bf8dae86dcea24f53de96faa29ff8c399e5a7fa610a47f606aef21532454ec08d256554a27055125fe7a033 SHA512 08ded339321593aae6a2b18aee4eeb4d56256f7732b90319060d1a80d7e7392d5fd3fd8b65fd307f40c83096a8ebd53a3a6e4f491a2623c702e9a32a37d1e89b |
36 |
DIST genpatches-5.15-12.base.tar.xz 562448 BLAKE2B f9bb15119aed4b64c5e4ec78cb108baea49615b2114d5d64e86b24c3fb6d1e010ca120a4e527924229fca20559c65d8a58002c80b1bc6a034c1bf557788c7d29 SHA512 1d1053b32fa4176e6b0fa50ebd3ca4b3ae7c5d2d8a9ee89133e6c189a9a9c86ddcc7f14b6948ef8360466f484c745150b93706401839d2b44390bf2dcc0b2ce5 |
37 |
DIST genpatches-5.15-12.extras.tar.xz 3840 BLAKE2B 5253e52cf7ad63a16c6d94196303111cb08cc5132d45b09d560a36e02ede15c025c0c7bedc95d3e3ca1294f280472e19063d6eb789a80646f07fe95b61cd34d0 SHA512 68be9403d9fd50c40b61548d3f8d756472f25bb0818ff757529c45c35c3ec6440a4d123375696f75ba623f3bca8144b13bcb851e027625b219746072f895e08a |
38 |
-DIST genpatches-5.4-168.base.tar.xz 4237544 BLAKE2B 302f72ad789134fbd008effd19494744288855506c9fd29d97b8509b633b00fa67bf8b2d8c839565ea3cc2be9923e561da44d41daeacc97db0abcb4a240f7710 SHA512 8220ef3a384b11b4cf75ee7d6cd678d6f06be97a391f9f427a24b418df0b079f19d31e659b8cb1a596d1b611bfe6fc01c3ae63229004f71ce729ef6c19a4a705 |
39 |
-DIST genpatches-5.4-168.extras.tar.xz 1788 BLAKE2B e99f5ef8b46b5cdf0a47426f70e9811a3172c3ca005e167ae85bf3ec134cc9dfbcd4ca14c24148e0cf9183550a443018ff3c7a34d8a5d1936ea9ed4a82325000 SHA512 f8c8574668dc81f2f1bb225de55dd0e3a37b22becfe46bb9516c67422dcf46a44f70b23c7c4a1549e0caa28f8a69042076a6ffcaee3dd442be63bc343c07e5d9 |
40 |
DIST genpatches-5.4-170.base.tar.xz 4264172 BLAKE2B e0c911b0f78caf914d204f3925ca6168feb11c6f6c89d5eb83398847c050ec4fbd7bc397bd7c921dc25e587e85c7233fa786efbe81344945de0a129385d3e258 SHA512 58d02127525031a8414679e6a499be178138b583dabaa232e24189de8aa69d1eabb772804179c0e8c895f8e90da373f1b22a57a59574cee3387f5e6d34cc9da4 |
41 |
DIST genpatches-5.4-170.extras.tar.xz 1788 BLAKE2B fc12d252ce429b286a59f815c7fe95a3e7910717e8782ba732c387b3916235e79d817c506927965cc9090a948a0206dd627f770750fa688e122eeddcc62d68f2 SHA512 0536a4fa513fe4d4c7f90697cf27e501605087eb6c32eb3ef6d0888d84d227c2fa0345dbec790ec273583abb4cb4d7f878ec569ebc88455fab689aedc4d53b24 |
42 |
DIST genpatches-5.4-171.base.tar.xz 4266980 BLAKE2B fbe50a31c7bdaa077c8f6d63884b2b2f3124d1d14d54d2aa169a48e06a6f9cf03bfbe85ee43708b078ae91190331493433e42a01ff87c5a791bee4afc2c12299 SHA512 e8e2e28f84676e9a1456480e742123e514df5716d29a9ee5d68e7992f860068e9f27367caef7118e013a5fb8b1b30f6db6ad4361397c9c55b20fa23738f77792 |
43 |
|
44 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.84.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.84.ebuild |
45 |
deleted file mode 100644 |
46 |
index 4cef750bb386..000000000000 |
47 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.84.ebuild |
48 |
+++ /dev/null |
49 |
@@ -1,119 +0,0 @@ |
50 |
-# Copyright 2020-2021 Gentoo Authors |
51 |
-# Distributed under the terms of the GNU General Public License v2 |
52 |
- |
53 |
-EAPI=7 |
54 |
- |
55 |
-inherit kernel-build toolchain-funcs |
56 |
- |
57 |
-MY_P=linux-${PV%.*} |
58 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 )) |
59 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
60 |
-CONFIG_VER=5.10.12 |
61 |
-CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 |
62 |
-GENTOO_CONFIG_VER=5.15.5 |
63 |
- |
64 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
65 |
-HOMEPAGE="https://www.kernel.org/" |
66 |
-SRC_URI+=" |
67 |
- https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
68 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
69 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
70 |
- https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz |
71 |
- -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
72 |
- amd64? ( |
73 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
74 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
75 |
- ) |
76 |
- arm64? ( |
77 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
78 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
79 |
- ) |
80 |
- ppc64? ( |
81 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
82 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
83 |
- ) |
84 |
- x86? ( |
85 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
86 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
87 |
- )" |
88 |
-S=${WORKDIR}/${MY_P} |
89 |
- |
90 |
-LICENSE="GPL-2" |
91 |
-KEYWORDS="amd64 ~arm arm64 ppc64 x86" |
92 |
-IUSE="debug hardened" |
93 |
-REQUIRED_USE="arm? ( savedconfig )" |
94 |
- |
95 |
-RDEPEND=" |
96 |
- !sys-kernel/gentoo-kernel-bin:${SLOT}" |
97 |
-BDEPEND=" |
98 |
- debug? ( dev-util/pahole )" |
99 |
-PDEPEND=" |
100 |
- >=virtual/dist-kernel-${PV}" |
101 |
- |
102 |
-QA_FLAGS_IGNORED=" |
103 |
- usr/src/linux-.*/scripts/gcc-plugins/.*.so |
104 |
- usr/src/linux-.*/vmlinux |
105 |
-" |
106 |
- |
107 |
-src_prepare() { |
108 |
- local PATCHES=( |
109 |
- # meh, genpatches have no directory |
110 |
- "${WORKDIR}"/*.patch |
111 |
- ) |
112 |
- default |
113 |
- |
114 |
- local biendian=false |
115 |
- |
116 |
- # prepare the default config |
117 |
- case ${ARCH} in |
118 |
- amd64) |
119 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
120 |
- ;; |
121 |
- arm) |
122 |
- return |
123 |
- ;; |
124 |
- arm64) |
125 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
126 |
- biendian=true |
127 |
- ;; |
128 |
- ppc64) |
129 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
130 |
- biendian=true |
131 |
- ;; |
132 |
- x86) |
133 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
134 |
- ;; |
135 |
- *) |
136 |
- die "Unsupported arch ${ARCH}" |
137 |
- ;; |
138 |
- esac |
139 |
- |
140 |
- local myversion="-gentoo-dist" |
141 |
- use hardened && myversion+="-hardened" |
142 |
- echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
143 |
- local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
144 |
- |
145 |
- local merge_configs=( |
146 |
- "${T}"/version.config |
147 |
- "${dist_conf_path}"/base.config |
148 |
- ) |
149 |
- use debug || merge_configs+=( |
150 |
- "${dist_conf_path}"/no-debug.config |
151 |
- ) |
152 |
- if use hardened; then |
153 |
- merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
154 |
- |
155 |
- tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
156 |
- |
157 |
- if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
158 |
- merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
159 |
- fi |
160 |
- fi |
161 |
- |
162 |
- # this covers ppc64 and aarch64_be only for now |
163 |
- if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
164 |
- merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
165 |
- fi |
166 |
- |
167 |
- kernel-build_merge_configs "${merge_configs[@]}" |
168 |
-} |
169 |
|
170 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.86.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.86.ebuild |
171 |
deleted file mode 100644 |
172 |
index 6eb4ef17fc17..000000000000 |
173 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.86.ebuild |
174 |
+++ /dev/null |
175 |
@@ -1,124 +0,0 @@ |
176 |
-# Copyright 2020-2021 Gentoo Authors |
177 |
-# Distributed under the terms of the GNU General Public License v2 |
178 |
- |
179 |
-EAPI=7 |
180 |
- |
181 |
-inherit kernel-build toolchain-funcs |
182 |
- |
183 |
-MY_P=linux-${PV%.*} |
184 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 7 )) |
185 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
186 |
-CONFIG_VER=5.10.12 |
187 |
-CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 |
188 |
-GENTOO_CONFIG_VER=5.15.5 |
189 |
- |
190 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
191 |
-HOMEPAGE="https://www.kernel.org/" |
192 |
-SRC_URI+=" |
193 |
- https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
194 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
195 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
196 |
- https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz |
197 |
- -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
198 |
- amd64? ( |
199 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
200 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
201 |
- ) |
202 |
- arm64? ( |
203 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
204 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
205 |
- ) |
206 |
- ppc64? ( |
207 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
208 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
209 |
- ) |
210 |
- x86? ( |
211 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
212 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
213 |
- )" |
214 |
-S=${WORKDIR}/${MY_P} |
215 |
- |
216 |
-LICENSE="GPL-2" |
217 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
218 |
-IUSE="debug hardened" |
219 |
-REQUIRED_USE="arm? ( savedconfig )" |
220 |
- |
221 |
-RDEPEND=" |
222 |
- !sys-kernel/gentoo-kernel-bin:${SLOT}" |
223 |
-BDEPEND=" |
224 |
- debug? ( dev-util/pahole )" |
225 |
-PDEPEND=" |
226 |
- >=virtual/dist-kernel-${PV}" |
227 |
- |
228 |
-QA_FLAGS_IGNORED=" |
229 |
- usr/src/linux-.*/scripts/gcc-plugins/.*.so |
230 |
- usr/src/linux-.*/vmlinux |
231 |
-" |
232 |
- |
233 |
-src_prepare() { |
234 |
- local PATCHES=( |
235 |
- # meh, genpatches have no directory |
236 |
- "${WORKDIR}"/*.patch |
237 |
- ) |
238 |
- default |
239 |
- |
240 |
- local biendian=false |
241 |
- |
242 |
- # prepare the default config |
243 |
- case ${ARCH} in |
244 |
- amd64) |
245 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
246 |
- ;; |
247 |
- arm) |
248 |
- return |
249 |
- ;; |
250 |
- arm64) |
251 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
252 |
- biendian=true |
253 |
- ;; |
254 |
- ppc) |
255 |
- # assume powermac/powerbook defconfig |
256 |
- # we still package.use.force savedconfig |
257 |
- cp "${WORKDIR}"/linux-*/arch/powerpc/configs/pmac32_defconfig .config || die |
258 |
- ;; |
259 |
- ppc64) |
260 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
261 |
- biendian=true |
262 |
- ;; |
263 |
- x86) |
264 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
265 |
- ;; |
266 |
- *) |
267 |
- die "Unsupported arch ${ARCH}" |
268 |
- ;; |
269 |
- esac |
270 |
- |
271 |
- local myversion="-gentoo-dist" |
272 |
- use hardened && myversion+="-hardened" |
273 |
- echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
274 |
- local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
275 |
- |
276 |
- local merge_configs=( |
277 |
- "${T}"/version.config |
278 |
- "${dist_conf_path}"/base.config |
279 |
- ) |
280 |
- use debug || merge_configs+=( |
281 |
- "${dist_conf_path}"/no-debug.config |
282 |
- ) |
283 |
- if use hardened; then |
284 |
- merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
285 |
- |
286 |
- tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
287 |
- |
288 |
- if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
289 |
- merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
290 |
- fi |
291 |
- fi |
292 |
- |
293 |
- # this covers ppc64 and aarch64_be only for now |
294 |
- if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
295 |
- merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
296 |
- fi |
297 |
- |
298 |
- kernel-build_merge_configs "${merge_configs[@]}" |
299 |
-} |
300 |
|
301 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.9.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.9.ebuild |
302 |
deleted file mode 100644 |
303 |
index 0e8ec8a7ecb3..000000000000 |
304 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.9.ebuild |
305 |
+++ /dev/null |
306 |
@@ -1,124 +0,0 @@ |
307 |
-# Copyright 2020-2021 Gentoo Authors |
308 |
-# Distributed under the terms of the GNU General Public License v2 |
309 |
- |
310 |
-EAPI=7 |
311 |
- |
312 |
-inherit kernel-build toolchain-funcs |
313 |
- |
314 |
-MY_P=linux-${PV%.*} |
315 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) |
316 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
317 |
-CONFIG_VER=5.15.7 |
318 |
-CONFIG_HASH=75f4ca5dedd2fedad91907906fec606a61c4046b |
319 |
-GENTOO_CONFIG_VER=5.15.5 |
320 |
- |
321 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
322 |
-HOMEPAGE="https://www.kernel.org/" |
323 |
-SRC_URI+=" https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
324 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
325 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
326 |
- https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz |
327 |
- -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
328 |
- amd64? ( |
329 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
330 |
- -> kernel-x86_64-fedora.config.${CONFIG_VER} |
331 |
- ) |
332 |
- arm64? ( |
333 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
334 |
- -> kernel-aarch64-fedora.config.${CONFIG_VER} |
335 |
- ) |
336 |
- ppc64? ( |
337 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
338 |
- -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
339 |
- ) |
340 |
- x86? ( |
341 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
342 |
- -> kernel-i686-fedora.config.${CONFIG_VER} |
343 |
- )" |
344 |
-S=${WORKDIR}/${MY_P} |
345 |
- |
346 |
-LICENSE="GPL-2" |
347 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
348 |
-IUSE="debug hardened" |
349 |
-REQUIRED_USE="arm? ( savedconfig )" |
350 |
- |
351 |
-RDEPEND=" |
352 |
- !sys-kernel/gentoo-kernel-bin:${SLOT}" |
353 |
-BDEPEND=" |
354 |
- debug? ( dev-util/pahole )" |
355 |
-PDEPEND=" |
356 |
- >=virtual/dist-kernel-${PV}" |
357 |
- |
358 |
-QA_FLAGS_IGNORED=" |
359 |
- usr/src/linux-.*/scripts/gcc-plugins/.*.so |
360 |
- usr/src/linux-.*/vmlinux |
361 |
- usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg |
362 |
-" |
363 |
- |
364 |
-src_prepare() { |
365 |
- local PATCHES=( |
366 |
- # meh, genpatches have no directory |
367 |
- "${WORKDIR}"/*.patch |
368 |
- ) |
369 |
- default |
370 |
- |
371 |
- local biendian=false |
372 |
- |
373 |
- # prepare the default config |
374 |
- case ${ARCH} in |
375 |
- amd64) |
376 |
- cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
377 |
- ;; |
378 |
- arm) |
379 |
- return |
380 |
- ;; |
381 |
- arm64) |
382 |
- cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
383 |
- biendian=true |
384 |
- ;; |
385 |
- ppc) |
386 |
- # assume powermac/powerbook defconfig |
387 |
- # we still package.use.force savedconfig |
388 |
- cp "${WORKDIR}"/linux-*/arch/powerpc/configs/pmac32_defconfig .config || die |
389 |
- ;; |
390 |
- ppc64) |
391 |
- cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
392 |
- biendian=true |
393 |
- ;; |
394 |
- x86) |
395 |
- cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
396 |
- ;; |
397 |
- *) |
398 |
- die "Unsupported arch ${ARCH}" |
399 |
- ;; |
400 |
- esac |
401 |
- |
402 |
- local myversion="-gentoo-dist" |
403 |
- use hardened && myversion+="-hardened" |
404 |
- echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
405 |
- local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
406 |
- |
407 |
- local merge_configs=( |
408 |
- "${T}"/version.config |
409 |
- "${dist_conf_path}"/base.config |
410 |
- ) |
411 |
- use debug || merge_configs+=( |
412 |
- "${dist_conf_path}"/no-debug.config |
413 |
- ) |
414 |
- if use hardened; then |
415 |
- merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
416 |
- |
417 |
- tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
418 |
- |
419 |
- if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
420 |
- merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
421 |
- fi |
422 |
- fi |
423 |
- |
424 |
- # this covers ppc64 and aarch64_be only for now |
425 |
- if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
426 |
- merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
427 |
- fi |
428 |
- |
429 |
- kernel-build_merge_configs "${merge_configs[@]}" |
430 |
-} |
431 |
|
432 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.164.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.164.ebuild |
433 |
deleted file mode 100644 |
434 |
index 91427de34e4f..000000000000 |
435 |
--- a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.164.ebuild |
436 |
+++ /dev/null |
437 |
@@ -1,91 +0,0 @@ |
438 |
-# Copyright 2020-2021 Gentoo Authors |
439 |
-# Distributed under the terms of the GNU General Public License v2 |
440 |
- |
441 |
-EAPI=7 |
442 |
- |
443 |
-inherit kernel-build |
444 |
- |
445 |
-MY_P=linux-${PV%.*} |
446 |
-GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 )) |
447 |
-# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
448 |
-CONFIG_VER=5.4.21 |
449 |
-CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea |
450 |
-GENTOO_CONFIG_VER=5.4.114 |
451 |
- |
452 |
-DESCRIPTION="Linux kernel built with Gentoo patches" |
453 |
-HOMEPAGE="https://www.kernel.org/" |
454 |
-SRC_URI+=" |
455 |
- https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
456 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
457 |
- https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
458 |
- https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz |
459 |
- -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
460 |
- amd64? ( |
461 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64.config |
462 |
- -> kernel-x86_64.config.${CONFIG_VER} |
463 |
- ) |
464 |
- arm64? ( |
465 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config |
466 |
- -> kernel-aarch64.config.${CONFIG_VER} |
467 |
- ) |
468 |
- ppc64? ( |
469 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config |
470 |
- -> kernel-ppc64le.config.${CONFIG_VER} |
471 |
- ) |
472 |
- x86? ( |
473 |
- https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config |
474 |
- -> kernel-i686.config.${CONFIG_VER} |
475 |
- )" |
476 |
-S=${WORKDIR}/${MY_P} |
477 |
- |
478 |
-LICENSE="GPL-2" |
479 |
-KEYWORDS="amd64 arm64 ppc64 x86" |
480 |
-IUSE="debug" |
481 |
- |
482 |
-RDEPEND=" |
483 |
- !sys-kernel/gentoo-kernel-bin:${SLOT}" |
484 |
-BDEPEND=" |
485 |
- debug? ( dev-util/pahole )" |
486 |
-PDEPEND=" |
487 |
- >=virtual/dist-kernel-${PV}" |
488 |
- |
489 |
-src_prepare() { |
490 |
- local PATCHES=( |
491 |
- # meh, genpatches have no directory |
492 |
- "${WORKDIR}"/*.patch |
493 |
- ) |
494 |
- default |
495 |
- |
496 |
- # prepare the default config |
497 |
- case ${ARCH} in |
498 |
- amd64) |
499 |
- cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die |
500 |
- ;; |
501 |
- arm64) |
502 |
- cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die |
503 |
- ;; |
504 |
- ppc64) |
505 |
- cp "${DISTDIR}/kernel-ppc64le.config.${CONFIG_VER}" .config || die |
506 |
- ;; |
507 |
- x86) |
508 |
- cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die |
509 |
- ;; |
510 |
- *) |
511 |
- die "Unsupported arch ${ARCH}" |
512 |
- ;; |
513 |
- esac |
514 |
- |
515 |
- echo 'CONFIG_LOCALVERSION="-gentoo-dist"' > "${T}"/version.config || die |
516 |
- local merge_configs=( |
517 |
- "${T}"/version.config |
518 |
- "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config |
519 |
- ) |
520 |
- use debug || merge_configs+=( |
521 |
- "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config |
522 |
- ) |
523 |
- [[ ${ARCH} == x86 ]] && merge_configs+=( |
524 |
- "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config |
525 |
- ) |
526 |
- |
527 |
- kernel-build_merge_configs "${merge_configs[@]}" |
528 |
-} |