summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-28 22:25:36 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-28 23:48:27 +0200
commitd3759f7e129754f34616840e390c4d45d96b198d (patch)
tree7a928dc5ac9367487a8e77569a8d395b204e2f69 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.12.8 (diff)
downloadgentoo-d3759f7e129754f34616840e390c4d45d96b198d.tar.gz
gentoo-d3759f7e129754f34616840e390c4d45d96b198d.tar.bz2
gentoo-d3759f7e129754f34616840e390c4d45d96b198d.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.123
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.123.ebuild117
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index b431f457b797..3f5922138377 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -20,6 +20,8 @@ DIST genpatches-5.4-124.base.tar.xz 3499808 BLAKE2B 98d5cac4ac9f5d59c4dc1bcf3e5d
DIST genpatches-5.4-124.extras.tar.xz 1772 BLAKE2B dd0400f17cd878676cfc7f52f36a3cb48ffa785bf3cd27fc5c0f40af34babb0f5b9fe931a4b92423c944ec8260d3b74ce5f1bc9e6d452ba4dfc6595125f5d6b3 SHA512 8dcac324ae81815546faa670428db2474b3a58e842c966017a4ed253eb537e7ab753e99f7675bfb2bc54bd4567f381d28586fccca2d213e0faf4125acded27b4
DIST genpatches-5.4-125.base.tar.xz 3512440 BLAKE2B 4a63e044f420911602426aaacd6476128288169dc12baccc0810d44dce50cac275fef38cba3b119724bb66fb12d3171337e88ce2968099328eb2f7b3651fd945 SHA512 30ef5565de7ecc57c849519121b22f94fc731f2c59418cb45fa29e50b49f487d621f0005c4487cbb8d6be3a00456db9934512c73c16972197daa8ddffa5a7115
DIST genpatches-5.4-125.extras.tar.xz 1768 BLAKE2B bfa75a0d735871051ce3f66962b9287ef80d4928dea58ce2f9b4d817788d4975e8aed09888ef2cba716292eb650633cf9a191843b81e69f8f717f5b44fec6dc7 SHA512 ae8a8e69c44567baaf1a7efc27bb3384da6f83c9f80c90b692e90c296bcc33862f4670ab72969ae727b310a5995a707c1bf112c67ca268893f32b616f6391f24
+DIST genpatches-5.4-126.base.tar.xz 3514976 BLAKE2B 9d3ddbf2a9d2957a76f3c172afbc040f7ecf97ecb9014277c110aded0fb808c2b09a1191a7596a396d2b2fc2fe91e964b3ec3ff99688eca9b0da256f57454680 SHA512 5f89c7034d55f3465ca9ab8a2d976af139a49d269ae0f04a05dc5a8ae6bb88e436ecfe7bd6bdc3c3d8beb6d6f681c8e87003d2595b8c9677f41d5b64629be411
+DIST genpatches-5.4-126.extras.tar.xz 1772 BLAKE2B 900e7881ef06469e55c4c79b140454d14dc2a8f244b4972439c2fec1c50b95ac8cbe2713dbc64a8e0c7789b517d1350ee91eb75bdd8d45a12289b2445b567acf SHA512 477e1626042f16a139972960be3e62a1f04103607cff026dfd1fe32d79699503d3a336b7241d0b5f6d843d3441a436b59a9c51408fc5ac7e905b1adea52a4e8f
DIST gentoo-kernel-5.10.33-1.amd64.xpak 65526470 BLAKE2B 205070bff9d1a7f7e58a26fcca367c325272d0f7e0cab1bda70fbe451ee7f5ee9a9a52d89cadc43d879e1d026a0feae2d8cd3756b53ab1b94f797af88bd3b038 SHA512 d01f6e9e00bad450cc71e2cf079d0306ce2d3f234d477cf44507d984c64efb77be3b20b27c05d81b41cd3329e6bec654a284202dd409c74f625af65d4f1d9c15
DIST gentoo-kernel-5.10.33-1.arm64.xpak 59313277 BLAKE2B db163fcb9b75ad919fa1aa329b653ecb82eabfae6e50a2f2a32aae8acc7c9802ff76f4c84fe1dd180f20511dd100d695c9c8e7db1e93f93a284b18061cb16fce SHA512 50f979a6314a4603a4f3bbc906fc4ac9d3854b666bcbe83e6a1c3b9209c33aff9fad4f291d491b8ce188f17188759703a2da665d170c317bb47d1ca283571976
DIST gentoo-kernel-5.10.33-1.x86.xpak 57243809 BLAKE2B 209b1c49bb4d43ca73a438b021bee5274a003caf6c94fe1448f61bd39ba4ce6ddb021125b998e386edc16662c5266945c876b2ad4d5986f177088a2425a31895 SHA512 5399b3788dea2172112d3e52082bfd5a2120accf50acdd0a5a4897e495413b706a237c5f82ae6dd9a6e8a95c41aaa1f06c475043fa4c88bf81dac11b1fab79e9
@@ -53,6 +55,8 @@ DIST gentoo-kernel-5.4.121-1.x86.xpak 53175663 BLAKE2B 30a6edf57b7eb172194aaa40b
DIST gentoo-kernel-5.4.122-1.amd64.xpak 61399307 BLAKE2B 2b92ac919e0cf3f55127906d85628f827de20950fabe6772c39b496befa9372c81db9dab76bc208ce4a373d632975f837deee8b926d7e458d581e399dcc99b2c SHA512 6ff66518517bb163721bdc1bb9912e93f2ebe1f7df3411c3fcef2404df2b86a1162183db538b50fadcfd5edc744b249409b80fa411745e0a10e1ffb0f4192a12
DIST gentoo-kernel-5.4.122-1.arm64.xpak 56363698 BLAKE2B ce3e2142ed6630cb0cdf274709bed8ca9177af9df78ed50a743bb2535a8a926f31b7fe173c2b303d1929e1232eaaffab08317881a37d640e5bb6355c0d796888 SHA512 877abb1511e96406a6befcaa20e893cd1ce38949f6d67962cbf76c5bf4839d8ba1f174997a6d62e69074637f187ff2177956f5269771c93936e65b18b0cf6f89
DIST gentoo-kernel-5.4.122-1.x86.xpak 53177302 BLAKE2B b71a2918e7f4bbafd2e01bde3dcdc7c143f8604fb374b310f22ba54d41047b1273998a23bdce5547dbcfe273a049551bf812e8ac2412810e3bffb03c94fb2606 SHA512 73064f5b903de74b3466191175cb0100db0b347449f46c9ea899be2e69632c3eeda14eaee6b919e069071829a77039752af903603c969e0978f71e580b51d088
+DIST gentoo-kernel-5.4.123-1.amd64.xpak 61368911 BLAKE2B c3252e04180c56eb0edaadfc6ad8c1b3416f760b2fc613c43673829774b661bde3e3fc59474cfca455b8fc98f9ada42141421d537658a75943c079ea34a981f8 SHA512 7b647c9b1a7c0f5db8c41a791efe13a14abc5a34ce2fa3913111e6a64c8704b2b949c54c63f887e9ea934d163a8b504571c83c6eda1dd4a97ca8eac32edde587
+DIST gentoo-kernel-5.4.123-1.x86.xpak 53189077 BLAKE2B 3bb6d0813c6574941c63aedaa0e12f9c7a332665c9c4a7ca4475b669c81bfe2cfcb73e603858eb4fd7d448deef5f801e3ebd374fb6c3fab90c393690f65f90ed SHA512 72e15a705b3be1b51952a8b126b3db4ba1897938a5405b83cc0df2319ed4c3c4752fc73e6623b47c77b08dc58d4178c2f92ba8b06927cf4c6d062c3e9cc0ff5d
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.11.tar.xz 117619104 BLAKE2B 81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524 SHA512 a567ec133018bb5ec00c60281479b466c26e02137a93a9c690e83997947df02b6fd94e76e8df748f6d70ceb58a19bacc3b1467de10b7a1fad2763db32b3f1330
DIST linux-5.12.tar.xz 118112412 BLAKE2B 842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b SHA512 be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.123.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.123.ebuild
new file mode 100644
index 000000000000..6208453ad7c9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.123.ebuild
@@ -0,0 +1,117 @@
+# 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
+ amd64? (
+ https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.amd64.xpak
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.x86.xpak
+ )"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+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
+}