summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-10 00:07:48 +0000
committerSam James <sam@gentoo.org>2021-03-10 00:07:48 +0000
commit34cc7467d89d3e3531155d92e41a4a04a6a67428 (patch)
tree92ead5d249082cfc32a9fa82570fc0cf0b7c2f0a /sys-kernel
parentsys-kernel/gentoo-kernel-bin: bump to 5.4.103 for arm64 (diff)
downloadgentoo-34cc7467d89d3e3531155d92e41a4a04a6a67428.tar.gz
gentoo-34cc7467d89d3e3531155d92e41a4a04a6a67428.tar.bz2
gentoo-34cc7467d89d3e3531155d92e41a4a04a6a67428.zip
sys-kernel/gentoo-kernel-bin: bump to 5.10.21 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.21-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 6ca8a2215da2..5c9b8a864062 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -35,6 +35,7 @@ DIST gentoo-kernel-5.10.20-1.amd64.xpak 64025164 BLAKE2B 05812b0eae411959bc3a653
DIST gentoo-kernel-5.10.20-1.arm64.xpak 59166505 BLAKE2B b8a591f53961753da42c1d0c5f946ee7e6d01469f25ace5c22d27a84c404d427521864893879d9d6be6886b96dfdd667c16c2cd981cb699460465594b577c817 SHA512 c12739add0585e4e9c9b2517f8ebb286083fab8b5c64b2bd2cac0bc96344b2a1b7f8834fae8e4a81512aedf797fe86577a12641af0bac012d07fe4fccf36159d
DIST gentoo-kernel-5.10.20-1.x86.xpak 56974811 BLAKE2B 8d636a1af81de6f7a77235610459719c046b980103ee2c67122efb27554c20491b1febb05849d4cab97a0ceb5368449031de6b3b3e97f0cb41aca0bf372ae6a0 SHA512 ddd16c0b92bc86ac1f38eb0ed9fdfede66dfb16518e4e4bbe646c5db82a398e2ce86180e228b874cf419cbae895cfb1c2b0b11c22a499670ca516648e7f6f190
DIST gentoo-kernel-5.10.21-1.amd64.xpak 64098921 BLAKE2B 77e28d143903a6930867093d03c98834e4e38abd3bb37fbe4c0a3e57abb7bc9d08937a9128abc4bde189fe3d720796412f5e4fd8510e75adf3bcabe06e40f4a3 SHA512 0bc8efd310e008910f5c08c4faf71249c920b5a9131337e0ad48480c4093888158dba0d8dfa09c5c424b4d81acdf620ce9533bc8b23acab003bd1316f663abd3
+DIST gentoo-kernel-5.10.21-1.arm64.xpak 59332791 BLAKE2B ddb667553bb19f66a42472180a7fdbf2fe26a7481562b6a72eac91af39caff8e10182b9b5ed25f67a7265b06aeb58832ac0559de417e0798d21ccad0a5e808ae SHA512 6dd27944b06af90872087f2613ec703d5c5972a38954de363cabd1a61b6cff929c8e8445cc698c1faf6a6bd70d75c307e787731eb9d2def6b0a29067bfca7fa6
DIST gentoo-kernel-5.10.21-1.x86.xpak 57068126 BLAKE2B 4d087cfc6e76f829f510b91fe898b7f3ee1e8e735a3eb08345d92e62c3a91a855fea5f1704c07574e6e8f56d3da499afedc83bb6cf8276abb49a878c8724687d SHA512 a62737b43fbd8607bb5a61025064d5dde7ee41c7ad4e6d017642b26a89eee584fcf8125044ae84fa8b37faf7c839edf99d47d9826611060a2bf3bd2d5d8bcf6d
DIST gentoo-kernel-5.10.22-1.amd64.xpak 64085208 BLAKE2B 2ad4a5ac3391bf34c15a190a81772d48ca1bad6cae671a26a9dac70550b671f05512e37fa20370fb970a1796444b05c9f26b2846bbf9acb82369bd88d6766b1c SHA512 27722129bdd20babbd2a37b5b7bc0fda446d0726bf881ffddb4c6a4fde7e7427abb4f41a36943ab462416091f0414ae5e1fea5c743a3a701409f936472ab742b
DIST gentoo-kernel-5.10.22-1.x86.xpak 57048115 BLAKE2B a07ef32fa35da33d9b5d56c66c18465e3ae89edb801763e87a2de543fdaa37722e063f64da42074baf42f26b990dfbf9e1e7d102943dc5edf791727d568d776f SHA512 f9f85ac08c1ca19715ecda74242ceaee600e2ae83aa6dfe5fa862dfceecfb0d1f16bdebbeb96bbf706555e717e4200a7de705017b62788f74bc16561d2372ac6
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.21-r1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.21-r1.ebuild
new file mode 100644
index 000000000000..18c02d4c0f39
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.21-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##*.} + 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}
+ !sys-kernel/vanilla-kernel:${SLOT}
+ !sys-kernel/vanilla-kernel-bin:${SLOT}"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}"
+BDEPEND="
+ sys-devel/bc
+ sys-devel/flex
+ virtual/libelf
+ virtual/yacc"
+
+QA_PREBUILT='*'
+
+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-${PV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${PV}" \
+ "usr/src/linux-${PV}/$(dist-kernel_get_image_path)" \
+ "lib/modules/${PV}"
+}
+
+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-${PV}"/ || die
+}