From cdbe95b177cc046a7faf74f451bdea02a72e9731 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 24 May 2021 00:56:03 +0000 Subject: sys-kernel/gentoo-kernel-bin: bump to 5.10.39 for arm64 Signed-off-by: Sam James --- sys-kernel/gentoo-kernel-bin/Manifest | 1 + .../gentoo-kernel-bin-5.10.39-r1.ebuild | 114 +++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.39-r1.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 12695f891fec..f224b8644d8f 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -21,6 +21,7 @@ DIST gentoo-kernel-5.10.38-1.amd64.xpak 65538346 BLAKE2B 76d5e8b10d970fc54d1dcb5 DIST gentoo-kernel-5.10.38-1.arm64.xpak 59263514 BLAKE2B 38a1a90a97261a72cf285351c5a3cefc352d306933616bb874408c788b4fa7b3d9746a25d75e77729931fb1dc28e9279b20f22936f95c354100e7d08c90c1156 SHA512 041defc35d7d94bb3890cb8b9a402465927d6a9bce07a2443ad720a8dc210cc67028be067be29bd1c64c0a2f6d55a4512cae4442fb4db63446911de799090af5 DIST gentoo-kernel-5.10.38-1.x86.xpak 57251643 BLAKE2B 398526f7c368f91ed6d3043483a48988730fb9ee928b9eff3b7495cdd5ec0bada1f8b81895ecde852dc0832b97dadb4dd4ec1f2304e273e664d4d18bd90af57a SHA512 5477ac06ecaf2ffec60befee3d09f358461b423744f03f6c9d90b4528c032602e29a1df862c65525bd076806735764d312e7a277faadf63053b3d7a3fc818c48 DIST gentoo-kernel-5.10.39-1.amd64.xpak 65488886 BLAKE2B 88f563aeab27d6ad9deea14803fba25de2b9f8fbf770fcf58b405d14c6f9f50b66fc020e7ad406c4b827cd1b6efe92b5cb72fb50df5f5eb9013d4cea0bfa77c6 SHA512 b8bc663679f78e36ad3a9f0a28a9f33bbd0bc10467609641af0fa1389009a8d64bb55edc7e11ea1fa25ae96b4026fb411bdab31e85fd632c90c7e225e067df11 +DIST gentoo-kernel-5.10.39-1.arm64.xpak 59266825 BLAKE2B 50279064ef8eb44dbcf16478eaf2596bd33b8222f30e18aee220aee470ceed8439fddcdf2d27fe2d78967f3b65d42bb48dfb2e0cf5dc009508fa18ee2011f0c5 SHA512 cc3fe299bd136e7b5de28fcc4607e4a50491b9792d685e81021865eb4931628cda3906a15dd1f0dd82ff242f12f55d9395f4f75356d10ec87c7b4b41956c6431 DIST gentoo-kernel-5.10.39-1.x86.xpak 57235316 BLAKE2B 6061e3cafc53ea2cb6a0053aeec0b3f5190554984fa0448269c515580492c4af71b5203a34a7e8c613e3560b897e718bf418459507ddb00fb02baa53735f27ec SHA512 d08a7d06cd3fef9e72850412300fe97720d9d107847e9bff2b0d42a5ef3d8c840a7b9274d69307c93df8f856ccc1fc86a2edb712921f26bab7a77563831ce1e7 DIST gentoo-kernel-5.11.22-1.amd64.xpak 65882786 BLAKE2B aa98de82c4f47a586474f6f888a12fa3fb4605bd3dae576a36a9edfd10b669cb586d975dd6dfd4fac0ca3906e56a14250effb44b54ea6646898b12ddeeb6ae28 SHA512 1cd5f40f7ae0500158d05e3da14788a407faef9c471001fa5cb403e6cbbd062130645166cab28f3ad79cb6318dd0fb5961a515952a91de35f34b44483931c5a2 DIST gentoo-kernel-5.11.22-1.arm64.xpak 59725454 BLAKE2B bffe7733b1ab766ab7afae20c77696ab36bed989dae7fef60e6eba752da8f918240e0d28fdce01d5813775c4013df80ba495e6ed7163838bde2896ffce96fb06 SHA512 8b1e4b0f6ca7294a457574f23557df1cc99dc6be41f3a36f6a871cb8a21d52f0556279afe400301bbdf715d4e07134da845c37318a1e6df9e14e379cf4252f68 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.39-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.39-r1.ebuild new file mode 100644 index 000000000000..8198cf5ace09 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.39-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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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 +} -- cgit v1.2.3-65-gdbad