summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-18 16:44:38 +0100
committerSam James <sam@gentoo.org>2021-06-18 16:44:38 +0100
commitce54638d56e06529f4ecaa9551beca76641cfb91 (patch)
treea9aa2a07659351fc1652a1758b0c89747ee026b0
parentsys-kernel/gentoo-kernel-bin: bump to 5.4.126 for arm64 (diff)
downloadgentoo-ce54638d56e06529f4ecaa9551beca76641cfb91.tar.gz
gentoo-ce54638d56e06529f4ecaa9551beca76641cfb91.tar.bz2
gentoo-ce54638d56e06529f4ecaa9551beca76641cfb91.zip
sys-kernel/gentoo-kernel-bin: bump to 5.10.44 for arm64
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest1
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44-r1.ebuild114
2 files changed, 115 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 9a6c8138e03f..5dd41d42c5a3 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -23,6 +23,7 @@ DIST gentoo-kernel-5.10.43-1.amd64.xpak 65520009 BLAKE2B 9d71c795fe52691e17dccad
DIST gentoo-kernel-5.10.43-1.arm64.xpak 61590121 BLAKE2B d55c9cb746f754ecdf1c12cd814dee77c444a86f94c9bfe15a566c7f7ee2e19b8674c5ac0fecc5042137de87e7af7102ffa4721ab282eaed3584ab46c99f669d SHA512 e8f84d16e506786be5fbaef1171283864292899338ec44e0408d960dd56a8cb87b91282879e39cb7e5dc0756aa3d76b551eb157b0f46f72b6cc119853450f42e
DIST gentoo-kernel-5.10.43-1.x86.xpak 57258100 BLAKE2B 09b65aadff24fa8997c3e63a5935d228e67292293fbd664c833391708a073781954c8676ae59cf61b19af9b25ccf248297405fc96bbda296da77073fb74dd623 SHA512 08bb9c6cd4d62fd75407877e793812906210e8cb9f0f71c4f9ea8d81f62679461511df601fbf78618a1654b10d3784aba3a242afd68f056631537daddfeb741d
DIST gentoo-kernel-5.10.44-1.amd64.xpak 65489526 BLAKE2B 705a0b9ed1fb7d38f0cf32b1c8babcb62db42ccdd389294dc107a81ae466abac01666715f547ddfd44e97493ecbd37b57c0a2490e776faf6da6a1dfa5a4b9a79 SHA512 0d3a14cc22704eb811025cc1c26ecffac5c6cf4c7b9b074b10e70a7430fc33858a0644f6e79abf311d560a131d673fd3d02188f1c9f80e4e8f3c9e192b50e091
+DIST gentoo-kernel-5.10.44-1.arm64.xpak 59235832 BLAKE2B def6fe6ff8574d07c43032b7836fac56db19069aaef79455da649e62036a3d9e28f8fe49299eda9c9662c11317f96396de74f91d52ac6074e37ded58b532921e SHA512 382f164b45c918ed340cdc81c93d98750e85e5d4eb5c8cc0f2a76d782352a73a9c3bc4472cf535a85f9e39651495e6725100e4b0170e53e693c31b3c5a80bcef
DIST gentoo-kernel-5.10.44-1.x86.xpak 57201843 BLAKE2B 860cf1f1243722b9f446cb56dd5ff4a4a750f154d468d0b418af8d4d9775cfd5ea0e1bbc2a5232b4c5a1321b0643cd2d89c0625c506c23b3f7149701debeccc3 SHA512 a46300fdb0230f52765fe683afb6f447b8f58169a242bcf5edeb4f5de501d6eca5effb7b952c1339b25c24a39262d085429670a470756535d1f3ccc4b648b357
DIST gentoo-kernel-5.12.10-1.amd64.xpak 66370289 BLAKE2B 74f9046d711902b5cb650c0c1eac07f4dab42037fc93ee3f9ec70b14a708d1244ec65d54e11e1ab169384bdf2663816dba33e58d22853f30133341296ce65db8 SHA512 e42a2d5122d17a6abfe75c17585e96d0fcb87ab21dd3bfbddce6f22c7b73b66daf358b642c4b3658d2d5e43a3c586da5bd48e90e00520ec2cbd696493510f410
DIST gentoo-kernel-5.12.10-1.arm64.xpak 62567249 BLAKE2B e20ff0b59f3f0781cbb7d1a2eb290e46cdb8fc0f4aa189bb70f7ad5d02b54a5a30bdb3d91c779bfdb04daf01efe5c85376c4a3faa52cead80743aae588993e26 SHA512 ee5daf6872844476018ddab8445e3dbd25d1585a8cd2b6195028b8f8690cb262befcfdef3e0267a422f30c4ca0036dd6c985331cbacdc0c8e79f9c7c9755f4ba
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44-r1.ebuild
new file mode 100644
index 000000000000..b63276300c50
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.44-r1.ebuild
@@ -0,0 +1,114 @@
+# 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##*.} + 3 ))
+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
+}