1 |
commit: ba971cfbe54c535e06839bf6d70ccbec127f574f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 11:52:08 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 11:52:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba971cfb |
7 |
|
8 |
sys-kernel/gentoo-kernel-bin: bump to 5.12.15-r1 for arm64 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-kernel/gentoo-kernel-bin/Manifest | 1 + |
13 |
.../gentoo-kernel-bin-5.12.15-r1.ebuild | 115 +++++++++++++++++++++ |
14 |
2 files changed, 116 insertions(+) |
15 |
|
16 |
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest |
17 |
index 9812742063c..3c57285fb59 100644 |
18 |
--- a/sys-kernel/gentoo-kernel-bin/Manifest |
19 |
+++ b/sys-kernel/gentoo-kernel-bin/Manifest |
20 |
@@ -83,6 +83,7 @@ DIST gentoo-kernel-5.12.14-1.amd64.xpak 66384986 BLAKE2B 42979ab70fc69caf68d60bc |
21 |
DIST gentoo-kernel-5.12.14-1.arm64.xpak 59994823 BLAKE2B c36896fc4771218013fff34d504507a0312ccae2c76e486396e6c6fec39d79a3e38bf056f355188ea78f45a249e3798be1943295ebb07e2af77ef8b73ad7f9fe SHA512 f2bad60254ee49d7439a789756ccf064cbdcd9e8e8e298edc4c75cdf2a03ff3c5827880167139e4334457af7062c55fde37e8ea92a728e16c224f424f0a9fba3 |
22 |
DIST gentoo-kernel-5.12.14-1.x86.xpak 58064174 BLAKE2B b614ad928d99685a4b93482155e1bfdaec106c868fc7e619dee0fe9c68d101ceabb16cb203555fac00332f19dda028a30b5aece8d046ed24ae3948efbb081046 SHA512 664f8db652b124b4db2ebcf331d295529f2832d033b81e21a0517da5c002bb6c96dfba77c389af87641174468f4693332c1d0ca2d295e69b7229d068613ce332 |
23 |
DIST gentoo-kernel-5.12.15-1.amd64.xpak 66395917 BLAKE2B b77c5e26863dc1c10da3c82904ef035f93c7bbbf60925f7c91836b7cfbb3d32335a8cad78a9b1a90a6d462f34fb798c393f7f992c54ffe6e1a5391b1e63652a4 SHA512 3efe58c6e9d948981fe51fc93ceb73de2f9a049cd396c62e743b3c5033eaf60b05d3100b2377060d1ba6245118281a49447bb5404dd4cc12b616a682fc4c252a |
24 |
+DIST gentoo-kernel-5.12.15-1.arm64.xpak 59971350 BLAKE2B 4231ed09d6efd9acae82078d259bef241223770fc95c24145a940ff3e4d712cfe52677a358d4fe26a6bf74129feaa3abad67e2d17eedd1e04f34758fd7ac5e1e SHA512 9eb582dab725c1716b777986e0adf90b353ca481763b27c65240d6b4d8e52d54ca394848b3ff7977651606341e39fbc19b0002caaa8174916f298bfe480087d9 |
25 |
DIST gentoo-kernel-5.12.15-1.x86.xpak 58062337 BLAKE2B 2ea33f13f41f6153e117dc99fdb805ff6a24071b6231730ff159ea2597e203655e5d6daa632f4fc8ace6444d8ffec7e624d222500b32e7b33035ac5a56b3efcb SHA512 62cae2c8e1fb42b3cf2ab48ade6fcbffcc03fe3b48c0d00fa7f2d3229e43a615887907e70b3219c3b040061134134f95c11c9b2d33a1f0ae568df7ec47507395 |
26 |
DIST gentoo-kernel-5.4.120-1.amd64.xpak 61385726 BLAKE2B 4eda28bcfaaeb8caaa0d74c6fb37b203528ccd9853c775bcd40dc9f4698edc282a5c70602b42945b98840b1ea3d6b0d620b7726c65c83c16363e1c7542822cc1 SHA512 c36c7c5f309dea87df6af0567929f7fe09656ac49e33fd7edca62522aa45656e53d717dca5a9702b246446f25d7c3249ef0fdae8554f71cedf90339bc8b620eb |
27 |
DIST gentoo-kernel-5.4.120-1.arm64.xpak 56380077 BLAKE2B d9d0a98d00b17925c852b75875ba4eb373624cd1fc35df60aa50796e81facb5067146f3008313b5776aae7b251ae6559118cb36f1480813073341dfa37de01ac SHA512 c207f79b59ae38ab58a2f7341c8d21e3fc388eb949417a033d4dfd9fb0a7acdcac4a1d5ce8528708e7a2dfba1b241f0cf03235b5c2fb9dd1c930a36a8bebd2f5 |
28 |
|
29 |
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.15-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.15-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..9cc54d1c175 |
32 |
--- /dev/null |
33 |
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.15-r1.ebuild |
34 |
@@ -0,0 +1,115 @@ |
35 |
+# Copyright 2020-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit kernel-install toolchain-funcs |
41 |
+ |
42 |
+MY_P=linux-${PV%.*} |
43 |
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) |
44 |
+BINPKG=${P/-bin/}-1 |
45 |
+ |
46 |
+DESCRIPTION="Pre-built Linux kernel with genpatches" |
47 |
+HOMEPAGE="https://www.kernel.org/" |
48 |
+SRC_URI+=" |
49 |
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz |
50 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz |
51 |
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz |
52 |
+ arm64? ( |
53 |
+ https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak |
54 |
+ -> ${BINPKG}.arm64.xpak |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+S=${WORKDIR} |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+KEYWORDS="~arm64" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ !sys-kernel/gentoo-kernel:${SLOT}" |
65 |
+PDEPEND=" |
66 |
+ >=virtual/dist-kernel-${PV}" |
67 |
+BDEPEND=" |
68 |
+ sys-devel/bc |
69 |
+ sys-devel/flex |
70 |
+ virtual/libelf |
71 |
+ virtual/yacc" |
72 |
+ |
73 |
+QA_PREBUILT='*' |
74 |
+ |
75 |
+KV_LOCALVERSION='-gentoo-dist' |
76 |
+KPV=${PV}${KV_LOCALVERSION} |
77 |
+ |
78 |
+src_unpack() { |
79 |
+ default |
80 |
+ ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" |
81 |
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak") |
82 |
+ eend ${?} || die "Unpacking ${BINPKG} failed" |
83 |
+} |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ local PATCHES=( |
87 |
+ # meh, genpatches have no directory |
88 |
+ "${WORKDIR}"/*.patch |
89 |
+ ) |
90 |
+ cd "${MY_P}" || die |
91 |
+ default |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ # force ld.bfd if we can find it easily |
96 |
+ local LD="$(tc-getLD)" |
97 |
+ if type -P "${LD}.bfd" &>/dev/null; then |
98 |
+ LD+=.bfd |
99 |
+ fi |
100 |
+ |
101 |
+ tc-export_build_env |
102 |
+ local makeargs=( |
103 |
+ V=1 |
104 |
+ |
105 |
+ HOSTCC="$(tc-getBUILD_CC)" |
106 |
+ HOSTCXX="$(tc-getBUILD_CXX)" |
107 |
+ HOSTCFLAGS="${BUILD_CFLAGS}" |
108 |
+ HOSTLDFLAGS="${BUILD_LDFLAGS}" |
109 |
+ |
110 |
+ CROSS_COMPILE=${CHOST}- |
111 |
+ AS="$(tc-getAS)" |
112 |
+ CC="$(tc-getCC)" |
113 |
+ LD="${LD}" |
114 |
+ AR="$(tc-getAR)" |
115 |
+ NM="$(tc-getNM)" |
116 |
+ STRIP=":" |
117 |
+ OBJCOPY="$(tc-getOBJCOPY)" |
118 |
+ OBJDUMP="$(tc-getOBJDUMP)" |
119 |
+ |
120 |
+ # we need to pass it to override colliding Gentoo envvar |
121 |
+ ARCH=$(tc-arch-kernel) |
122 |
+ |
123 |
+ O="${WORKDIR}"/modprep |
124 |
+ ) |
125 |
+ |
126 |
+ mkdir modprep || die |
127 |
+ cp "usr/src/linux-${KPV}/.config" modprep/ || die |
128 |
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare |
129 |
+} |
130 |
+ |
131 |
+src_test() { |
132 |
+ kernel-install_test "${KPV}" \ |
133 |
+ "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ |
134 |
+ "lib/modules/${KPV}" |
135 |
+} |
136 |
+ |
137 |
+src_install() { |
138 |
+ mv lib usr "${ED}"/ || die |
139 |
+ |
140 |
+ # strip out-of-source build stuffs from modprep |
141 |
+ # and then copy built files |
142 |
+ find modprep -type f '(' \ |
143 |
+ -name Makefile -o \ |
144 |
+ -name '*.[ao]' -o \ |
145 |
+ '(' -name '.*' -a -not -name '.config' ')' \ |
146 |
+ ')' -delete || die |
147 |
+ rm modprep/source || die |
148 |
+ cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die |
149 |
+} |