summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-21 03:01:44 +0100
committerSam James <sam@gentoo.org>2021-07-21 03:02:38 +0100
commit35d5ddc558dde62d854ff8de46593121c9b1afe8 (patch)
tree46fd0b8cced0af7a625a1309854215633edbaf40 /sys-kernel
parentsys-kernel/gentoo-kernel: stabilize 5.4.134 for ppc64, #803092 (diff)
downloadgentoo-35d5ddc558dde62d854ff8de46593121c9b1afe8.tar.gz
gentoo-35d5ddc558dde62d854ff8de46593121c9b1afe8.tar.bz2
gentoo-35d5ddc558dde62d854ff8de46593121c9b1afe8.zip
sys-kernel/gentoo-kernel-bin: bump to 5.4.133-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.4.133-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 f48d25e70198..ad46d3660733 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -84,6 +84,7 @@ DIST gentoo-kernel-5.4.132-1.amd64.xpak 61362216 BLAKE2B a298c4bb4f756cf0f1d2741
DIST gentoo-kernel-5.4.132-1.arm64.xpak 56070122 BLAKE2B ae7f2da1bbfd0eb682503a5c5b61f8642fcca276c8ebb3fbb67a81620fb0c2969ec42d9079d4067e16738d0ab5f15eb70993bf152453799acc4fe6b7a4d85391 SHA512 a49284da190cb8c633c457698f46fac8287122f774f45f6662970c281a8dafac536bc3a42b6a7720d834d4c9427685a0ed9b08ef2710a6a4ffcb2887e1b6b2e6
DIST gentoo-kernel-5.4.132-1.x86.xpak 53136062 BLAKE2B 79c432723db6a8e0d38a2f9d01611e91a76b1ed9de959177e10325b14854786629785685226b1107454a6c7088386695c75f4157b3d164e226c64b322ac63684 SHA512 671bfce54c06eb0957db4db797a7768664be911388583626a013a57fc2f5ab2bd2b4d92063563d38a0659cc912c8b8e114971dcd3ec7b66da8be65224bbe695d
DIST gentoo-kernel-5.4.133-1.amd64.xpak 61363527 BLAKE2B 70c1bc3b3c1b2806354394711fdf36c92e094955702b7e718082f4938144ce2bc8a2055284bdbfc19ac0fb9763b3380f740fac81d41b680c20c41d7f98a6a9ed SHA512 dcbcc5ddf378bcb72a64e3d16c87e43d0ae29bed0dd9e40af703c09cb6f0ed1f85fc5da2fa4d0b69389f56599a730f64980d0dedb162006394e1890f7eb731ca
+DIST gentoo-kernel-5.4.133-1.arm64.xpak 56119242 BLAKE2B ab692e9712c3280b421584132ad019c8670a917f988560962c6171946e4aca644c095f37ec6886fab718f1360a95bf8d0bf18d36b98ca8ded4c6c03b1cac4f45 SHA512 01450071b0f5e72e50a17e488b44d0b9108b0e46fc5816f14caed0136bc42970a1c0f5a0c1b1d99ab7b0c17e9d0dba6bee05428473271b5233bf579cd9afd079
DIST gentoo-kernel-5.4.133-1.x86.xpak 53153541 BLAKE2B 32199c6960e729ce93277c6c720b3d43afdaf58093d5cd831b338d924a27e0302d4a55f2d7c52e0594a81bea8f25a4e1cea34b5beb23a9c460edd5835696a13b SHA512 da0b897d1bd8b068894913fafeffded9da23b81c7017fd5eb850462660c68badce615c1a625a38e2e4e4c607190f0976b967f76184a1dbf11ffe73241d05baef
DIST gentoo-kernel-5.4.134-1.amd64.xpak 61349154 BLAKE2B c7627b1a8ad85b22450ae1b47a26f9144707f8a2173b01859ea1d876cf4d96e9fcc27be439e6c0239d7494795cc62fa931ecc71be84f9f898ec017a79d82dcf9 SHA512 d4c6613ed069a0ec2dbb5f5bb317abe952309f6ba6fbb163cbf1392478b1756dd129e51665b3b4e9c939395f5cdbc553003d7f0201098f959be9d29233a48cc9
DIST gentoo-kernel-5.4.134-1.x86.xpak 53144418 BLAKE2B d11e4de3fddb270cc41c9ad49c048df0af8e578f9ef0d811dbc4d930c7b399b7bfff724db889e3e8ce9332920b5f736594923646f7c1c8eb9f07371a85f0a1c9 SHA512 7fc2a72b5f7b636312ff28a2beb07a4514093499bb498bd43574cfd5178490c94628391acfb0da1c08569cbe0cc629373a1b9828398418f82c1745961c6508e1
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.133-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.133-r1.ebuild
new file mode 100644
index 000000000000..b63276300c50
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.133-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
+}