1 |
commit: 7a65b67296f8c80ae22cd0ffa584455d4406abad |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 17 16:20:52 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 06:18:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a65b672 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.15.61 |
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.15.61.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 4f51e07af9e8..1f879c647fef 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -6,6 +6,8 @@ DIST genpatches-5.15-63.base.tar.xz 2523256 BLAKE2B 99979433623fad89d9a237f80f12 |
21 |
DIST genpatches-5.15-63.extras.tar.xz 3932 BLAKE2B 372a8997239e0c1cb97db2fe02e5c3e2f8f26c29705f8210d1eb30168fa0a77209491111b64e399d4846b185ddd2141171cb13e5da5ae85e620e382262256a6c SHA512 461eb99b6e124a648bdaacb015c7b413e102cb28768bb149a154d1c4fc570ae241a73c5bc64024b385ac8eac831a6bf65e79bd93f168fb93f94b0fae133080f7 |
22 |
DIST genpatches-5.15-64.base.tar.xz 2531728 BLAKE2B 9e4501d9a9e423b50d1cea9265dceef035879be1f16b9745aa7bbac8370f7f79c4e6c36fc2f3971a7d766a00fe6bab585148433601ca0ed30b40ca4a9a870406 SHA512 70d7c3f805b0ce6a9cd8034f0fcf22db203621c7464c7eb158a0d7a01dfeafe313934119a639305d02da25afc1852aa29d16d9d0de3d0101bc3bc4a0af18e8e8 |
23 |
DIST genpatches-5.15-64.extras.tar.xz 3932 BLAKE2B 3d6407f9f8da0b68072b93f74e33255c8c33523f7101a2fb9ca5ec4156f6f8cedb558a6cecca2c46ca8775869a06805ab21962f2fd7d1e974ed1813f3c0fc59f SHA512 6dc7dee3aae37c5504857188fd6957ef85765ecaa5bc17f70e172af66e3ba9d005f27aabbe9171b848f17c9bff5acedb42f01389ae1b6866dca44a1b6611d4e0 |
24 |
+DIST genpatches-5.15-65.base.tar.xz 2795292 BLAKE2B 75100ab05b0b1a8fcd2df2176f6e8b28758cc518919de20f6be4f764a6351b589242a61d7229c05f1e1228338a74c16cc3c8523a0cc7cf991d9d03f6fcf543a7 SHA512 e87e718e39ecac03229d607cf7c869819af06445f86d63a3b5e478b2968d6e9811ceed189f146bf4b99d8fb21b3d9100e3a09a03bf270b521afc227f45792617 |
25 |
+DIST genpatches-5.15-65.extras.tar.xz 3932 BLAKE2B 5e530c404d10e8ce0a228377a18ad473b2bf17e68b4214d7de676ea872fbce439ef08e610dbe7a33ace4721dcb5b1bec1b0672e19bafe00d7b9a1812934f51b8 SHA512 0df7125b6bbe48790a2f9c3cda7f273dede01c2ff532fd494014435040f58839f07ec0f9c0ba9d4f21738fc969cc8e59c3d1cdc23238db6f2d5d1373bdb6cdda |
26 |
DIST genpatches-5.18-20.base.tar.xz 776528 BLAKE2B 3d7a0cf2c6f9a5d28049c42b6e2ffccbb707232aef139c9b9aae33c37d6cef22b45261094ac5c3e23019123709c642c69d3f181683d790305f97d72d93a48177 SHA512 db5a44c919f29f0c37cd21384a5ffa6b528575f5b5dbf71800d3a6277f793ad4ee6a6d04a35c3ef5f90906133a91f4a0e23ae43e86f678a25b23bb1c77761c22 |
27 |
DIST genpatches-5.18-20.extras.tar.xz 3924 BLAKE2B ddea420397d5b64ac5e964db6b2d863cca0a4fd46a3969af7f24b7803b0f07278b54363c1b43fbc4f305ac4b44e5880d5af0bb10cd2a0a08bc0e4fbd51c9e35e SHA512 51203e404cc8084974725f78dd521f5d7864f40380bc1f45596b8754a57f30535e32c3984c01a4d12b38b6118eb1448126f96042d8a2b5007167428e09761726 |
28 |
DIST genpatches-5.18-21.base.tar.xz 786248 BLAKE2B 60d007f0ad81b8c8af63789f98613850edc92836672a743bf543c2e7078b666a41f4f277d5b9f001a018811733f266d87651198e3c087c00f8bc8239b2b89236 SHA512 0018fdc5805dff2f92b0f3c2e78e0a30359eb5a02b8b24cc4ced7c42d90e6fa904e8b43982ffdf9bc5c55b9faed1c003bfd6510f3f9c8042180884aa3a87ba2b |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.61.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.61.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..64c99e19532c |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.61.ebuild |
35 |
@@ -0,0 +1,131 @@ |
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##*.} + 4 )) |
45 |
+CONFIG_VER=5.15.19 |
46 |
+CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 |
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 |
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg |
95 |
+" |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ local PATCHES=( |
99 |
+ # meh, genpatches have no directory |
100 |
+ "${WORKDIR}"/*.patch |
101 |
+ ) |
102 |
+ default |
103 |
+ |
104 |
+ local biendian=false |
105 |
+ |
106 |
+ # prepare the default config |
107 |
+ case ${ARCH} in |
108 |
+ amd64) |
109 |
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
110 |
+ ;; |
111 |
+ arm) |
112 |
+ return |
113 |
+ ;; |
114 |
+ arm64) |
115 |
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
116 |
+ biendian=true |
117 |
+ ;; |
118 |
+ hppa) |
119 |
+ return |
120 |
+ ;; |
121 |
+ ppc) |
122 |
+ # assume powermac/powerbook defconfig |
123 |
+ # we still package.use.force savedconfig |
124 |
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die |
125 |
+ ;; |
126 |
+ ppc64) |
127 |
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
128 |
+ biendian=true |
129 |
+ ;; |
130 |
+ x86) |
131 |
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
132 |
+ ;; |
133 |
+ *) |
134 |
+ die "Unsupported arch ${ARCH}" |
135 |
+ ;; |
136 |
+ esac |
137 |
+ |
138 |
+ local myversion="-gentoo-dist" |
139 |
+ use hardened && myversion+="-hardened" |
140 |
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
141 |
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
142 |
+ |
143 |
+ local merge_configs=( |
144 |
+ "${T}"/version.config |
145 |
+ "${dist_conf_path}"/base.config |
146 |
+ ) |
147 |
+ use debug || merge_configs+=( |
148 |
+ "${dist_conf_path}"/no-debug.config |
149 |
+ ) |
150 |
+ if use hardened; then |
151 |
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
152 |
+ |
153 |
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
154 |
+ |
155 |
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
156 |
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
157 |
+ fi |
158 |
+ fi |
159 |
+ |
160 |
+ # this covers ppc64 and aarch64_be only for now |
161 |
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
162 |
+ merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
163 |
+ fi |
164 |
+ |
165 |
+ kernel-build_merge_configs "${merge_configs[@]}" |
166 |
+} |