summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-05-28 19:08:05 +0000
committerSam James <sam@gentoo.org>2021-05-28 19:09:03 +0000
commitb70a3acbd629f993fcad5b5bf53b5fb061d2c2cf (patch)
tree0ab69ec3fedb313bc8f029ab2209ae43e77348a1 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: bump to 5.10.40 for arm64 (diff)
downloadgentoo-b70a3acbd629f993fcad5b5bf53b5fb061d2c2cf.tar.gz
gentoo-b70a3acbd629f993fcad5b5bf53b5fb061d2c2cf.tar.bz2
gentoo-b70a3acbd629f993fcad5b5bf53b5fb061d2c2cf.zip
sys-kernel/gentoo-kernel-bin: bump to 5.12.7 for arm64
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest1
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7-r1.ebuild115
2 files changed, 116 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 9e628733a39b..b431f457b797 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -39,6 +39,7 @@ DIST gentoo-kernel-5.12.6-1.amd64.xpak 66353212 BLAKE2B 978e03073a562ca7b73f2e82
DIST gentoo-kernel-5.12.6-1.arm64.xpak 60212554 BLAKE2B 5cd63259c7797c3f65c4dca4f845cc967097c35428ce80581bdd9be6d339651ea11ef79963ae0ae3b56897f218e31493b7c28d76a11d31fae87ae7ea44042523 SHA512 d92e8fea3c8ec1a7f238c7a40f982af3ec4592d7a625185e6b44d4881224c77bf58483b21ccb0ceffb279a954f7aaf1f173ab607fe36b58f61340a2731278ebe
DIST gentoo-kernel-5.12.6-1.x86.xpak 58097790 BLAKE2B 588237bb48bca688f49548b216e855533dc9b2fd927e835b3ad10e605b96e341df30b8754d7f801693239b0f8e976645fced49afe5d7af401b1b240f542e1b7c SHA512 8bd79b06836a1dc8a802eadb54de8d5e9ce2eb9c7af76671c59e8d9e093b3ba73631bd221b81339dee656835122303e40a27f16911bb6d167b7e0ad91c56fbcc
DIST gentoo-kernel-5.12.7-1.amd64.xpak 66367675 BLAKE2B bd18556dd73a9eaf2f73737641cc61b0833e70699da43d600ee13ad438563c475244c213618c051d90f589927dfbca43fe92c3ed6e47d87809e968282e98da83 SHA512 27696b01bb74b10af8059c0516eac4b30265358f1300baf27038298bba66779ab12a26ff03e56cffe63ea7207fa81d6bbfa9fe8302b2d5e489a51f364581853b
+DIST gentoo-kernel-5.12.7-1.arm64.xpak 60178910 BLAKE2B 602a7ee863d43a0d9d40fac9a34f0a5506f154fca66e4749fae1abb380c8b841986af40cf120d6cd0f01804b6fe9f45954b3d4b884e4eedc15e60a2e8b9ad136 SHA512 c673db22709b7fbebb02aee347a71e534a1df97e324345dd9418fe687eeaca61a672740b84eda7e0531a5a3eb6d42310ff78681cb1670d9d6918b83cc82b43e6
DIST gentoo-kernel-5.12.7-1.x86.xpak 58091403 BLAKE2B d4648d72e421aa8a2e85529e83394b8ac788a17eaef70d0e19f29c3f3d2272c3dbc914f4ab66c3137c9ff6c84b76b59711670eaec9f46cc93ca932335c8b6c23 SHA512 315bfe67d1aecbd16d91364eae039598f1d7886be4e42a1808fec3668372dcbfdfdbe3ed445c20035d0a799e83e03fc0f03e43f9855e1f87c79c8be0d41ba3d9
DIST gentoo-kernel-5.4.115-1.amd64.xpak 61381562 BLAKE2B e36468cb61a73daffd9709bc8e13eb1c11a0ec1e8f68df55c07eaa50e7538337534ca48342b019b308c99c121628f55c868a5577b2c1a5a4a67cdd72a6fea8ef SHA512 5bb1836cfd7b746aa5d8e947d6fe63c368f86a0d439e56106a77b3f3c3999d3761f238bfd76b5785035ff68869da271a2c3a4dfb5f09fb16b343e0d296ad9d60
DIST gentoo-kernel-5.4.115-1.arm64.xpak 56473345 BLAKE2B ba662f7d08629dc4fd8978de1db9f0f4400cde21802590a168f9737da03013e27c09a5ecbadcc99f482c935f20db61f9395bc006390b46bea45af305f1677620 SHA512 2ee5adf31d0a8c2bfa76cfadd5c56e818cf31cea3323c91517cd752ce4c87256c2a4f33583119977e37538669d5e2046f77fdd0b9c6adf15ccc498e7179a2088
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7-r1.ebuild
new file mode 100644
index 000000000000..9cc54d1c175f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.7-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
+}