1 |
commit: bc5cf855797a23b2a27bcc7477bde75e1e86e04f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 19:34:41 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 20:43:08 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc5cf855 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.10.95 |
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.95.ebuild | 127 +++++++++++++++++++++ |
14 |
2 files changed, 129 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
17 |
index 34a63b6db1ce..1562445c7853 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -2,6 +2,8 @@ DIST genpatches-5.10-100.base.tar.xz 2822696 BLAKE2B 8958af480d9babf927d8b1ac5ff |
21 |
DIST genpatches-5.10-100.extras.tar.xz 3852 BLAKE2B 7ac718b6080adb6a641ef7b976185b09ddf7f225fcaede25afbf6a15bf855eb6dbbe44416fcddf1ea466c36433e04736c68f032a1c79bde858434427c6658a1b SHA512 558c9fc3279d7fb507ac8251369966dd40282776890da045d96eab328fd7300a93dab12afbfabc3dd52f61d49c0020b87cd4087d4c8f840f3443ed8ffe89c81d |
22 |
DIST genpatches-5.10-101.base.tar.xz 2955936 BLAKE2B 3370c569b41cace5d3a2712ade28dfe0abb2be3e4a5578356a6c53dc241a38eaf402900a1c1c1598dbad32f304244a286b538f98318f4cf6e66c18b74ec5bb7e SHA512 901de3d038a85c673a1645e5e58ab5ac195cfb1b449dbf424410db22e5855dadcb75f70b406bfee37220652f300db3a8588d093db9da3d011e2d5f100486d184 |
23 |
DIST genpatches-5.10-101.extras.tar.xz 3852 BLAKE2B dbf3e7e310992dbaf119a9f9e0784e63bc9a37588ffda6f532fb70c798ab50ca97e5083d3e63451d33d67ff46229b7c67ee0e92fc1d72d96f4a64cb605a232fc SHA512 31ca45cb7b38203f39e1b10d5e23835e226b3adcfe83fef0d9a6cf9d7fce88c1249f25aa19188d39042e44d733ab4a6cfab1ac37b5f945488e81e157a1b9cd8c |
24 |
+DIST genpatches-5.10-102.base.tar.xz 2961600 BLAKE2B cac29a452129492227feca71107c20eea35fc7712604c5d124c15e326c93cfba3105f1d5e08486e2b8f1934983ffe7a8a52e6b6994e101a55a5a1fca832c2fe3 SHA512 b40778eee0defffe381864edb70130a000a9380358f6061439e2e58f37ee798afacef9599d1454a519a29e72bbc1fbc8cdffc50454fb2ab3e12df4b36b45bc8a |
25 |
+DIST genpatches-5.10-102.extras.tar.xz 3852 BLAKE2B 771f6f91cc36f7c18ece75ea1b5f5bfd47a304ae60b6c1307164e5b96e3cc22eb987733368047d48193bac0b16ca7be9ddb092d8abbe1ea710614ff1bf31dfbe SHA512 8058f4cd33ab70adaebbf0ef6981950c35e7a3f2451c4e7f81ceda786838150d514661d3ac51764e48747e1db14d5d1c03de64798e2003c600dd28ad6a675e5e |
26 |
DIST genpatches-5.15-18.base.tar.xz 697228 BLAKE2B 01a377a9c1f2709ad2cde18e3094d37ba2414c7c3d949f236d41f5d36e8c4513331c4859740ec34bc8418d6fb2457fbb7d9f7c64f6f596795e1abc9a02c9e340 SHA512 14a652cf64e8e22539a61f14af715fd1a59644875a8a61473b5eb66bcc7b5f4bb34602463b208114bb4dbb73f159932983d48c0567a44b5090b9ff8f52920eaf |
27 |
DIST genpatches-5.15-18.extras.tar.xz 3852 BLAKE2B d3521142bf5ece893429ec7e1b6aec724fff15fbba2f80e9fb092af4d40bc258e034226989d2502ee258faa0c7e0aacd885499d22f4317060d61cd916e00e7fa SHA512 f1a98d3875541ec4b8f3461c1af8a9b37fd4f5a64e7d717e906f851bf4e976e4509df4b8cb67b9e210215cc33924d039599cecc8f4892dcbed510e00f8119df8 |
28 |
DIST genpatches-5.15-19.base.tar.xz 925776 BLAKE2B 040a1cabc9217a91e8bae89ef7878e61056f3eccc97472a27dd2b3c695b2bce59c487ff303048d1f98553349c0b6227d0a3dfa837ccfd6cfd7b1147606b4703f SHA512 b2facd0ba66001ce9327ef2d037097e78e4b9c8e02eb5b66f9ab9bacc6af5800ccfe576ca4383c263c597a67e92b96bb0287140396a602f15fbec403a4173a53 |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.95.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.95.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..98f0c8eaf074 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.95.ebuild |
35 |
@@ -0,0 +1,127 @@ |
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##*.} + 7 )) |
45 |
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
46 |
+CONFIG_VER=5.10.12 |
47 |
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 |
48 |
+GENTOO_CONFIG_VER=5.15.5 |
49 |
+ |
50 |
+DESCRIPTION="Linux kernel built with Gentoo patches" |
51 |
+HOMEPAGE="https://www.kernel.org/" |
52 |
+SRC_URI+=" |
53 |
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
54 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
55 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
56 |
+ https://github.com/mgorny/gentoo-kernel-config/archive/v${GENTOO_CONFIG_VER}.tar.gz |
57 |
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
58 |
+ amd64? ( |
59 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
60 |
+ -> kernel-x86_64-fedora.config.${CONFIG_VER} |
61 |
+ ) |
62 |
+ arm64? ( |
63 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
64 |
+ -> kernel-aarch64-fedora.config.${CONFIG_VER} |
65 |
+ ) |
66 |
+ ppc64? ( |
67 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
68 |
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
69 |
+ ) |
70 |
+ x86? ( |
71 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config |
72 |
+ -> kernel-i686-fedora.config.${CONFIG_VER} |
73 |
+ )" |
74 |
+S=${WORKDIR}/${MY_P} |
75 |
+ |
76 |
+LICENSE="GPL-2" |
77 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
78 |
+IUSE="debug hardened" |
79 |
+REQUIRED_USE="arm? ( savedconfig )" |
80 |
+ |
81 |
+RDEPEND=" |
82 |
+ !sys-kernel/gentoo-kernel-bin:${SLOT}" |
83 |
+BDEPEND=" |
84 |
+ debug? ( dev-util/pahole )" |
85 |
+PDEPEND=" |
86 |
+ >=virtual/dist-kernel-${PV}" |
87 |
+ |
88 |
+QA_FLAGS_IGNORED=" |
89 |
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so |
90 |
+ usr/src/linux-.*/vmlinux |
91 |
+" |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ local PATCHES=( |
95 |
+ # meh, genpatches have no directory |
96 |
+ "${WORKDIR}"/*.patch |
97 |
+ ) |
98 |
+ default |
99 |
+ |
100 |
+ local biendian=false |
101 |
+ |
102 |
+ # prepare the default config |
103 |
+ case ${ARCH} in |
104 |
+ amd64) |
105 |
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
106 |
+ ;; |
107 |
+ arm) |
108 |
+ return |
109 |
+ ;; |
110 |
+ arm64) |
111 |
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
112 |
+ biendian=true |
113 |
+ ;; |
114 |
+ hppa) |
115 |
+ return |
116 |
+ ;; |
117 |
+ ppc) |
118 |
+ # assume powermac/powerbook defconfig |
119 |
+ # we still package.use.force savedconfig |
120 |
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die |
121 |
+ ;; |
122 |
+ ppc64) |
123 |
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
124 |
+ biendian=true |
125 |
+ ;; |
126 |
+ x86) |
127 |
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
128 |
+ ;; |
129 |
+ *) |
130 |
+ die "Unsupported arch ${ARCH}" |
131 |
+ ;; |
132 |
+ esac |
133 |
+ |
134 |
+ local myversion="-gentoo-dist" |
135 |
+ use hardened && myversion+="-hardened" |
136 |
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
137 |
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
138 |
+ |
139 |
+ local merge_configs=( |
140 |
+ "${T}"/version.config |
141 |
+ "${dist_conf_path}"/base.config |
142 |
+ ) |
143 |
+ use debug || merge_configs+=( |
144 |
+ "${dist_conf_path}"/no-debug.config |
145 |
+ ) |
146 |
+ if use hardened; then |
147 |
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
148 |
+ |
149 |
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
150 |
+ |
151 |
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
152 |
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
153 |
+ fi |
154 |
+ fi |
155 |
+ |
156 |
+ # this covers ppc64 and aarch64_be only for now |
157 |
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
158 |
+ merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
159 |
+ fi |
160 |
+ |
161 |
+ kernel-build_merge_configs "${merge_configs[@]}" |
162 |
+} |