summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-07 07:56:10 +0100
committerSam James <sam@gentoo.org>2021-10-07 07:56:10 +0100
commit743eb1a44f8c5f897fc77ed5453e4e046e04ce38 (patch)
tree0fd675ea35ec95c4552ee432b55b7a1cca800491 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: add 5.4.151-r1 for arm64 (diff)
downloadgentoo-743eb1a44f8c5f897fc77ed5453e4e046e04ce38.tar.gz
gentoo-743eb1a44f8c5f897fc77ed5453e4e046e04ce38.tar.bz2
gentoo-743eb1a44f8c5f897fc77ed5453e4e046e04ce38.zip
sys-kernel/gentoo-kernel-bin: add 5.10.71-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.71-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 a1d4cc3ed228..f2e58b68bb99 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -32,6 +32,7 @@ DIST gentoo-kernel-5.10.70-1.amd64.xpak 65517948 BLAKE2B 27a3f7686c27021a535f47b
DIST gentoo-kernel-5.10.70-1.arm64.xpak 61234933 BLAKE2B cd710e9461983633a92fa8cea7e48dd7d1fce7a46645b3589e6b2b7c38a66c6585be52d1be98e02f48cf2deb7327f6d0b9d0d3fc227da217f99d353a9a1c1336 SHA512 8d378db8b4eba00178876d139e4caf58ce4cc34b5d89d59622f20bda0b2dec7ae0f1bc20498dba24c004fa74df5dce2943efd5bcefc7eb356ba000dce742ceff
DIST gentoo-kernel-5.10.70-1.x86.xpak 57241603 BLAKE2B 79dde6ba5c9ffb878267f491c304eba34ed7e64e82e6eb6c9076e61b9cc62e29effc7fd7b8a620272421af94b27fd378039ce4d8b7f9bd170faef298b4a7eb5e SHA512 42774c73aebb5844d796e85377f571a87cef2299b3081199de93c4e9bc63a6f19269b4a71b90a45c8c99a2d65a7fe1f61fc0101f3d130c4c01e3d49c24d6c062
DIST gentoo-kernel-5.10.71-1.amd64.xpak 65531448 BLAKE2B a452aa65c53ddc469f7b62e73947538c98cc33271ed716286c8e8a1b56e963af422ca775279e0bc2540ceb415c337c8094d1d3f1b16724e0a4191182e2aa51ec SHA512 7a0d9ba58e50430e42b4588da1dcfcb52b832dc021b38823fb787aebe754b3a020ec06756432b51391023a84855f822104e9582d1955f241c93f43ca0c4e21ec
+DIST gentoo-kernel-5.10.71-1.arm64.xpak 61260000 BLAKE2B 43c44a2f34445f28cd4748e94a416d680c51ad98dc19d521ca8b6a55847c8ca59dadacc02c1f3f74159c070bbf8a25c3418f0bdd9713c05abc23d8587db84703 SHA512 ae21250d1db987af750af20b079359cab76c5a149ca55324a007e070a5c6fd1a50189d109efafc10fe8434be6b8587da9e8dbe445b74d936fdeba41ad87d9ece
DIST gentoo-kernel-5.10.71-1.x86.xpak 57265156 BLAKE2B a9eaca5de9ef3883863cab33773d63569accaa2095e9725f37181fb2d05435717ff9562faf6d4bdf76625c554a13378c6ca84e7b60bb81df236633d2d0e9ec44 SHA512 19f6de9ca4190255be47f0cd0bb53367df9114d961e2fbda081962647b3c71e5f7cb0df22bad5e92d2d7647fe163d4dcfb7a517b0be783c80e61259589c63703
DIST gentoo-kernel-5.13.19-1.amd64.xpak 67338326 BLAKE2B d9e718a94bf9a341f5b57063cbde2f3f1f0ea6d03f1805051c084b792388789494a49786d643f1570871ca2b6366a206497aed83f9ed00837c542ac970a71fc6 SHA512 aea74f6f39861752f7a5dae16d955d541f65d3e7b8a0e5fba593011d9ca8583f3dd0964e76aa21daa6583d5d26e3616885aeca8a04dbba222e0aae2a85062b40
DIST gentoo-kernel-5.13.19-1.arm64.xpak 62747957 BLAKE2B 1981ddb4e35d2210e1c678856ac58e088cd100ecbd70d2b5c88ffe8eb25b56f3f0c90e45d12adb74c7a0fb881dfd36b1d46d6fdfb837dbdff1881ded066b906d SHA512 d8c1e524a3e58def5352b3faae07c42074a2d67015cc62b9601e20bb9b7f29d44d2843e7771e0399e9150be1de2be2b28776f96f7fe75ba7ec4e8f2c31e1f715
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.71-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.71-r1.ebuild
new file mode 100644
index 000000000000..9f8ae493e215
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.71-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
+}