1 |
commit: 15fb43e151f5e689ae13fbee9f68bf51b51c36ce |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 6 12:10:48 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 6 17:12:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15fb43e1 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.15.45 |
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.45.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 4374374e3470..4f2cf8b9ede0 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -12,6 +12,8 @@ DIST genpatches-5.15-47.base.tar.xz 1869424 BLAKE2B 461735737047406f44d86088681c |
21 |
DIST genpatches-5.15-47.extras.tar.xz 3932 BLAKE2B 37fad5be81ce4ff7e0ddb17772893055c06789e02e7b5043c205bb94c483704aea802822964f89d0f90deb4a02070d9e6c1f9924059a8ff2920367cc9fb5e007 SHA512 0a680400cfa7043efb47dac7642675f327ebae2409da95468c1fa2b70ea0de6ec50c1e1325aea7796a1cce641994b29d209cf69e9ae4e8df7f228b38e6e302d5 |
22 |
DIST genpatches-5.15-48.base.tar.xz 1909116 BLAKE2B f3b0a3234a30ca102daceee913682488db12cb6cdd5587ea96d4a2bdde0db2c1bddd26ba0e9ebff3632c3cf4f26ed8695043179ea1e3f160bc84b721b73282b9 SHA512 57102597ad1f18e7b94666b431db5ecf96011d14ad76754792793f98bd57811a16f52358ca28728d33c60f5d08203f77003d1312f6092617bc3c804fa4d8d839 |
23 |
DIST genpatches-5.15-48.extras.tar.xz 3936 BLAKE2B 9b4063e107540bc974fab302dd638f468c461780f35bf23e885037bea7fa8a521db5071a40560b9739b042609376f9d703c38bc943bd85987c95d2b0a87636a6 SHA512 f32559fc7935bc4d8059f7a806d5b3153f3f3248b6b8f60a4b746eef04028d0aa7526eab6e41ae25e2f07a8388fd5a1f89648e9ed83c123d2f259911efefbb09 |
24 |
+DIST genpatches-5.15-49.base.tar.xz 1924264 BLAKE2B 413b52e2d56b8da573f23def0f2f6424072cdc1019c06a208986ad7e876a7cdcb9bd2ecac3ffc53ed07ae36756c4cde13713c07058bd67953d40a7b968935805 SHA512 874200e89cdcc359476809b36d118a97839d79df4067e423a9b302d1830f54e381c70d93576ca14c3f2c57b5c3ac256d38321c5c48334e6ad4de527c4821b00e |
25 |
+DIST genpatches-5.15-49.extras.tar.xz 3932 BLAKE2B f38c4df269bdaca692d05f2b478b3133d5c55810d2e2d8689850bfc50c9eb108943446ebaf44b87889f8619006f6f8789da09137963aef6e08a95784dae65b25 SHA512 9b00de23b1112f192a10284f5dd6f1846d42e3e0df74aa63d58d4523cfd66eea227854aa7088b0389fe70ffb4e945ee7f6e1d845fb299faf0bbd394902bd5473 |
26 |
DIST genpatches-5.17-13.base.tar.xz 713196 BLAKE2B ecba47430d0aeaae2d09d586a9ea016b0b602e2005ae7bf04ffaea7967a7542660dd4bed6cbd5268f187416896c046fdcb7e1aeeccbf293012d11c7473c4d6aa SHA512 fad3e0c53a5bf450dd9dec4146233e322553e110c8b3bd93c53cdb664859aeeb3e5c861f5e04cfbd550014288b7dda9b5740e5d970c443c140c8bfe0559ab82c |
27 |
DIST genpatches-5.17-13.extras.tar.xz 3932 BLAKE2B 9aa42ee7af3c16e41f6bfffa91855a8f1949d795fd435f0334d89de5240238cdf5fd14b964236973d3178172db2aff98989bc3626f9ca6d9f9878711fc6bc581 SHA512 1cea0fe9035f02f8099768608bcc1d896234058af984db268bd03cd27e3f12c2ad108b3f6d90be11b7edd53983d19d7ae3a00de87f62c3e80f1eace1cb5660d7 |
28 |
DIST genpatches-5.17-15.base.tar.xz 769140 BLAKE2B dface984138a5b7f75911c7d6a4b7fcc67349f8adfcf863aa960fdddfb0e426fb0e408cd2f725db8df17cc9d742a68f85e24c91c644b3f0c7ff142fc105fcf24 SHA512 8fed293b503b150507ecdca6d19011083cc1e3e5caa9ec4bc8527e282892c2dd35d24b746403d2b6a746586b526ee07c2fb50e97024ac409d03aefc50c372aad |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.45.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.45.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..3e9875ab5936 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.45.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/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 ~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 |
+} |