1 |
commit: 8b8d3c0c5caedf9b7e4f035f2cac2b90f3c5eca8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 8 11:19:52 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 8 13:42:21 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b8d3c0c |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.19.8 |
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.19.8.ebuild | 137 +++++++++++++++++++++ |
14 |
2 files changed, 139 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest |
17 |
index 89a9ef24fc32..5d4927f1616c 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -14,6 +14,8 @@ DIST genpatches-5.15-69.base.tar.xz 2924208 BLAKE2B fc4f14592624fe2516c917425c04 |
21 |
DIST genpatches-5.15-69.extras.tar.xz 3932 BLAKE2B 03a0b738dd90047356abd306bcdee18e7468d111dcff28cfe4bc39c7328d146c69178b1fdd19cef92c0076ad981e845f2ad37778a0907bcf0fa572011d747b08 SHA512 bf29f35d834d6113b68a3ab0a2c2ab2b241c2fa13e47f59669d23a6510cbfb29d24f5947582b2c24f2e4e3170e798d6d0a4171c47973399431a32b76a770488a |
22 |
DIST genpatches-5.15-71.base.tar.xz 2956404 BLAKE2B 20b54274b121a6e15d8960cc62e63e822db1d5fcf3a3e2f3810b70026015b405af6c5840702e418a13da2a712653f06a3f5d8af3de2157e40f1b41c8e0299a44 SHA512 ca2e20c2b6db7b2d064730650c1645524558d91de787aa947849541f2a6b0d29c919307373b6ab0a62cccaa0bddfed382c7aaf5d4b00620e1ce97d4983ade3c9 |
23 |
DIST genpatches-5.15-71.extras.tar.xz 3932 BLAKE2B 53ae8469ceaf8524672ef9f7155dc092558135681438ca8dc233dcf99d458a538902ee805d8572b8ec47203966177e3cf199c47ba3ff48ceff7ae1e7844c2707 SHA512 c35adfff42a907787088d7756f77672f321b5311e08c639bf4fefa344517ea5f1d038e50bc3bbac3e321c16ad3b0ee9a35ca96f031820817ebe063b79a98a7fb |
24 |
+DIST genpatches-5.19-10.base.tar.xz 709064 BLAKE2B 26be5a66afbbcfec3ae5c857cfd20d33ed0c6e0084411205a7a624f6f63132ffc7482328a6dc21e77575008ffd36f63f92ccb8cc3330faf367f843f348f6d5a4 SHA512 4522c43ff92ba2a8709305f06f520c1b182ebfc8bee54f17769944b5ffe6d53dbb54499ac0dc66cc021a776102933f521dbd3b0918413f97c674f2f7055055a1 |
25 |
+DIST genpatches-5.19-10.extras.tar.xz 3804 BLAKE2B 9f00a275e39e2f0566848c4f548e2ef338812e470056a7f07697ec4489d9cad0d065916778b04c08f00589ba3ad9b9933fa5d4e46fc694f394d441cfd2863b3c SHA512 fc590ff0a2d34eefb6204ed69aaad56ddd7c5d6d856b47fdca20510e08196303cdf440d78af77d9fe596fefd90402f961ebdaf9ae8466171db844d081dfa4ae6 |
26 |
DIST genpatches-5.19-8.base.tar.xz 643396 BLAKE2B c383c7efc908fa3e8ebdfb750d92df6adfa1e0d00f253eae40fb5db5b84f8848a5c1a4fdcda693da998b1ba9d1afb1019cbc2574ceff2b099d2125ead515efc3 SHA512 ebd5eaaefbd362d85fa8cb95b0ca4192bf7a0835ec58ea25def13e502f87f74bcc29219083f39b85462b262f526f771270b5a8d93ff49126e1653d948a9ccb9d |
27 |
DIST genpatches-5.19-8.extras.tar.xz 3808 BLAKE2B 8cad0dd5deaca8f8b379c96cfad02add0cfe7498f17e84d11e6b809e366ae0476734bd003b287456459febe2ff4c1fa7b3e54c47243cd571a34ffb1cd927a1ea SHA512 a183d09ba7b1fc3f89b7754709df8d093ba70b09f71e237844214d65bc5821b6328c436c7ef697c30bfd38fc833bd178497190a2e73914a03ec0dfa4cbcdf7f2 |
28 |
DIST genpatches-5.19-9.base.tar.xz 665036 BLAKE2B 0d0f0305b82cf97240237cbde866bccd757a27ef91d23843feaa5d05be9f4d647165ad69b796d21a30bd7d92674b6be873aa529052a41ef8c200ee781a3bcc6a SHA512 e86ae26fdc5e0cedad066be47ac7d162ac7f546f253855394abf5c6da02a1c2ad99ab601fbb54775ab36720ac3e8161c9bd3fce2ddcf1ab451e30bd680ebf33b |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.19.8.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.19.8.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..ca4fd4085837 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.19.8.ebuild |
35 |
@@ -0,0 +1,137 @@ |
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##*.} + 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=5.19.6-gentoo |
48 |
+GENTOO_CONFIG_VER=g2 |
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/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz |
57 |
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz |
58 |
+ amd64? ( |
59 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config |
60 |
+ -> kernel-x86_64-fedora.config.${CONFIG_VER} |
61 |
+ ) |
62 |
+ arm64? ( |
63 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config |
64 |
+ -> kernel-aarch64-fedora.config.${CONFIG_VER} |
65 |
+ ) |
66 |
+ ppc64? ( |
67 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config |
68 |
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER} |
69 |
+ ) |
70 |
+ x86? ( |
71 |
+ https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config |
72 |
+ -> kernel-i686-fedora.config.${CONFIG_VER} |
73 |
+ ) |
74 |
+" |
75 |
+S=${WORKDIR}/${MY_P} |
76 |
+ |
77 |
+LICENSE="GPL-2" |
78 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" |
79 |
+IUSE="debug hardened" |
80 |
+REQUIRED_USE="arm? ( savedconfig ) |
81 |
+ hppa? ( savedconfig ) |
82 |
+ riscv? ( savedconfig )" |
83 |
+ |
84 |
+RDEPEND=" |
85 |
+ !sys-kernel/gentoo-kernel-bin:${SLOT} |
86 |
+" |
87 |
+BDEPEND=" |
88 |
+ debug? ( dev-util/pahole ) |
89 |
+" |
90 |
+PDEPEND=" |
91 |
+ >=virtual/dist-kernel-${PV} |
92 |
+" |
93 |
+ |
94 |
+QA_FLAGS_IGNORED=" |
95 |
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so |
96 |
+ usr/src/linux-.*/vmlinux |
97 |
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg |
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 |
+ riscv) |
134 |
+ return |
135 |
+ ;; |
136 |
+ x86) |
137 |
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die |
138 |
+ ;; |
139 |
+ *) |
140 |
+ die "Unsupported arch ${ARCH}" |
141 |
+ ;; |
142 |
+ esac |
143 |
+ |
144 |
+ local myversion="-gentoo-dist" |
145 |
+ use hardened && myversion+="-hardened" |
146 |
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die |
147 |
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" |
148 |
+ |
149 |
+ local merge_configs=( |
150 |
+ "${T}"/version.config |
151 |
+ "${dist_conf_path}"/base.config |
152 |
+ ) |
153 |
+ use debug || merge_configs+=( |
154 |
+ "${dist_conf_path}"/no-debug.config |
155 |
+ ) |
156 |
+ if use hardened; then |
157 |
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config ) |
158 |
+ |
159 |
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) |
160 |
+ |
161 |
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then |
162 |
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) |
163 |
+ fi |
164 |
+ fi |
165 |
+ |
166 |
+ # this covers ppc64 and aarch64_be only for now |
167 |
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then |
168 |
+ merge_configs+=( "${dist_conf_path}/big-endian.config" ) |
169 |
+ fi |
170 |
+ |
171 |
+ kernel-build_merge_configs "${merge_configs[@]}" |
172 |
+} |