1 |
commit: 1ba0b845ff8f2b4479702fdadfa5107dbce94402 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 11:17:25 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 14:53:41 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ba0b845 |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.10.166 |
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.166.ebuild | 134 +++++++++++++++++++++ |
14 |
2 files changed, 136 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
17 |
index e2df46e3bbd6..084705955b8c 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -4,6 +4,8 @@ DIST genpatches-5.10-173.base.tar.xz 4855856 BLAKE2B 12e85119807c228eecd2101a944 |
21 |
DIST genpatches-5.10-173.extras.tar.xz 3868 BLAKE2B e407ab499bdb66025b6a970de3866c2dc6f7c275757a0a11c48c598780d195f85a65c9557b3a4e44533d8731bd34450e6701cf5590b975816d435223097dc4df SHA512 f8465734661ef15423b6f1de05e47df8ba9cf8a00eb1dd805b30e87b98fd51cd067db15a54b681827d94982f02a2fef641998b8529a9b59435d8bf49e6af44b9 |
22 |
DIST genpatches-5.10-174.base.tar.xz 4872732 BLAKE2B 7198a28cd63f3a68899f39cdb8aabcd03dd7a5b6eec14d03135a18c04dc1412064544b6f20b62c19f6c86a247fba0ed64630c4718cd725015243272412c71ed4 SHA512 bbf400aaad4b3e817d530a5d732d9e601d92e4058359f48c6f522fa266026e20554610673c513b5d9d895f158146ea2b046517e26ac872d39c6975e7c1e57bb5 |
23 |
DIST genpatches-5.10-174.extras.tar.xz 3868 BLAKE2B 8a54440259b9dc9fbf8e7bf61c2193829e1c916e029b3a9fca7678698e17b4a71aca2fd3615e5f8f6466530f41cb0e6f09aea9d062b5c8d027aaf2deb6d7d51e SHA512 db3d0513ac2b249d44eb0b69710643ae7c2edaf0f6161347d827f90e7f4f7946bd7307c1857aa813359c17902da72d586666231deb210becf040df644029d3ff |
24 |
+DIST genpatches-5.10-175.base.tar.xz 4909096 BLAKE2B cf9a0be14ec5a99f5a8ff6ba615be0a037f931c02f8edcafb91c6aa78b76dada6f0a9a41b9ab75240f8a64af6a944fe0c31012fbfa21162d8e43c016ddf72f97 SHA512 7ccd6619f5df892cbdf5ca7d53133d8964098cc81dbdfdabd45d99128ac3e4dfb5d64bda8b3d17f17b436ed12a0f3ef2d9667ca02b861c7a4ee6226647936280 |
25 |
+DIST genpatches-5.10-175.extras.tar.xz 3872 BLAKE2B 1371c40d2a9e15fb2297842c5aa7989772c3699d360dba1837df770d3e8c16fe48cfe6ade3a0832237dcf85722ef276ee80960072c47dd83d46018de44af4bbf SHA512 9c2c2349c1a88e916ddad9b67cddd0cc5c281ce1d85d29c56e308a52999b79c1c212c8caa3f829aa16e20b8ca4154ba8c66e6cc5d4ed1d4d07d3fe9c26f46ed5 |
26 |
DIST genpatches-5.15-92.base.tar.xz 3843196 BLAKE2B 1a70c672f4ceda221611ba1bad20fc4e791a51e27f412995308cb7f39962c6e237efc1bb7912c67b8e3dabaffce3bb6ceb55d62f4f12b79671910b70c1e7a8dd SHA512 33390b3e24783405971f2eacb24e715faf841a66e477a03d4055d61694fa72694d7563d799b95d47037ad0d7e7c234e56c894ddd7cd1dba59077efb901bbba26 |
27 |
DIST genpatches-5.15-92.extras.tar.xz 3932 BLAKE2B 12936d0ac139d69f2e5947436ffd34add80625aa383aa23e51b4419a5e2ad3c38ace4d69c9e7066bfeae32ab727013e602c3a1c3424e128562597c517c7e5903 SHA512 6595eca7525db97672a15275228dbb9b14e7e234514b549e0fc17daeda4b48d298f6dbcde46e5862fe02bac9f50ffd7b05d82a174541469456289bdc6eb7f4b1 |
28 |
DIST genpatches-5.15-93.base.tar.xz 3874100 BLAKE2B 3f9bd1a90de22824db823bead22ae777ebea551ebd183184ecd039f33def8db603694acbe3757352cff228eb2a28a8c31d362f2185b32f88edd19c4de6eedad1 SHA512 1d5c83f5f44ccee701755dc7732f80baa00e5b3f4137c9da8d81cd7fad0055df6b09dddb1cdd6287db6a43cd1b673aef3a543086138af72cad5218d2fef31860 |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.166.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.166.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..8117858f61f9 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.166.ebuild |
35 |
@@ -0,0 +1,134 @@ |
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##*.} + 9 )) |
45 |
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 |
46 |
+CONFIG_VER=5.10.12 |
47 |
+CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 |
48 |
+GENTOO_CONFIG_VER=g6 |
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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
58 |
+ https://dev.gentoo.org/~alicef/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://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config |
63 |
+ -> kernel-x86_64-fedora.config.${CONFIG_VER} |
64 |
+ ) |
65 |
+ arm64? ( |
66 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config |
67 |
+ -> kernel-aarch64-fedora.config.${CONFIG_VER} |
68 |
+ ) |
69 |
+ ppc64? ( |
70 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config |
71 |
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
72 |
+ ) |
73 |
+ x86? ( |
74 |
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/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 ~x86" |
82 |
+IUSE="debug hardened" |
83 |
+REQUIRED_USE="arm? ( savedconfig )" |
84 |
+ |
85 |
+RDEPEND=" |
86 |
+ !sys-kernel/gentoo-kernel-bin:${SLOT} |
87 |
+" |
88 |
+BDEPEND=" |
89 |
+ debug? ( dev-util/pahole ) |
90 |
+" |
91 |
+PDEPEND=" |
92 |
+ >=virtual/dist-kernel-${PV} |
93 |
+" |
94 |
+ |
95 |
+QA_FLAGS_IGNORED=" |
96 |
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so |
97 |
+ usr/src/linux-.*/vmlinux |
98 |
+" |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ local PATCHES=( |
102 |
+ # meh, genpatches have no directory |
103 |
+ "${WORKDIR}"/*.patch |
104 |
+ ) |
105 |
+ default |
106 |
+ |
107 |
+ local biendian=false |
108 |
+ |
109 |
+ # prepare the default config |
110 |
+ case ${ARCH} in |
111 |
+ amd64) |
112 |
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die |
113 |
+ ;; |
114 |
+ arm) |
115 |
+ return |
116 |
+ ;; |
117 |
+ arm64) |
118 |
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die |
119 |
+ biendian=true |
120 |
+ ;; |
121 |
+ hppa) |
122 |
+ return |
123 |
+ ;; |
124 |
+ ppc) |
125 |
+ # assume powermac/powerbook defconfig |
126 |
+ # we still package.use.force savedconfig |
127 |
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die |
128 |
+ ;; |
129 |
+ ppc64) |
130 |
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die |
131 |
+ biendian=true |
132 |
+ ;; |
133 |
+ x86) |
134 |
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
135 |
+ ;; |
136 |
+ *) |
137 |
+ die "Unsupported arch ${ARCH}" |
138 |
+ ;; |
139 |
+ esac |
140 |
+ |
141 |
+ local myversion="-gentoo-dist" |
142 |
+ use hardened && myversion+="-hardened" |
143 |
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
144 |
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
145 |
+ |
146 |
+ local merge_configs=( |
147 |
+ "${T}"/version.config |
148 |
+ "${dist_conf_path}"/base.config |
149 |
+ ) |
150 |
+ use debug || merge_configs+=( |
151 |
+ "${dist_conf_path}"/no-debug.config |
152 |
+ ) |
153 |
+ if use hardened; then |
154 |
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
155 |
+ |
156 |
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
157 |
+ |
158 |
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
159 |
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
160 |
+ fi |
161 |
+ fi |
162 |
+ |
163 |
+ # this covers ppc64 and aarch64_be only for now |
164 |
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
165 |
+ merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
166 |
+ fi |
167 |
+ |
168 |
+ kernel-build_merge_configs "${merge_configs[@]}" |
169 |
+} |