summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-07 17:24:15 +0000
committerSam James <sam@gentoo.org>2021-06-07 17:25:34 +0000
commit3f39b6c433d33907ef9a4df81f6c01c08d86d027 (patch)
treef2fd78624dedb9ab88ca9285c23f09b0fb6fd463 /sys-kernel
parentapp-portage/kuroneko: Bump to 0.1.1 (diff)
downloadgentoo-3f39b6c433d33907ef9a4df81f6c01c08d86d027.tar.gz
gentoo-3f39b6c433d33907ef9a4df81f6c01c08d86d027.tar.bz2
gentoo-3f39b6c433d33907ef9a4df81f6c01c08d86d027.zip
sys-kernel/gentoo-kernel-bin: bump to 5.4.124 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.4.124-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 11a1690d44dc..dcfe163bbd70 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -79,6 +79,7 @@ DIST gentoo-kernel-5.4.123-1.amd64.xpak 61368911 BLAKE2B c3252e04180c56eb0edaadf
DIST gentoo-kernel-5.4.123-1.arm64.xpak 56055188 BLAKE2B e7cce2cc33010b30c0929de502e204b975b692bec366ced27b878cd5c8fd62b51396d93d8fb1a8a4a5b01ea1ec3e2674a20c52285a26c623d4dd6b2659f34082 SHA512 840139b1219abc0ffbfa184f3b9c33ab5342874c2bd0244a9326d91dd186e97a61f6699c7dd22349842e0a617cc1c8a8ccf6f8e64c26d5c06b9848c19628ce0e
DIST gentoo-kernel-5.4.123-1.x86.xpak 53189077 BLAKE2B 3bb6d0813c6574941c63aedaa0e12f9c7a332665c9c4a7ca4475b669c81bfe2cfcb73e603858eb4fd7d448deef5f801e3ebd374fb6c3fab90c393690f65f90ed SHA512 72e15a705b3be1b51952a8b126b3db4ba1897938a5405b83cc0df2319ed4c3c4752fc73e6623b47c77b08dc58d4178c2f92ba8b06927cf4c6d062c3e9cc0ff5d
DIST gentoo-kernel-5.4.124-1.amd64.xpak 61369250 BLAKE2B 8b39782d1f46585d412cc3939b8ca74a1cdd39be004baec7779cd685a43013306a3652c2cfdbf26b63a921f2c75bcdc646e3b0c98060af5eac7d2d5ad0ebca14 SHA512 8e106c597925ba2d6cac294573991437e91ff6c7a5bef81cbedb9c5027123905e8ab2a2c0ef76bdd16a323b3a071e319238ca5caf66697aab2ce5953c2b1f165
+DIST gentoo-kernel-5.4.124-1.arm64.xpak 56357756 BLAKE2B e2a2f1dc942ef7ea3a6860c86ef345c053ddee412c226a03152af9fd14e4927524cb5b20917d1f3f986583fd3a003dab514b224edca2dd0dd02bb8c470e232cd SHA512 1bd6f4b99abba0a2dd6c76574f17f295db277079ddb7a28b9c1211a2a348e945fdaff9e4c9cdb5fc8882f7df901e1074b7f2ee073a095c6cf0a36baa0885b166
DIST gentoo-kernel-5.4.124-1.x86.xpak 53172119 BLAKE2B 825a7e78f4dcd27fd8b02c86b06955a00b9dfd99cb9cef91acb3de81ec613e42a949e2916985696b4ba592954c4c777e2a783c5178763d46afe4f19cf2c6ed34 SHA512 8e87fe1273b12246ad3a8df6eb2d8a1ccc8b64358e3d04a216a612be6d27c10a0895de51b3542437afe52694caff1ed038165b3c37ed63794fce1cc1b320e451
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.11.tar.xz 117619104 BLAKE2B 81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524 SHA512 a567ec133018bb5ec00c60281479b466c26e02137a93a9c690e83997947df02b6fd94e76e8df748f6d70ceb58a19bacc3b1467de10b7a1fad2763db32b3f1330
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.124-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.124-r1.ebuild
new file mode 100644
index 000000000000..b63276300c50
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.124-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
+}