summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-06 02:49:20 +0100
committerSam James <sam@gentoo.org>2021-08-06 02:49:20 +0100
commitba040c46591ac86a749133e5e208684ab4691a9c (patch)
treea62c4269e1b48f14a38e78f237c199d2bd90ee00 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: bump to 5.4.138-r1 for arm64 (diff)
downloadgentoo-ba040c46591ac86a749133e5e208684ab4691a9c.tar.gz
gentoo-ba040c46591ac86a749133e5e208684ab4691a9c.tar.bz2
gentoo-ba040c46591ac86a749133e5e208684ab4691a9c.zip
sys-kernel/gentoo-kernel-bin: bump to 5.10.56-r1 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.10.56-r1.ebuild113
2 files changed, 114 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 4ff5e934c103..415dc80e7da4 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -43,6 +43,7 @@ DIST gentoo-kernel-5.10.55-1.amd64.xpak 65491981 BLAKE2B 73390f8750f11e309cf9f7b
DIST gentoo-kernel-5.10.55-1.arm64.xpak 61167016 BLAKE2B 1de73432ca09ac34c84f621d3a14a4c3ef3b8e26dc3f930fff9c569f0b6c6afd44c00f1d7b41f0ddcca15c421532f53256740f12de3ad2305306d5c8181e1221 SHA512 da8952228418f8acdab8f136ebe181a201eef8b0d594645469af73d9b85a9bc297d83ea9a15c32a0b63fc3850b006091ace3ee21dab15c9104755c16dc8c95a6
DIST gentoo-kernel-5.10.55-1.x86.xpak 57214089 BLAKE2B 6a411b8e89fa877a0f091e8a1c83896208f96e980ca00f6e73f835fe3258a58b62814e114e6728a63ba8d1679de22b7c10c0920db40ec5fd7ec73f3047667ec5 SHA512 6c762a018aa48d7c687c696ce6bf8786801e4b870812f908e1bd15a742aaf098e22b802061c150e62cb0b06e473e99f720444657b984b8f6069e037823522794
DIST gentoo-kernel-5.10.56-1.amd64.xpak 65466530 BLAKE2B bc22262e84dab9a7fb747064655d910ab963c03bf37099438bb0afda73e211f4e34b49d447fa6496fd4233be032418a5f4e7cc54c3ce812b82c6929715d55004 SHA512 45f2735e482d3bac6893270c2fd82a47021697f4be333cdc353b76597e0ebaad774e49a4c52c7dd29808a9c5975fdc0cc67ea3d9223722e8d4741675f2452a29
+DIST gentoo-kernel-5.10.56-1.arm64.xpak 61251700 BLAKE2B 5afde0d58d7a6839cb5093beab66ec4357f1dd2bb900674bee68353b72325ba510d983ac096e1cbf3bcebfe3c336ab30774a948664b471cb84a72990a7acbac0 SHA512 c494bfdd391b0328bec671eff159986da0e745bf3db70a2647f6ef8ba57f851bfa0b4262d89526f3670ddf620c4cf1e0377c299b9cf3de241e37e22bb90e8932
DIST gentoo-kernel-5.10.56-1.x86.xpak 57227791 BLAKE2B 4cb8e8af367ffde0ad63061f8b45665c9f594f106ba4db2c4ead93c46426f989f8eff507c534dafbc66cb92f53bf72cf6ee93ee353069caf8fe8c46119080e27 SHA512 529a69dc7177c9bf0c2da9b9614144185851e8a4bb0cd66a352fdfc877771f624b493bb16f62956e58a52849ffdd0ac31d219c9ac9d542c0fd9c14a3bc5567be
DIST gentoo-kernel-5.12.19-1.amd64.xpak 66346655 BLAKE2B a03cbcdcd1a90d48d7e11e988d03efa43980f4d5d8af4b74e4c81f195faa01803af45fb38f7dc1f5af7e9b5338a53bc6f34837c37f7e853c088ec6c1dc084e44 SHA512 3d7f78c488ecee2532f8a8ad61e3aa0f5e238e4cd520d29288715a3dc5c488670d7378f3dc5bc110252dff10108dfbda27a54722c6b044151999428d002b34e1
DIST gentoo-kernel-5.12.19-1.arm64.xpak 60043529 BLAKE2B 8746081847a39e1847b8e9f35fcd68565370b116d6418edf803c4cdca9d750ac8ada58c4a7fd377480a1c75b3c805864d419c02ee21675bc77ac195731385a18 SHA512 d1a8a9210a1ab3d3c1894be1fe524e64b859b0a02763feacfed1a24655540ade6c28af751b23e924fcc04fb9abd56e84c43d634ad80bbb4d5de79ed533b5ea50
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.56-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.56-r1.ebuild
new file mode 100644
index 000000000000..9f8ae493e215
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.56-r1.ebuild
@@ -0,0 +1,113 @@
+# 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##*.} + 6 ))
+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
+}