commit: d72e92998014499862485bb39095d5d53c623ced Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jun 10 16:43:42 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jun 10 16:47:12 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72e9299
sys-kernel/gentoo-kernel-bin: Bump to 5.4.125 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 4 + .../gentoo-kernel-bin-5.4.125.ebuild | 117 +++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 2c534d3aa3f..091a315d6f3 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -36,6 +36,8 @@ DIST genpatches-5.4-126.base.tar.xz 3514976 BLAKE2B 9d3ddbf2a9d2957a76f3c172afbc DIST genpatches-5.4-126.extras.tar.xz 1772 BLAKE2B 900e7881ef06469e55c4c79b140454d14dc2a8f244b4972439c2fec1c50b95ac8cbe2713dbc64a8e0c7789b517d1350ee91eb75bdd8d45a12289b2445b567acf SHA512 477e1626042f16a139972960be3e62a1f04103607cff026dfd1fe32d79699503d3a336b7241d0b5f6d843d3441a436b59a9c51408fc5ac7e905b1adea52a4e8f DIST genpatches-5.4-127.base.tar.xz 3553224 BLAKE2B 99331a43982e2dc9efab061b25663e59284e7f1758f683f288fe09ebddc0790ea901e722cde8b9955085afdbb4f2bb45b546ab632a45d310aef9fc16d6cdb0fb SHA512 a78106c658cf7cd1ad08ee100f9cfeade4e1eaf0da9c6e3819a59e54dad9a17a36ee46d8c38dedae58c5f30444054906344e813f9a2d8f0405be2a588a1f9c8b DIST genpatches-5.4-127.extras.tar.xz 1772 BLAKE2B da124b0076e952e1468ee4adc8965a6c346b945fd56e828903fd8dd2689d8433ad07457792ac7a78431a76c142d9c77955b2fbdba042063b80df331acdeb8cf8 SHA512 284260c19cf81d0c444747e1adc588ddc3442c3e69a1729841e39b8e4df9dc4cff8e852fc7db56033a1f2b3770a7c34010dd331eab71910da1a719347f56eed7 +DIST genpatches-5.4-128.base.tar.xz 3571424 BLAKE2B a58c2b8f20730c3357ce30cbc8b24f0609bd7ca2a8f5d37780cfbe4edb560fa49bcf1925ec40dbf61aebfe9a87be0f35ade4b999509420eb0caf5731ce649e89 SHA512 c84d65acdc4274b528306af958b0c72851fdce008c9ed6f78965ea22f09f8668b6075cfda9101b2e7a7bc55ccea64491000b1aede8cffa4ad927c7c1bb003489 +DIST genpatches-5.4-128.extras.tar.xz 1772 BLAKE2B 3af29c49caf9303615ee76319d3da53295281e8fcaee54d37b122e47b745ded99a109db2eb31508dbe83a5997b7973287297d29af2ddd475bdab1a0bc05a1045 SHA512 27eb4d3327e24acd5f4601281f624439ff47bc6173ab58b23ab162a42df66bd02402f2e4f4e97a49b0b0b788b615869dc4a0dc3ce964247ff7bc6166fd9dc6c4 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 @@ -91,6 +93,8 @@ DIST gentoo-kernel-5.4.123-1.x86.xpak 53189077 BLAKE2B 3bb6d0813c6574941c63aedaa DIST gentoo-kernel-5.4.124-1.amd64.xpak 61369250 BLAKE2B 8b39782d1f46585d412cc3939b8ca74a1cdd39be004baec7779cd685a43013306a3652c2cfdbf26b63a921f2c75bcdc646e3b0c98060af5eac7d2d5ad0ebca14 SHA512 8e106c597925ba2d6cac294573991437e91ff6c7a5bef81cbedb9c5027123905e8ab2a2c0ef76bdd16a323b3a071e319238ca5caf66697aab2ce5953c2b1f165 DIST gentoo-kernel-5.4.124-1.arm64.xpak 56357756 BLAKE2B e2a2f1dc942ef7ea3a6860c86ef345c053ddee412c226a03152af9fd14e4927524cb5b20917d1f3f986583fd3a003dab514b224edca2dd0dd02bb8c470e232cd SHA512 1bd6f4b99abba0a2dd6c76574f17f295db277079ddb7a28b9c1211a2a348e945fdaff9e4c9cdb5fc8882f7df901e1074b7f2ee073a095c6cf0a36baa0885b166 DIST gentoo-kernel-5.4.124-1.x86.xpak 53172119 BLAKE2B 825a7e78f4dcd27fd8b02c86b06955a00b9dfd99cb9cef91acb3de81ec613e42a949e2916985696b4ba592954c4c777e2a783c5178763d46afe4f19cf2c6ed34 SHA512 8e87fe1273b12246ad3a8df6eb2d8a1ccc8b64358e3d04a216a612be6d27c10a0895de51b3542437afe52694caff1ed038165b3c37ed63794fce1cc1b320e451 +DIST gentoo-kernel-5.4.125-1.amd64.xpak 61394912 BLAKE2B ea62eb77e681dc424c5674e9fba88ce3c351273a9e8580c7787bb8c1ae4b9ccfe341f646590398880078cfe8e1750cb349116c02e1bf9fe46c53ccac9f170dac SHA512 8686d58efd6491e99e9680bb3ca398dfed63507c76c77c03ef3ee1f05d3e739bfd9a6a53b14df2f9200a2365485d42ba20989dec700eca764bf289985cf1f010 +DIST gentoo-kernel-5.4.125-1.x86.xpak 53179979 BLAKE2B 6788fa462f05eb162fd10aa4348b032fc5bb7776ae23aebf6df39ba5b442be2cd7e6c0cc7f8b50816c0d59f0f964cfb6e806a2ac70e7b1553a090e534a8c0f8e SHA512 2191a0ee564549d4ecb0dd9ef622e32c49fe41a84e27b73e425178f02193c69cade6330301c02cf9cec7f44f1e3e3ac3b5828a04f157c6b5c784494add7a0143 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.125.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.125.ebuild new file mode 100644 index 00000000000..550411ea18c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.125.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/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~mpagano/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 +}