Skip to content

Commit

Permalink
sys-kernel/gentoo-kernel-bin: bump to 5.4.89 for arm64
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jan 14, 2021
1 parent c18ae7d commit aa4279e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-kernel/gentoo-kernel-bin/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ DIST gentoo-kernel-5.4.88-1.amd64.xpak 61056095 BLAKE2B 67532c81c4c3ae036bcebb30
DIST gentoo-kernel-5.4.88-1.arm64.xpak 56317914 BLAKE2B 3bf2420216a8a4f562d03c45010f3592399b2246dafb3dfd15ccea4327650fdd029284406ad6e49894ae3360a2d7ff0661b2be3d7915aac4e17263ae7e816fed SHA512 ddbfde061506388f8224459eb4f73d61dd43692b456556a5fdaf06b4ddb4dcfafb1fac097015ccc7c25640d1e3488a66a30312b26aa4dfaf565e885dd4f679bd
DIST gentoo-kernel-5.4.88-1.x86.xpak 52893703 BLAKE2B dec54ce2650c69ef3a558b6ab63c622d4e7051fab003923b7f838fa54e247d712fd8c85dc9d00b3430ed02170f99e29b812777ccbf0b62bacca66f0b4e358e30 SHA512 0267b4bffc0c7f76e9fa72fab6d2d55a5e65e228f7eff7a11cf9dd8b731adba41e36ffc8b0efd33306767f5bd645a690fef40750dfa0b83bf427d3e250eba1e5
DIST gentoo-kernel-5.4.89-1.amd64.xpak 61058877 BLAKE2B 212ddf9eaa4dcc2633536fec9671fb7931225763a82f2c7eaff109745e6ec3eb7fb82a35604e23d66a881b8b8510ed81458f46aa45535fff2b5c889e435d4b7d SHA512 aabdb8c8541adef9b8c3da26213d5256a6846a5cf375945489bcd3b2c46bba4d6649f2c912deb2cfa8a2495f7cb233ee5b02702c6953d42d6a04fbf93b1814ca
DIST gentoo-kernel-5.4.89-1.arm64.xpak 56269701 BLAKE2B 966bfcdb6fda5680e6e11f85ec04f52b82d9a51822dcd19639e862727846a63e15f7a99fe4d681fc4030a044a525fca06c76e9ba1bf637e04f271e72eb5316f0 SHA512 aab0e8af373b495fd1dd941be8861159d8ee734d7e94d4cad4c06444ec042451324e35e8b1351a401b9fc8dfdad9ee3f108e663259ce054d868ac0918a0f705e
DIST gentoo-kernel-5.4.89-1.x86.xpak 52893729 BLAKE2B 10ab4e0b343cfc5803a72a0328854cb566dbceb44f5b4af3e20d082850ed819ff9e2c44e4cc5e814a55172185466842197553506bc78c89692ca8cabfae26e42 SHA512 a2906c0f4958a8c1baca27da81ec04d10161a92e8c95692fe91bf08572d899221ec07a13d6dd908e984abe9b639f76fb77a5b76382bcaa74f7942f6cf007f573
59 changes: 59 additions & 0 deletions sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.89-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit kernel-install

MY_P=${P/-bin/}-1
DESCRIPTION="Pre-built Linux kernel with genpatches"
HOMEPAGE="https://www.kernel.org/"
SRC_URI+="
amd64? (
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${MY_P}.xpak
-> ${MY_P}.amd64.xpak
)
arm64? (
https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${MY_P}.xpak
-> ${MY_P}.arm64.xpak
)
x86? (
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${MY_P}.xpak
-> ${MY_P}.x86.xpak
)"
S=${WORKDIR}

LICENSE="GPL-2"
KEYWORDS="~arm64"

RDEPEND="
!sys-kernel/gentoo-kernel:${SLOT}
!sys-kernel/vanilla-kernel:${SLOT}
!sys-kernel/vanilla-kernel-bin:${SLOT}"
PDEPEND="
>=virtual/dist-kernel-${PV}"

QA_PREBUILT='*'

pkg_pretend() {
ewarn "Starting with 5.4.52, Distribution Kernels are switching from Arch"
ewarn "Linux configs to Fedora. Please keep a backup kernel just in case."

kernel-install_pkg_pretend
}

src_unpack() {
ebegin "Unpacking ${MY_P}.${ARCH}.xpak"
tar -x < <(xz -c -d --single-stream "${DISTDIR}/${MY_P}.${ARCH}.xpak")
eend ${?} || die "Unpacking ${MY_P} failed"
}

src_test() {
kernel-install_test "${PV}" \
"${WORKDIR}/usr/src/linux-${PV}/$(dist-kernel_get_image_path)" \
"lib/modules/${PV}"
}

src_install() {
mv * "${ED}" || die
}

0 comments on commit aa4279e

Please sign in to comment.