commit: 2770a4ee7c75dc8c456b986d75dc5b4cd4855c76 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Jul 15 14:45:45 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Jul 15 14:46:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2770a4ee
sys-kernel/gentoo-kernel-bin: Bump to 5.4.206 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.4.206.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 702c883e1eac..1be1fb89a2e8 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -22,6 +22,8 @@ DIST genpatches-5.4-209.base.tar.xz 4887256 BLAKE2B 56d7ea7975b228df055d1bd4cfc4 DIST genpatches-5.4-209.extras.tar.xz 1812 BLAKE2B c1cb92a600e0827b133735f3c04a98e608f5dd0b69f53b3bd64ae03d8ff7b0189b0e00027ca073c4b80a77cc23f92ced5dc4bd4fd5912b538aa4ed3131d49b9a SHA512 8046b24112d6635f76cabb7d8e429d9859553440f80fd67152f051fddc6966ddc45e4a465ee946439c23b887282f5517ab12dc7f1862d5471d2815911a4ee2f5 DIST genpatches-5.4-210.base.tar.xz 4896412 BLAKE2B cea81eeeab39b8f83386bf5c700f1237e1de2987294a0bfd3fd8b578bdfc384b587639a833a6f6085cc8e3840f71e2e56295c8c060f11d0fa6fa2381f4f7b59f SHA512 b045f3690cad21a61382d41bd5ca8037bd9ac4c83acb8da62317da1cf25aa0550598e366c74f89239f8d0042ec7cb6c76c3cea77e4b173c1cdf038213e2979dc DIST genpatches-5.4-210.extras.tar.xz 1812 BLAKE2B 23abb8d1adc1ef226844f9d53611793396102dedf0d4472d4adfda32277ccb60c1e270ed3716d7e5a3f1e4d29c9a1c8a6999cfd6a19613c4953e0bd88b4b316c SHA512 a95429ccd7b7cec7f45cc1adeedd9ea90c33f4e32997d954b8f29a599f59c21914aabc3798ba66688e62215b5843213a5c08120431ff672588c9f79718cd4d4c +DIST genpatches-5.4-211.base.tar.xz 4898356 BLAKE2B be058cf67ca37dd3eecc242039e184242f0d76e7e3300af10a4068635a02c9a8e22e08780249c00c4cd0542f5e7e0c6f97ae8f0885d0429415e87bf4dbc55a9f SHA512 5c90b96b9acd5b8c9b8ebeff0b7371029ec7615f462dc042e5d636a68e23f274c1c9b05c89df94a49d7972cce905a81442705b4b564ba9fb674cf7107bc316f6 +DIST genpatches-5.4-211.extras.tar.xz 1812 BLAKE2B 3edd098fdbae33053dad710c08bafba66b3fff66e2e87935e904c6c5c4ecc2749d8f3135d10ffa6afae15711cdc92c725a08178eae6091355b81e93375d1cbc3 SHA512 264c25cde7a7371726350b0eeab9cc087fb0e0194e92905e1ef2ebe1467ef7ca3a0cd654b65e3fe35f49113882ab9f4041bbbd02095c935baae93b5a37f986cf DIST gentoo-kernel-5.10.128-1.amd64.xpak 65795239 BLAKE2B ccd03c20e469543532c3df43176ab3c1dd84919930586f3e90f2fcddd6fa6b8b19531ac9b94c7f67f55acaf052ae0b11814d93c4eeec7aedb2a13765165d6fa7 SHA512 cb38dacbbe923640bd0ac679a2430d890cf3609c066196c801b562ec55e59491c1549ddab48f00d2c1e4304310fd7d45108eeccea7bf3c2667712ca8545354d5 DIST gentoo-kernel-5.10.128-1.arm64.xpak 60993645 BLAKE2B ab40edf44057745e141504d4043d1702fbdf51d0278dfc3803800632e80e7278c347cdd3d325608e0e948b2de3e4ac0bafa824800ce486f360163e29bc0a3d4c SHA512 da31c3a1c5095f28c4824588aad43d6ccf219b1c249ce0665566f732e8920f052fe916609bfa4dd5cdf1271c601c0ab67f299068da38ca695a4b14757a6d401f DIST gentoo-kernel-5.10.128-1.ppc64le.xpak 56022338 BLAKE2B ac21918bdfdbd968899393e0a323808d0dd7705a7cac07057f76737c794160ea274f78acca2abe5244228f97343f08253c365bdefde74f2e7ca7ba6086e747d5 SHA512 05f3e3a6f20d1dff3fc8c1f12634e417261a55de47df189b3b9cc28ed7ce5f1673b19726d68dd00c1af4980c46769d029d83094efd98cd8865970f00b41d69c6 @@ -70,6 +72,10 @@ DIST gentoo-kernel-5.4.205-1.amd64.xpak 61545551 BLAKE2B 7a5aa3012a12881465eb7b2 DIST gentoo-kernel-5.4.205-1.arm64.xpak 57697680 BLAKE2B e21d4653791296aa37b613a473bafa9186f1e95de65949e61a63f83b9c450a16ef4636923a5a53e1bf0cd25460a1df70cd7f40f28e4203d7e48ca8632e7c5e1c SHA512 fb80e7b369d6d15f44915df78a1cd2aa9657b884365792b9f68c2a60a1b6c4b578845e5ccc431f6a29368fde2a680a1bccb2f754a475a005c547192a21f22450 DIST gentoo-kernel-5.4.205-1.ppc64le.xpak 55161738 BLAKE2B c3260d8694efa53c219bdba3fe00f1004899d2cb8366e28ba1e24bf39b7088a4a1462893e6b57d5910696ae376b423de6cee2975e402a9092daf8d14671a59e7 SHA512 508ecb26c04aa0814183cf0670a91517466117064078a497227c49fc66edadec41b64e4e9c97753eb7e74b2693127eda879bda8cd486f1064b6a8a775883ed1a DIST gentoo-kernel-5.4.205-1.x86.xpak 53299500 BLAKE2B 035669af08357c77feb0b90e3f674e01fb2655d9d4cdd9a8a2b5eea69c242b8ddb364ea08f80ae5eb8e595def0ab37acecd23d21fa9a113a6a809a3d8f9a182e SHA512 94916bfd8811879394fb58793f4bea9b9ec300146b45e94f5a5316449518ddf8583f1108c76019c1b8d290cef6b00b44c441d26191b9cd97ee50814b7a652c41 +DIST gentoo-kernel-5.4.206-1.amd64.xpak 61553799 BLAKE2B 50a2c4a430ed9b152619563ba2eaac4edf553d69416011c6a5e32601d931364b5c44439c99f14006e566508cb2d2a661ee014f69bc58c14640541e5078b3a051 SHA512 85b480c7cb18ddf2af2a1308934ae58fa89b72e70805931b9e308b1c1260be0757cdfa8db55b77edf58dee45de0ff1197b3e193ace7e0a93ed477b1a4c17a963 +DIST gentoo-kernel-5.4.206-1.arm64.xpak 57679986 BLAKE2B 9cc2a0a93506be3be41a07b9740f3b218f3608483ee621cb74fdd33d8536a5285844de2642d094b186762bfd543a2535fe75d6e6946a9f1c6220fa19f288cf07 SHA512 53b1a0aafca9da0f77add7f3927ff5c4ac0c8158b383601043ae73503c28e3ca83bbb6860c5f04f9695b4c0b14d94e75afe90297ae226530096ef21fc9b7a47f +DIST gentoo-kernel-5.4.206-1.ppc64le.xpak 55108295 BLAKE2B 9b3c4e3f41ca4ef03010aacd0ac523bf261c6c03c76e17f2c335cc212b5dea247cfa8f699870e30fca1b41f8ca5d748d96d2e792b70aa940456618c0dd02279f SHA512 cc1e5c7be5f28100afa1360bdf16a2274bb9f5e0641fbb8ae86436d952c7dd84fe3bfacfd21f49e040e0816ff9186a17444420ed636a1650a3570b800409f1c8 +DIST gentoo-kernel-5.4.206-1.x86.xpak 53293759 BLAKE2B a4435c9745fabc7428409d9ed9c70ae5ab20ea5d7588bc256e62631ba3721334240470499ee8809489347182433aef2fc8a6987e5f9dfdd02d64bad4219b1df0 SHA512 b507d17c16a81c66e35d05212d48a9004116d7e217ceddd0f465b692d7cbb0b909c6dbb59f7b1d1d73edc3d657ddf6cde29a92c574e99c1effde8ede2f80b5f6 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-5.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.206.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.206.ebuild new file mode 100644 index 000000000000..b6c3ce9ca64c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.206.ebuild @@ -0,0 +1,135 @@ +# Copyright 2020-2022 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##*.} + 5 )) +BINPKG=${P/-bin/}-1 + +DESCRIPTION="Pre-built Linux kernel with Gentoo patches" +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 + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.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 ~arm64 ~ppc64 ~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 + # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg. + ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.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 + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv boot "${ED}"/ || die + fi + + # 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 +}