1 |
commit: 471f28ace8cf5f84b64048838e6f4bdc0cc5d407 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 29 13:08:12 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 29 17:36:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=471f28ac |
7 |
|
8 |
sys-kernel/gentoo-kernel: Bump to 5.15.51 |
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.51.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 25a4a971b6ef..fc21cdbe4692 100644 |
18 |
--- a/sys-kernel/gentoo-kernel/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel/Manifest |
20 |
@@ -12,6 +12,8 @@ DIST genpatches-5.15-53.base.tar.xz 2200544 BLAKE2B a6f1e11186e771abe56bb453d45f |
21 |
DIST genpatches-5.15-53.extras.tar.xz 3932 BLAKE2B ade13a83b27b14cf19f455539599aff1db3bc6caf99d07e746b292be702c49591519b63f754c4651ac3e0e867412cb5ffb588d5056cf6066c193e09a0c3feaf2 SHA512 438905963b586148d6385f24549343a6fc4d623f24aea089f52af44f772eaa62f0602d729b0232620d8ca08d440210dc7dbe7b5259a3fc232d603f574b5bf714 |
22 |
DIST genpatches-5.15-54.base.tar.xz 2203912 BLAKE2B 36e27d2734e9a62b1900907ea3722a522ddc61c991b5c751dd09d055b9da0fa92bd0de3eeee8b1560ff9a60c8d80181904dd14b7db7878b499a07bb31b0b5f90 SHA512 e751fbd89b91dc59dd0ac87f906ad1c4ae69ccfcad97db616bddd0d25184c133cba8af1141f5e32f690199d6196d0a5035941b70576cd4dd80aea750d1ce0c27 |
23 |
DIST genpatches-5.15-54.extras.tar.xz 3936 BLAKE2B 259497959ac6cd96036809fbc1634fa174e611f626b0f36c8003587ec0825fd75431b34329ecf4a9d9aeda3803986b2e3987f27d37e0fddf27eb83509c248548 SHA512 7c85e42f6195f6a0bdafbf0be5fbbab1b7a634a922c5233d1dfc2c29842fe4617888cdd7769584d2e918457bdd1a295b8761e354772d78b05cd1e917e9f71abb |
24 |
+DIST genpatches-5.15-55.base.tar.xz 2235252 BLAKE2B 7304a492e04d83ec505c76af4f3eb61999547647bcbcfcc82a2211aadbbd2fd63bc3335eeee9ccb8927d3d0486e41afeab6adbe3d3e8da4ad0c13d39f1ff4139 SHA512 47c488dcba5854a28a6b8f968e13f97fb31dc5f31a5a3abde426df7972a890c8fa36530ead386f02f3ecfaf2ac49da1e27d8a2de2df5c6a5c5fdf302e3c492fa |
25 |
+DIST genpatches-5.15-55.extras.tar.xz 3932 BLAKE2B 50132ad9a1b3a9012ff46cc2ed8c0d18ffd7c48aed1c481eff24e4757652e3787172049a3025b2586092382c827c6d139930d157d039258d07ad228ea716c12d SHA512 188abe81e73bf1a809125dc634e10be8427c1d11f696f4ad7fa60a0ba269773278e3a9e568e3640f7ad8fb8f4736de7292a154b05f8f7bfab4fe1fbe341bceb8 |
26 |
DIST genpatches-5.18-10.base.tar.xz 500696 BLAKE2B e6dfe7b2f752aa0cadb2de11ed7e9e77935abf4d61c99fdb4f6790853364c8b8b189d25b2190b3c85b51ef355b085d1ab740599a920843534f0d4a840fbe8733 SHA512 d425826ca98a5600262485aae057401c131e63b2b84ef6eaea287a433acd4b0f98e3899bd931ac73eda5651c57bcc4bec730469655d54aa1f176ebfda6724aa6 |
27 |
DIST genpatches-5.18-10.extras.tar.xz 3924 BLAKE2B ea024b19777b6fd59ad5505eaff41db7dc793f5f29beca1d70c2ab60829f5864f1b78f9b809fa9443f995f70df82746d33ac9ce9453a564b77c3964b49afe822 SHA512 7468faea1020335f546c69d331aa864400687056a01cb54a888f3d4bbe6c9061fc2a5d519f93aa362b87df953bb13c06ea2dda403e48f63ca259a6990120ff5f |
28 |
DIST genpatches-5.18-8.base.tar.xz 440848 BLAKE2B 8a965867409cc340b13687eec9c7391bbaf26b770ba8d4b657b923226a539b7b68eabab6f12bae4bed09a0d198917373a6ab4f707831c652e2461a49f8dd4981 SHA512 057a00d62f4d8ba7be4ea26aeaa4bfbd5581b22ded85dae71aaa693621eda17532ac00bbeaaea1689f552ce2b95a04e9aade603f6236c2a265aa8fea8231c5d0 |
29 |
|
30 |
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.51.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.51.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..3e9875ab5936 |
33 |
--- /dev/null |
34 |
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.51.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 |
+} |