summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-22 03:56:23 +0100
committerSam James <sam@gentoo.org>2021-04-22 03:57:03 +0100
commit07719b43f533ab7fb359a0ec4b46b4fe3469b76e (patch)
treee18db48635d859e3e57b654740d5d2ffc4e476f3 /sys-kernel
parentapp-shells/soapbox: drop unused multilib (diff)
downloadgentoo-07719b43f533ab7fb359a0ec4b46b4fe3469b76e.tar.gz
gentoo-07719b43f533ab7fb359a0ec4b46b4fe3469b76e.tar.bz2
gentoo-07719b43f533ab7fb359a0ec4b46b4fe3469b76e.zip
sys-kernel/gentoo-kernel-bin: bump to 5.4.114 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.114-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 197c89aafbc5..789716dba272 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -64,6 +64,7 @@ DIST gentoo-kernel-5.4.113-1.amd64.xpak 61382156 BLAKE2B 042a2321aa396bceb698459
DIST gentoo-kernel-5.4.113-1.arm64.xpak 56479477 BLAKE2B cd395d019db71880e48d6eca6cfa6337c7931e6dae92f80d588b58fdccffbd36c356d3d3b97e3f5d72313dcf06965f837b7ccf948d5e6f5621438196de57c547 SHA512 89c3c0e00ad9b1748332a9aebcba4b1db1d21abb74be9ac3efb6306d8d69ddfc14a367f43e5848e4862572aba0f37426f8c2801a183c8ee6f30868463234667a
DIST gentoo-kernel-5.4.113-1.x86.xpak 53180295 BLAKE2B 10b9a5457e123367949755ed81671233ff3e4470fb437e8cdff773985dbf07e7e09cb450e56e484a8f27f4aace1abf7bd6053c339aa95aa4d903a37b826a4693 SHA512 6e3fe295073418a7cf4589e96653d71b47f6245970f4891cf44b8cc21bf3ebc4d134dfbd1ea4c2eb99e88c2dd5dd3e35042e89d212f9401b1c084463af2ec098
DIST gentoo-kernel-5.4.114-1.amd64.xpak 61383665 BLAKE2B 54805c103f9be50fc636b7d04dda5b1bea627e0b41e2a929104193cbc0f0e02d532f399ee45d835eb422df9ae0343c2835e17e229e634a9c15d7d162bcb109a2 SHA512 78670a3802cddabe1b47a09ad9c2da31fbefc40771daff8a21bcf0f7a6bef11ddb3d047c45d724e925f5faf5b5493e2def153ffb4a58a25e81e6d84044b177b7
+DIST gentoo-kernel-5.4.114-1.arm64.xpak 78605270 BLAKE2B 5ca57238e90d4baf6d10c537efd823c33a7c28e68a4f17de8500f936ad0cd32766eeb99207db27ed0f18eaa5b077b7d0a9bd7bc4af01e456485625f728c959a9 SHA512 70ebb1db974cc8f3f17f53f8f1d56177d7393541c08fc419cbfa845fa06b5722c1b5134d9c59d1507856d8b14f306b1fee380241486a3b4fd8c32898de95cdd6
DIST gentoo-kernel-5.4.114-1.x86.xpak 53172196 BLAKE2B d11355419540bb3149a6f9b1f9d8af340fbdf4f3e9bfb4fbd99a03de508e91b49534258dbbcebfaa48aa25b03093556bb5c3f440a639d3982f3b60f30754c85b SHA512 2b2ac728cfa27666bcdcb7bd1bebe8800f407796a645028820a549c74e1f17095929ae9eae05f2b31700899cbb328a3b588912e435d096af8d712c8008b7428a
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.114-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.114-r1.ebuild
new file mode 100644
index 000000000000..b63276300c50
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.114-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
+}