1 |
commit: aa0300597aeac63e8c25a034644cea50f7650d5d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 31 17:40:03 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 20:47:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa030059 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.10.140 |
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.140.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 23b123fcc6b6..0ce8caabae33 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-147.base.tar.xz 4073808 BLAKE2B 0e1214facddef3b26bab742ca4164773162e6954996bb8e5137707c6728e0deacd4bd2679f276edc0cd03669a0d03a5c7744918efa1189877e38608dc393d065 SHA512 84f5bc607c10a08a03c8afe8617719827588b49ff9ca6401fd128806ec91fd6d07cfff6ca313f5a49e9a1b37b9aba2aff9bd0f597d65bb7c36236e148a04b397 |
22 |
DIST genpatches-5.10-147.extras.tar.xz 3868 BLAKE2B 1f12eea29cda808c434364d0f60ae931819a53d20bf632a12f140c47a001387987688eef1a90a31227a6ccfc217c5db3839d06527a7bcc1877d30c98dc47e21d SHA512 492274da82c010f4d7f33dcf623789a9be51ee711d19076657b091b1e91ed70ff6010aba5e7778c9769eaef28216baa01d3f373fb76c595db38b4763ff182740 |
23 |
+DIST genpatches-5.10-149.base.tar.xz 4094572 BLAKE2B 45a25b910fc88f030d97ef5870925df3bfb05d50bf95cb3cfdc4d98ed24c006ae026b88b29ec5db4087671c0a440a4c47132272e6ae965b1c336fa1c567dddbd SHA512 4898ea729def7fbbb14f04a578405a4e96e03e425de696db4d2bc86cfa6942c063f8c8cc79801f85ac38edbb5f0f5851073418bf5df32784ec7efd242318dd97 |
24 |
+DIST genpatches-5.10-149.extras.tar.xz 3868 BLAKE2B 2667cf3c9d447c855b6b6cea4b9100a300077fe74eae84b69fa0a6ee861c787e44e96518bceb93f1c2be83fd8f04251ebfca673dcd9da4ebf2ab98041a3dee4f SHA512 73bda9933661f78482eaa048c1467d1f3acbef606676547d1ef3c64c5ff95475d6d40153a47f247868a2cbf697e5a4d21d58b57b3be6763ef3de869c31b5ede6 |
25 |
DIST genpatches-5.15-67.base.tar.xz 2856328 BLAKE2B a92c3afb5e0a6605587744c68b3bec4c63848e0c09469d99080258d97d3e96a0adae175600d7dbb00e566f4383ab00c6981585acf343111218aa21e503901f7d SHA512 3d100c04ce9e440177ff2156b8ce0c0443414963a47fc1c51a86a08cce998ad0b6289e70455ecd2965009226036486c1b6ee3768b1782aaad976cd144f9b48cb |
26 |
DIST genpatches-5.15-67.extras.tar.xz 3936 BLAKE2B 168a92a9db40e6014864a96aff71fb87b351d7127c5eedc8e062e753ae65d7ebc628e9b0eded328f17e88562592d80522ccdd31a549c8104aee51e2833f81134 SHA512 0f2bdfa87ec2a610870089c903b301dc86dac52f4969386074a439be90674c4835800cf9250d8844b1ec3df88cc8dc0b31e4582ea309b7c817066a1341c692b2 |
27 |
DIST genpatches-5.18-23.base.tar.xz 1206204 BLAKE2B 12a7b9aa7d72f27e64c4cb8f5607529dcc7d535a9375768e065d97d0b70b0726271b70dfa4ea019bb42606ddfd513b70357b2bd5ad95548c9eba9f91041f27b0 SHA512 9a459e3e8cb4a3285f782516fbc176a4a73c151281bea2258f049ec0662b806eefc54cb6e9151cc968e3a9c39789062c207d514920559954db9a10b53a1c2f0e |
28 |
|
29 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.140.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.140.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..8cc3f5803876 |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.140.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##*.} + 9 )) |
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/projg2/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 ~hppa ~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 |
+} |