summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-14 04:04:06 +0100
committerSam James <sam@gentoo.org>2021-07-14 04:04:34 +0100
commitd39138717d36160d7f6d532ea245cc89650c3129 (patch)
treedfd52bf7c3be7931f8ab10777a6435013651db63
parentsys-kernel/gentoo-kernel-bin: bump to 5.10.49-r1 for arm64 (diff)
downloadgentoo-d39138717d36160d7f6d532ea245cc89650c3129.tar.gz
gentoo-d39138717d36160d7f6d532ea245cc89650c3129.tar.bz2
gentoo-d39138717d36160d7f6d532ea245cc89650c3129.zip
sys-kernel/gentoo-kernel-bin: bump to 5.12.16-r1 for arm64
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest3
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.16-r1.ebuild115
2 files changed, 118 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 8f35d83fdc1..798450ccc00 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.10-54.base.tar.xz 1652540 BLAKE2B 37ecda0a4f76784572985be5073e
DIST genpatches-5.10-54.extras.tar.xz 3416 BLAKE2B 3602707190ed04f62c4b2e8e0e765a53cf436b437373e71b6afd392cf05a73ac9e24f89293aac17c3730cdd696485ebf9d98161b248c9acafbfbe0b0c2db8ab8 SHA512 e4aad3f799dbcf00f813e39c8b9b355f17914a33d1ef422b3e7ee48c48e77a69925cc5664f0f171d1a632f622417b9d7ec88e56b1575c8e5f82af94f64337f42
DIST genpatches-5.12-16.base.tar.xz 707164 BLAKE2B 05331662b6c219900a5d70aa3f9030e82cff6ca09de9645e178f5976daf8003335ac2a9163e405282096bba6057ca645f81fddda41eb7b10f1125524b4cadcc5 SHA512 dc8efddc386fc5350802edb5f95f62f61a8d3c2033a0efa0fe9450ff0ba84a65cbb4482a0de9fea6f67200fb938f3d73c27124f9bcf706485f32f25cf8e89cd9
DIST genpatches-5.12-16.extras.tar.xz 3412 BLAKE2B d0e429e2c9e1a2733a216e57c32c73f55285edc74f801017261925f246e44148c58cd8745caa6afc9cafa9c090d01206acc3cb96dc0ab260a834a0b3dd0e8918 SHA512 24a1f8b2f2993c157fa0efe5649b7494084d925f8665a8c0727ad431da00fcc8bfa7e00ac1d2b308b1297c1c202eac687d7539999eed38f44e71a9cb94327ef6
+DIST genpatches-5.12-17.base.tar.xz 738268 BLAKE2B 61336204dbaf80bb44c29927ff59ed6ccd6f29a1a139132364aa2ad7c89b0af4df6df75e800cc14b444edb9897f4474015369b9cea878fef487c8a3e2123a715 SHA512 f4b5773b9885817889895725ece76d50da95439769d96fd4058d690937027ee6baffec62941b15df04b7e12df29d1177257daba39c41418e2f2a400565aacaf9
+DIST genpatches-5.12-17.extras.tar.xz 3412 BLAKE2B abbc0dbb59a91d6733f5c56918aee4d0bedfaa9f87687979f0b2b01778e2a934396c5b797050d1d05e52c2432f6fd32891176b4cb64709273ba810a1b7166884 SHA512 d36015ad8ee2bf8efb5c0b0786a661326d7833ab1d185e9e06791474b03036022bc6d6d1a22c1d4d086922b9db43ecec97a8dd5ff9daafd591a7b3092f839e5f
DIST genpatches-5.12-18.base.tar.xz 738968 BLAKE2B cf0e62aad4cbe5c00d09a47e901761762934f34257e7064e65e9e9a29203c80a88ce31d55bff7156d8a09070dd67c79c383b0f1516757fbec1f5c722e844bff4 SHA512 31283759d7bb2a9b674489f4074a3027d52b5276df9e574d2d040007cdf679237ced0466724ddd81cb20714c7676f12b09f7c0014c1335227dc3bcc0358da701
DIST genpatches-5.12-18.extras.tar.xz 3420 BLAKE2B 783c9491317343e26eb9a25b48486c8b9c47f80e2c3048cea50e17ef1e6dcd9e5ab40a3f02bd02b5949933ca6634ffaaeb507416534ca35308ba35e5bbcfcff3 SHA512 53f513fe4ab0bae00b69055f8962cb8200ea90bdfba9c4ab95bdcb58f6654f5739438a6540a18a530e8160375c8d5ee2a767054b509c3a79dbda02721857403a
DIST genpatches-5.12-19.base.tar.xz 744220 BLAKE2B 63163732eeff70cf0eb344950247f69992145a4e7cbbe966eadaffda3be3f0e645b3d7cfc9c2284156385e761c02613ceec331b777b282da77b3d169cf3fb807 SHA512 8689a4f3fec6c29a88f7389296659579c13a2b664b94dc8147bd1b266019c310c30d19198db01feb60a421b1362aa15e72feb4cb19ac2ac2136ce12c42a21915
@@ -33,6 +35,7 @@ DIST gentoo-kernel-5.12.15-1.amd64.xpak 66395917 BLAKE2B b77c5e26863dc1c10da3c82
DIST gentoo-kernel-5.12.15-1.arm64.xpak 59971350 BLAKE2B 4231ed09d6efd9acae82078d259bef241223770fc95c24145a940ff3e4d712cfe52677a358d4fe26a6bf74129feaa3abad67e2d17eedd1e04f34758fd7ac5e1e SHA512 9eb582dab725c1716b777986e0adf90b353ca481763b27c65240d6b4d8e52d54ca394848b3ff7977651606341e39fbc19b0002caaa8174916f298bfe480087d9
DIST gentoo-kernel-5.12.15-1.x86.xpak 58062337 BLAKE2B 2ea33f13f41f6153e117dc99fdb805ff6a24071b6231730ff159ea2597e203655e5d6daa632f4fc8ace6444d8ffec7e624d222500b32e7b33035ac5a56b3efcb SHA512 62cae2c8e1fb42b3cf2ab48ade6fcbffcc03fe3b48c0d00fa7f2d3229e43a615887907e70b3219c3b040061134134f95c11c9b2d33a1f0ae568df7ec47507395
DIST gentoo-kernel-5.12.16-1.amd64.xpak 66344196 BLAKE2B bf0ee9d5f5186527a829b8c040167c176f5a26aeb24fe31522349b161ebb2e5007c0c993c6a99a1d224713522f82c2c235d0b40466952c2afccacddf874444ed SHA512 3f2d4b25c2978a54ed5ce384a902a782c757dd2edd627a08122d9d85c7e89f6d642ade287c66f751d5bae099a708c4852f3b853991ebbcb1dafad9162fcdbf56
+DIST gentoo-kernel-5.12.16-1.arm64.xpak 59977017 BLAKE2B 86b31e93fc1f2314ba095632ee257a4dc4daa6eb98a64d6bcf4c18393f2b050bfba7fd7407b637e7d8e1a20eb85fca1b9d5f84e2fe74f04dbdbc3acc01140975 SHA512 667e8d094835b606d7871843dac991fec62331edd7ef0bc03c9f2dc2bb7183c0265a831f2076b23ffbc3a008e677368a369a815f04f51bc2529505fb3731caa9
DIST gentoo-kernel-5.12.16-1.x86.xpak 58066447 BLAKE2B 34d639113540707e4fe2f104f7672b9f0447bc19c46b547b3ba0f2b21b6f58594bfe0cc3d63f382ea51b69a71b571cfd427263b2e0d97c9308d122e6f1639675 SHA512 49f9485f3ed2c85d592f668753c352d0095e555e2f1a72292d224c19868b0b3717afde7bbf7ab87b5c1d8985280059098d5b3931c3c904e34cd740b53bb88325
DIST gentoo-kernel-5.4.129-1.amd64.xpak 61346649 BLAKE2B 37d29b604a69fd8bc84c41bc619bef982d10cf31d7220ff79bb853a674eb594418338748968042d19352458ba61015bf631c8f36f3a1a6674bcaf228dfaac240 SHA512 30601d1b125d1bf1999e49f817d8a553f387c512a85cd2921e201e7e06b85b90148aef276fdcdfa50f5da477a067bae52af5c400f1cb596f9fec21bb3162db44
DIST gentoo-kernel-5.4.129-1.arm64.xpak 56131771 BLAKE2B 5567df5a41ccd99aca489b8b35718eefdfc9ddb0d9bbe6158abb32c59490278c6e1456ed021f9a08f7bb9b0c206fe503ab31cedadf0276a01f7fbe56e8ea8270 SHA512 8be57abcb7533b8f47a3bc11302e3f9b0ff8c33f67e6830210030a2caf3215b708856c899ecb7dddf9af707e39594f035a21e503c98a909ca1ddfb156d121554
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.16-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.16-r1.ebuild
new file mode 100644
index 00000000000..9cc54d1c175
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.16-r1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit kernel-install toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with genpatches"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI+="
+ https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
+ arm64? (
+ https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.arm64.xpak
+ )
+"
+
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+KEYWORDS="~arm64"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel:${SLOT}"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}"
+BDEPEND="
+ sys-devel/bc
+ sys-devel/flex
+ virtual/libelf
+ virtual/yacc"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+src_unpack() {
+ default
+ ebegin "Unpacking ${BINPKG}.${ARCH}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak")
+ eend ${?} || die "Unpacking ${BINPKG} failed"
+}
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ cd "${MY_P}" || die
+ default
+}
+
+src_configure() {
+ # force ld.bfd if we can find it easily
+ local LD="$(tc-getLD)"
+ if type -P "${LD}.bfd" &>/dev/null; then
+ LD+=.bfd
+ fi
+
+ tc-export_build_env
+ local makeargs=(
+ V=1
+
+ HOSTCC="$(tc-getBUILD_CC)"
+ HOSTCXX="$(tc-getBUILD_CXX)"
+ HOSTCFLAGS="${BUILD_CFLAGS}"
+ HOSTLDFLAGS="${BUILD_LDFLAGS}"
+
+ CROSS_COMPILE=${CHOST}-
+ AS="$(tc-getAS)"
+ CC="$(tc-getCC)"
+ LD="${LD}"
+ AR="$(tc-getAR)"
+ NM="$(tc-getNM)"
+ STRIP=":"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ OBJDUMP="$(tc-getOBJDUMP)"
+
+ # we need to pass it to override colliding Gentoo envvar
+ ARCH=$(tc-arch-kernel)
+
+ O="${WORKDIR}"/modprep
+ )
+
+ mkdir modprep || die
+ cp "usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "lib/modules/${KPV}"
+}
+
+src_install() {
+ mv lib usr "${ED}"/ || die
+
+ # strip out-of-source build stuffs from modprep
+ # and then copy built files
+ find modprep -type f '(' \
+ -name Makefile -o \
+ -name '*.[ao]' -o \
+ '(' -name '.*' -a -not -name '.config' ')' \
+ ')' -delete || die
+ rm modprep/source || die
+ cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
+}