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: Sun, 11 Jul 2021 20:57:03
Message-Id: 1626037011.77c0009539e49f867177cca56103044d482de6fb.mgorny@gentoo
1 commit: 77c0009539e49f867177cca56103044d482de6fb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 11 19:57:07 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 11 20:56:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77c00095
7
8 sys-kernel/gentoo-kernel-bin: Bump to 5.12.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.12.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 3c57285fb59..24a8f53863e 100644
18 --- a/sys-kernel/gentoo-kernel-bin/Manifest
19 +++ b/sys-kernel/gentoo-kernel-bin/Manifest
20 @@ -30,6 +30,8 @@ DIST genpatches-5.12-17.base.tar.xz 738268 BLAKE2B 61336204dbaf80bb44c29927ff59e
21 DIST genpatches-5.12-17.extras.tar.xz 3412 BLAKE2B abbc0dbb59a91d6733f5c56918aee4d0bedfaa9f87687979f0b2b01778e2a934396c5b797050d1d05e52c2432f6fd32891176b4cb64709273ba810a1b7166884 SHA512 d36015ad8ee2bf8efb5c0b0786a661326d7833ab1d185e9e06791474b03036022bc6d6d1a22c1d4d086922b9db43ecec97a8dd5ff9daafd591a7b3092f839e5f
22 DIST genpatches-5.12-18.base.tar.xz 738968 BLAKE2B cf0e62aad4cbe5c00d09a47e901761762934f34257e7064e65e9e9a29203c80a88ce31d55bff7156d8a09070dd67c79c383b0f1516757fbec1f5c722e844bff4 SHA512 31283759d7bb2a9b674489f4074a3027d52b5276df9e574d2d040007cdf679237ced0466724ddd81cb20714c7676f12b09f7c0014c1335227dc3bcc0358da701
23 DIST genpatches-5.12-18.extras.tar.xz 3420 BLAKE2B 783c9491317343e26eb9a25b48486c8b9c47f80e2c3048cea50e17ef1e6dcd9e5ab40a3f02bd02b5949933ca6634ffaaeb507416534ca35308ba35e5bbcfcff3 SHA512 53f513fe4ab0bae00b69055f8962cb8200ea90bdfba9c4ab95bdcb58f6654f5739438a6540a18a530e8160375c8d5ee2a767054b509c3a79dbda02721857403a
24 +DIST genpatches-5.12-19.base.tar.xz 744220 BLAKE2B 63163732eeff70cf0eb344950247f69992145a4e7cbbe966eadaffda3be3f0e645b3d7cfc9c2284156385e761c02613ceec331b777b282da77b3d169cf3fb807 SHA512 8689a4f3fec6c29a88f7389296659579c13a2b664b94dc8147bd1b266019c310c30d19198db01feb60a421b1362aa15e72feb4cb19ac2ac2136ce12c42a21915
25 +DIST genpatches-5.12-19.extras.tar.xz 3420 BLAKE2B dd43bf044652067aec7069cc2e8c1b9441ac06750b64dfd355ad53221df08fb68981363b9749a6f93ebfe81e728ad8791f7a5ad2e9d4557da6d2a1904efc05cd SHA512 501379a816043c5bc0c4724a999957d8c5b4cca214d12e2d64577ff24943230e6ae5e60512b634a5507ea5f8823e7511b20a5c099bab149309045e0fd17c4b24
26 DIST genpatches-5.4-123.base.tar.xz 3488228 BLAKE2B 0fe5c3056c3cb060f4921e3b7a4046e03e4e777d033619f0496eda68c645c6209fb07713a4bc2565000f9c17e6203a8bc5392fc597dd49167bb0348988b53026 SHA512 e71b8f9d622d3ea2fa8165a39a27240ac007d899d7324c60240221d7761c1287f14b631b074536460702922b8daf00bc2714358aaf7f69ac257af7d5d5b18bd1
27 DIST genpatches-5.4-123.extras.tar.xz 1772 BLAKE2B da9bc0d9513d010364506850d1c23d13e1a1ef8c4cb8d60e3430d12f4cc2ea87a74643ba9fa1a061eabdee9985b1931aab1b2587ee26bec9b2cf165b90fe83e5 SHA512 ff3b417825ba200b32abf888b6cf6e8d754526e57a30c06fbe4f961c84f67cd921b93b9848fc6b49f120b4cf8ddba9284755da73869db35327af7549d63f3cd1
28 DIST genpatches-5.4-128.base.tar.xz 3571424 BLAKE2B a58c2b8f20730c3357ce30cbc8b24f0609bd7ca2a8f5d37780cfbe4edb560fa49bcf1925ec40dbf61aebfe9a87be0f35ade4b999509420eb0caf5731ce649e89 SHA512 c84d65acdc4274b528306af958b0c72851fdce008c9ed6f78965ea22f09f8668b6075cfda9101b2e7a7bc55ccea64491000b1aede8cffa4ad927c7c1bb003489
29 @@ -85,6 +87,8 @@ DIST gentoo-kernel-5.12.14-1.x86.xpak 58064174 BLAKE2B b614ad928d99685a4b9348215
30 DIST gentoo-kernel-5.12.15-1.amd64.xpak 66395917 BLAKE2B b77c5e26863dc1c10da3c82904ef035f93c7bbbf60925f7c91836b7cfbb3d32335a8cad78a9b1a90a6d462f34fb798c393f7f992c54ffe6e1a5391b1e63652a4 SHA512 3efe58c6e9d948981fe51fc93ceb73de2f9a049cd396c62e743b3c5033eaf60b05d3100b2377060d1ba6245118281a49447bb5404dd4cc12b616a682fc4c252a
31 DIST gentoo-kernel-5.12.15-1.arm64.xpak 59971350 BLAKE2B 4231ed09d6efd9acae82078d259bef241223770fc95c24145a940ff3e4d712cfe52677a358d4fe26a6bf74129feaa3abad67e2d17eedd1e04f34758fd7ac5e1e SHA512 9eb582dab725c1716b777986e0adf90b353ca481763b27c65240d6b4d8e52d54ca394848b3ff7977651606341e39fbc19b0002caaa8174916f298bfe480087d9
32 DIST gentoo-kernel-5.12.15-1.x86.xpak 58062337 BLAKE2B 2ea33f13f41f6153e117dc99fdb805ff6a24071b6231730ff159ea2597e203655e5d6daa632f4fc8ace6444d8ffec7e624d222500b32e7b33035ac5a56b3efcb SHA512 62cae2c8e1fb42b3cf2ab48ade6fcbffcc03fe3b48c0d00fa7f2d3229e43a615887907e70b3219c3b040061134134f95c11c9b2d33a1f0ae568df7ec47507395
33 +DIST gentoo-kernel-5.12.16-1.amd64.xpak 66344196 BLAKE2B bf0ee9d5f5186527a829b8c040167c176f5a26aeb24fe31522349b161ebb2e5007c0c993c6a99a1d224713522f82c2c235d0b40466952c2afccacddf874444ed SHA512 3f2d4b25c2978a54ed5ce384a902a782c757dd2edd627a08122d9d85c7e89f6d642ade287c66f751d5bae099a708c4852f3b853991ebbcb1dafad9162fcdbf56
34 +DIST gentoo-kernel-5.12.16-1.x86.xpak 58066447 BLAKE2B 34d639113540707e4fe2f104f7672b9f0447bc19c46b547b3ba0f2b21b6f58594bfe0cc3d63f382ea51b69a71b571cfd427263b2e0d97c9308d122e6f1639675 SHA512 49f9485f3ed2c85d592f668753c352d0095e555e2f1a72292d224c19868b0b3717afde7bbf7ab87b5c1d8985280059098d5b3931c3c904e34cd740b53bb88325
35 DIST gentoo-kernel-5.4.120-1.amd64.xpak 61385726 BLAKE2B 4eda28bcfaaeb8caaa0d74c6fb37b203528ccd9853c775bcd40dc9f4698edc282a5c70602b42945b98840b1ea3d6b0d620b7726c65c83c16363e1c7542822cc1 SHA512 c36c7c5f309dea87df6af0567929f7fe09656ac49e33fd7edca62522aa45656e53d717dca5a9702b246446f25d7c3249ef0fdae8554f71cedf90339bc8b620eb
36 DIST gentoo-kernel-5.4.120-1.arm64.xpak 56380077 BLAKE2B d9d0a98d00b17925c852b75875ba4eb373624cd1fc35df60aa50796e81facb5067146f3008313b5776aae7b251ae6559118cb36f1480813073341dfa37de01ac SHA512 c207f79b59ae38ab58a2f7341c8d21e3fc388eb949417a033d4dfd9fb0a7acdcac4a1d5ce8528708e7a2dfba1b241f0cf03235b5c2fb9dd1c930a36a8bebd2f5
37 DIST gentoo-kernel-5.4.120-1.x86.xpak 53191725 BLAKE2B 816d230d0755058eb5ff090977e607b5d077ff5d49766da19416593aafaa529becb742abe6ef59f0212e64affe95e45a313559b5741257c05826be539e9a849f SHA512 86ce9f57c0b14f6edf3403fe2868d7c32f7d55ffa714ffeecd4c3830eb88633aaa71455e8a962a2ace0363981b2b820b4fab50ed10893ccf7470945c6e31a196
38
39 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.16.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.16.ebuild
40 new file mode 100644
41 index 00000000000..550411ea18c
42 --- /dev/null
43 +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.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##*.} + 3 ))
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 +}