1 |
commit: 39dfe45898f00cc6c9f97009de1f53f9241dcd38 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 3 13:32:00 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 16:46:36 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39dfe458 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 6.2.2 |
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-6.2.2.ebuild | 140 +++++++++++++++++++++ |
14 |
2 files changed, 142 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
17 |
index 614d4e944c4c..3b1cea7a2a9e 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -26,6 +26,8 @@ DIST genpatches-6.1-16.base.tar.xz 820936 BLAKE2B 91554b3c532c7ba9549291a2a6c3ae |
21 |
DIST genpatches-6.1-16.extras.tar.xz 3804 BLAKE2B 72e1824ad6d561359eb287c8f67d94b961c6054a4bbc66af9571caced021d6d3cf64d5d06be4977c22b4c1061b37b5f174db4713040faac069dd9e7b29fa2a6f SHA512 ac2c48ed858be0a2c844646d343de6994f1f8179b0369a6be554f1587369679b651304f967346aa1bf2f462ae62b1c8c0fcb5bca32ec12e2f6100a694aafc6b2 |
22 |
DIST genpatches-6.2-2.base.tar.xz 9540 BLAKE2B dce2bb1156f0e9a7ca19b618d13729908001939d6ec6361ca6619808a120e61900b5f4de97b2bef0e63aef81a83c7e2a0d736f3c344d9a610eb5c6a21baeb111 SHA512 50aabf4c24dbf13595556314b2ba8f1d0219355bc79c0fddf05ef7a6d244fe3c54f95c733e02fbc032a582495c59688f415af5b62b3401b436cbb5f0ef3aa9ac |
23 |
DIST genpatches-6.2-2.extras.tar.xz 3804 BLAKE2B cdbf51c28ff1c3b974665f558ec774eb70874a3941b97f966ee90642f3a1c8732333348e891156a40455c8b80c2a2002fdf1515403eca7b8d075c28b09a2ed78 SHA512 cba0fe9b3d13f3b1f6ee413a44698694ef6b009918dfda76e4d8402e66f1e857bf889fd4eb7ae093e864f7015eb3fe14aa704a5a3b68b0b92ca494bfc4b43a71 |
24 |
+DIST genpatches-6.2-4.base.tar.xz 15256 BLAKE2B 4a6bc8f4b75be2afe87d3d29ebdd45cc6a6266717b793a611edcefad3b39c3f70f14533b538eb175f0c16e901006d52e09994072cf9375dc0606db0478472d18 SHA512 0351b19b50bff5922d916b215c8b5b04a31994973dbde9553b2f197009447c9d5dc992f0b9ee25bacdd1569477a0beed4e0359dec390ca4914ceeed3e73592f5 |
25 |
+DIST genpatches-6.2-4.extras.tar.xz 3804 BLAKE2B 909c69169a518c690e62cb3417a35fdcbc1f3102d388ea0f6eb5329753f50596bae769ef033d43bc9d9fc5cbddecc3ca8541f771c4e02c76fad6253594cf5e5b SHA512 c22a12ea1d3467891286d9898582d038026230181537ae40927182b9549e7a768e4ae62ddf9b402e67cd31e18cb64e9f9567c5037eebc98500d4aa21ea62b44d |
26 |
DIST gentoo-kernel-config-g6.tar.gz 4562 BLAKE2B ad9e1b28f84916f12cd8b21feb2f4396d3d63f4cfae3e6b6fe93f919c98b0b4523b205711ab7acafa7121360f696eecb63b9f162dd12950e56dab1429cc13633 SHA512 d180122eb00d40126ea7d79224559904eb0ea574314f9a8d6be6b10f0f6a49f526eba1366ae8cd0a4fe23cd8ff5e292c8cab7e856a2c915d4162b75a03f8076b |
27 |
DIST gentoo-kernel-config-g7.tar.gz 4625 BLAKE2B 72ba0d038ee34ca5eb26d43bd373735aef3a50d02b414993ea05485e49d83d46df98a6cb0f6f3170a8ec0c99b557432fd9a11cbb92ff7c2837625a7f4469831e SHA512 2d74a8ca9f5402b4290ed93cd3ddba04a7f2ff42c8d8d3f2cbbe22fc20daa0fca119368daa8af39b7a26b1b99e4e3187c3c5d95886a651675ad94ff98d686628 |
28 |
DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.2.2.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.2.2.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..6406ff1f6bc8 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.2.2.ebuild |
35 |
@@ -0,0 +1,140 @@ |
36 |
+# Copyright 2020-2023 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+inherit kernel-build toolchain-funcs |
42 |
+ |
43 |
+MY_P=linux-${PV%.*} |
44 |
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) |
45 |
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
46 |
+# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo |
47 |
+CONFIG_VER=6.2.0-gentoo |
48 |
+GENTOO_CONFIG_VER=g7 |
49 |
+ |
50 |
+DESCRIPTION="Linux kernel built with Gentoo patches" |
51 |
+HOMEPAGE=" |
52 |
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel |
53 |
+ https://www.kernel.org/ |
54 |
+" |
55 |
+SRC_URI+=" |
56 |
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
57 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
58 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
59 |
+ https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz |
60 |
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
61 |
+ amd64? ( |
62 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config |
63 |
+ -> kernel-x86_64-fedora.config.${CONFIG_VER} |
64 |
+ ) |
65 |
+ arm64? ( |
66 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config |
67 |
+ -> kernel-aarch64-fedora.config.${CONFIG_VER} |
68 |
+ ) |
69 |
+ ppc64? ( |
70 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config |
71 |
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
72 |
+ ) |
73 |
+ x86? ( |
74 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config |
75 |
+ -> kernel-i686-fedora.config.${CONFIG_VER} |
76 |
+ ) |
77 |
+" |
78 |
+S=${WORKDIR}/${MY_P} |
79 |
+ |
80 |
+LICENSE="GPL-2" |
81 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" |
82 |
+IUSE="debug hardened" |
83 |
+REQUIRED_USE="arm? ( savedconfig ) |
84 |
+ hppa? ( savedconfig ) |
85 |
+ riscv? ( savedconfig )" |
86 |
+ |
87 |
+RDEPEND=" |
88 |
+ !sys-kernel/gentoo-kernel-bin:${SLOT} |
89 |
+" |
90 |
+BDEPEND=" |
91 |
+ debug? ( dev-util/pahole ) |
92 |
+" |
93 |
+PDEPEND=" |
94 |
+ >=virtual/dist-kernel-${PV} |
95 |
+" |
96 |
+ |
97 |
+QA_FLAGS_IGNORED=" |
98 |
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so |
99 |
+ usr/src/linux-.*/vmlinux |
100 |
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg |
101 |
+" |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ local PATCHES=( |
105 |
+ # meh, genpatches have no directory |
106 |
+ "${WORKDIR}"/*.patch |
107 |
+ ) |
108 |
+ default |
109 |
+ |
110 |
+ local biendian=false |
111 |
+ |
112 |
+ # prepare the default config |
113 |
+ case ${ARCH} in |
114 |
+ amd64) |
115 |
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
116 |
+ ;; |
117 |
+ arm) |
118 |
+ return |
119 |
+ ;; |
120 |
+ arm64) |
121 |
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
122 |
+ biendian=true |
123 |
+ ;; |
124 |
+ hppa) |
125 |
+ return |
126 |
+ ;; |
127 |
+ ppc) |
128 |
+ # assume powermac/powerbook defconfig |
129 |
+ # we still package.use.force savedconfig |
130 |
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die |
131 |
+ ;; |
132 |
+ ppc64) |
133 |
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
134 |
+ biendian=true |
135 |
+ ;; |
136 |
+ riscv) |
137 |
+ return |
138 |
+ ;; |
139 |
+ x86) |
140 |
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
141 |
+ ;; |
142 |
+ *) |
143 |
+ die "Unsupported arch ${ARCH}" |
144 |
+ ;; |
145 |
+ esac |
146 |
+ |
147 |
+ local myversion="-gentoo-dist" |
148 |
+ use hardened && myversion+="-hardened" |
149 |
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
150 |
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
151 |
+ |
152 |
+ local merge_configs=( |
153 |
+ "${T}"/version.config |
154 |
+ "${dist_conf_path}"/base.config |
155 |
+ ) |
156 |
+ use debug || merge_configs+=( |
157 |
+ "${dist_conf_path}"/no-debug.config |
158 |
+ ) |
159 |
+ if use hardened; then |
160 |
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
161 |
+ |
162 |
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
163 |
+ |
164 |
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
165 |
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
166 |
+ fi |
167 |
+ fi |
168 |
+ |
169 |
+ # this covers ppc64 and aarch64_be only for now |
170 |
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
171 |
+ merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
172 |
+ fi |
173 |
+ |
174 |
+ kernel-build_merge_configs "${merge_configs[@]}" |
175 |
+} |