Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel-bin/
Date: Tue, 02 Nov 2021 22:59:27
Message-Id: 1635893953.0f01a5d653d7eaa540fa7001baacc8f939ca851e.mgorny@gentoo
1 commit: 0f01a5d653d7eaa540fa7001baacc8f939ca851e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 2 22:36:39 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 2 22:59:13 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f01a5d6
7
8 sys-kernel/gentoo-kernel-bin: Bump to 5.14.16
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-kernel/gentoo-kernel-bin/Manifest | 4 +
13 .../gentoo-kernel-bin-5.14.16.ebuild | 117 +++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
17 index 07a37d43823..e056b8d4de4 100644
18 --- a/sys-kernel/gentoo-kernel-bin/Manifest
19 +++ b/sys-kernel/gentoo-kernel-bin/Manifest
20 @@ -10,6 +10,8 @@ DIST genpatches-5.14-15.base.tar.xz 544344 BLAKE2B 5315b7c850517e559fda958cb73d9
21 DIST genpatches-5.14-15.extras.tar.xz 3840 BLAKE2B 824c2a15749f6e83b03669df117a0838ef955430c4781f5b1423d6a5eb4d3b594c99bda3220ceff3875b00601bf2564eb211ee470a04a7e221f5300d0552adf0 SHA512 197bbcb69a9e79f7938342a7ec2d8b6baa55b48f121ff5bef6d8a3969e41a646fa357cf394e9fb3e8ac6c43338749e8be8b50319020564eff5c30b49786978f1
22 DIST genpatches-5.14-16.base.tar.xz 591456 BLAKE2B 5c2faa9bbbc7c35b2c81d2cc3f11e61f3e69964187abfc70301c33fa58bd4762beceab0c298c0b16468def49482d4a0b32c93add83f94bde6e930284f7fc2922 SHA512 860f2cea8a95cfdc0e1524baa5baf168dcd06309a44319503ca0768b611118cc9a654eafc6ac22c2fe5d1a33954a27e7c53a55480e64310442a9a8e279f3e2ba
23 DIST genpatches-5.14-16.extras.tar.xz 3840 BLAKE2B c36321060c45651af5fe20fd7bffb8cc2c2cede11a9880997381acd9ab74a2ce99b89632c1061aa1542a6451a87ec4d7ad2536725bf429c243418e6c551d342c SHA512 bf77ba8560347ffd328b97e234d07bd1a8a22378e0209807b21b9cd78d458d4c3bb7a721583d5fffe919ff72fd3c74936dc5a97c911de1ffb35e8db696ff0b5b
24 +DIST genpatches-5.14-17.base.tar.xz 622212 BLAKE2B a0c5bcabe08e292287b57cdbdd573c8b61cedfc0560a63958ccafe2c1cd671b057b3faf6c4a577e9063b6eae46a1c6d7fb7e25ee92406e4a597ec0e74bb241d3 SHA512 3042091a962cd540b504570ab5ec11b3dda25b84c03529e78a01db232b4a0a716b9ee7b60352b7ad5afca7534af6ccdf14bcad9140ebd78ed56f292e47bf103f
25 +DIST genpatches-5.14-17.extras.tar.xz 3844 BLAKE2B f50d2d3e47b0e0387c68eff502be6163a167436f6e99a59a56420c1f4215cee35a892b95bcfb2b2f73261db57b52675f080e90a3f69512ba00163bef95cd8e94 SHA512 eaed5b496a124c94093d85cc23d73b345b9bc6b946656fa9e8f3d7eeff719303841f199d9d1312b4d8b69e7f55883a3c8961d3cd568c5ac48390850511c936ad
26 DIST genpatches-5.4-152.base.tar.xz 3987788 BLAKE2B ddc01301f5c778230159b9ea8ba107bb992ef7a8bac0f3068c40e95b5dc32eb701b0c11f4b5ab3dbda6e9f3c29c04612ecb623aade7bf38c7f852aefbba14432 SHA512 bbccd15725d1351be6f5feef202b3ae3760346092849902cdf3ca5cb3add804458244fd8b8cfedf39e1917e1a7dd7cba9873df2ab449e36e32a169b1640d34ed
27 DIST genpatches-5.4-152.extras.tar.xz 1784 BLAKE2B f99caae6094867a9535056ddb3d5cd9b9154f33417a5cddc53dbac79d5ee3f430e5d84ed4607a5bc72c2217049f7677fd3d19594096f61880d6c31e925bf5e92 SHA512 cd69e6dadad1eba57a6184cc65330c6497f8b822a025190a80d10d4d7c669bd4d9195bd880ce99f8384d6aec5237358b03e45ad8449f1c394d5743ecbb0da4a7
28 DIST genpatches-5.4-159.base.tar.xz 4064516 BLAKE2B c2c8350597d7cbe7652cea4b5a3fa92376259f1f4f15c3387f80f24b31d571cbb1094a27f52b099f0c61ce0187c3f498ccd4898cbb63f03c7367df39fdc475b0 SHA512 31116496b8d570d596a91e3408db055cbc602af2608ce579f5ce5ff41c084f629edde49c1efdf6220289451286f8a0b68d2937b916886f51b9a7d0529f130d2c
29 @@ -34,6 +36,8 @@ DIST gentoo-kernel-5.14.14-1.x86.xpak 59175659 BLAKE2B 4233bbbca15ceac5a1b1e6880
30 DIST gentoo-kernel-5.14.15-1.amd64.xpak 68135693 BLAKE2B 4d1b3c8f095bcbedc67c33e79093ea53499fb0d31732928b9d2594bc3866d02a00462255f012e76f92f956dc3ffa4f226d0c4ba7e42c356d26173b0b1afd2174 SHA512 adfaa8f98a34edd81480b3648f0b9bc17cd2047252a8c7f52d64c4d3f042e6565e245a90e591e7106ef27504b65906da81ea4b8df74e6398ef3dc48247886e28
31 DIST gentoo-kernel-5.14.15-1.arm64.xpak 63053059 BLAKE2B adbc13a8b046cd40da16d9902bfcef68347c81ed695af14445d526fdfed641d44635cc108c761a6056c4d485d9f0beaf80a1256474d427b6954318ca0b211287 SHA512 ed6bc279e81e80287cd5da69ae7d633b540ccb3ba219deb104fa04e0809734125d658ba995c39004a895bc6ab093c6d28d8eee6ab0d28e78d1669af5e4b8d189
32 DIST gentoo-kernel-5.14.15-1.x86.xpak 59181387 BLAKE2B 635576604adee2b32c107ca50fb74a106fb1e88a8f4640d8e9660d1493b4f86870e429acb1a3b42286b1d0781b4cc2421b10f1cecd778c4505f6edc1bf05b728 SHA512 6bf1300d5b3bc7512184e5d99d7e7b69d354e8b1fba41e609ed0288bdf134a1951c57b75d0255633c70ec250d05e4a403c09be56aa16d5ead38bee2f1b1bbb88
33 +DIST gentoo-kernel-5.14.16-1.amd64.xpak 68131257 BLAKE2B 8dc482d683f804b840b9a78f36bb344a6dffb35678ea543467cbfd2bb174d4fa0700f891c4e4935e326d29a24603932b83824506e552c52c90dde426f1db10a7 SHA512 07ec41de81bc6fd725aefe3d5209d38e81bf1c883eda59eaceb82c618b872c7075794966add8dc86696cf26fdd9cc61847c694474361a6785ac3d8b426058d37
34 +DIST gentoo-kernel-5.14.16-1.x86.xpak 59189394 BLAKE2B 9ed0a856eeaa5a715dc0161d338f5d6fd009985068f7f5dc440c219eeae5bb7fb0e8248d15543adfc2aa0009417a6f9c5a96ed60485c1f0a30138f01b35c3856 SHA512 bc15228884dd481f01b53c67758191a01d1bdad9b566f7c818b1fceb5b38567490557817b09086c7075be252e1804ad05cd4d860dbca981ca51e8be0327bcb4d
35 DIST gentoo-kernel-5.4.148-1.amd64.xpak 61364378 BLAKE2B 2d5a665f5ccee0de5abc78d593b8bc6f1da0fa6fa9573ee9c0a65efaae9629ac3ea0b26a4b83e6abb23eee5fcb842fd67a395af35fb5476529b30dc0739d7944 SHA512 277064e06bdf25fc67f0894ab1d8116f23c71488b92a1751833c6aff684c7f2d28e2116e31d40878caa3f741fe9fe61f1f0c3cfaca4677298d2851b22afdf1ff
36 DIST gentoo-kernel-5.4.148-1.arm64-r1.xpak 57998682 BLAKE2B a27bee25e2e6b2c0fea38cb5bee1ce433c6dbf10468b374ffb237a15403a4acb7feb0729526d337c5c9b1a85c4afc63716fa3c4b5fbe32c03ddb6966765f8946 SHA512 c72a4d8bc4bca7cf9ad5b594d7cadff11f9a4ec7181c0dbdce14919a1af50c1a901dd69b1a5d3f35abe51f9ca82f729f352ac8873d0b0f225e4bdd45a213b350
37 DIST gentoo-kernel-5.4.148-1.x86.xpak 53159913 BLAKE2B 7269d52529bf78b43819ffaf435d129ad6982f8046239a15da5c6df359feada8793fed93b206e3aa031817fbb235d221d7468601f7091f40cf5bdd16c30100c9 SHA512 07c4e3b73122ac915695858891fb408ed17ba11ed8e6adf1e17b8eda6ec4112ef293db5154067dfbfd8d32ec6b1380797f87263272c1b16b6d1044476e054a05
38
39 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.16.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.16.ebuild
40 new file mode 100644
41 index 00000000000..c31025c5760
42 --- /dev/null
43 +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.16.ebuild
44 @@ -0,0 +1,117 @@
45 +# Copyright 2020-2021 Gentoo Authors
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=7
49 +
50 +inherit kernel-install toolchain-funcs
51 +
52 +MY_P=linux-${PV%.*}
53 +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 ))
54 +BINPKG=${P/-bin/}-1
55 +
56 +DESCRIPTION="Pre-built Linux kernel with genpatches"
57 +HOMEPAGE="https://www.kernel.org/"
58 +SRC_URI+="
59 + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
60 + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
61 + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
62 + amd64? (
63 + https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
64 + -> ${BINPKG}.amd64.xpak
65 + )
66 + x86? (
67 + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
68 + -> ${BINPKG}.x86.xpak
69 + )"
70 +S=${WORKDIR}
71 +
72 +LICENSE="GPL-2"
73 +KEYWORDS="~amd64 ~x86"
74 +
75 +RDEPEND="
76 + !sys-kernel/gentoo-kernel:${SLOT}"
77 +PDEPEND="
78 + >=virtual/dist-kernel-${PV}"
79 +BDEPEND="
80 + sys-devel/bc
81 + sys-devel/flex
82 + virtual/libelf
83 + virtual/yacc"
84 +
85 +QA_PREBUILT='*'
86 +
87 +KV_LOCALVERSION='-gentoo-dist'
88 +KPV=${PV}${KV_LOCALVERSION}
89 +
90 +src_unpack() {
91 + default
92 + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak"
93 + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak")
94 + eend ${?} || die "Unpacking ${BINPKG} failed"
95 +}
96 +
97 +src_prepare() {
98 + local PATCHES=(
99 + # meh, genpatches have no directory
100 + "${WORKDIR}"/*.patch
101 + )
102 + cd "${MY_P}" || die
103 + default
104 +}
105 +
106 +src_configure() {
107 + # force ld.bfd if we can find it easily
108 + local LD="$(tc-getLD)"
109 + if type -P "${LD}.bfd" &>/dev/null; then
110 + LD+=.bfd
111 + fi
112 +
113 + tc-export_build_env
114 + local makeargs=(
115 + V=1
116 +
117 + HOSTCC="$(tc-getBUILD_CC)"
118 + HOSTCXX="$(tc-getBUILD_CXX)"
119 + HOSTCFLAGS="${BUILD_CFLAGS}"
120 + HOSTLDFLAGS="${BUILD_LDFLAGS}"
121 +
122 + CROSS_COMPILE=${CHOST}-
123 + AS="$(tc-getAS)"
124 + CC="$(tc-getCC)"
125 + LD="${LD}"
126 + AR="$(tc-getAR)"
127 + NM="$(tc-getNM)"
128 + STRIP=":"
129 + OBJCOPY="$(tc-getOBJCOPY)"
130 + OBJDUMP="$(tc-getOBJDUMP)"
131 +
132 + # we need to pass it to override colliding Gentoo envvar
133 + ARCH=$(tc-arch-kernel)
134 +
135 + O="${WORKDIR}"/modprep
136 + )
137 +
138 + mkdir modprep || die
139 + cp "usr/src/linux-${KPV}/.config" modprep/ || die
140 + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
141 +}
142 +
143 +src_test() {
144 + kernel-install_test "${KPV}" \
145 + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
146 + "lib/modules/${KPV}"
147 +}
148 +
149 +src_install() {
150 + mv lib usr "${ED}"/ || die
151 +
152 + # strip out-of-source build stuffs from modprep
153 + # and then copy built files
154 + find modprep -type f '(' \
155 + -name Makefile -o \
156 + -name '*.[ao]' -o \
157 + '(' -name '.*' -a -not -name '.config' ')' \
158 + ')' -delete || die
159 + rm modprep/source || die
160 + cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
161 +}