From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E9705158094 for ; Sun, 26 Jun 2022 09:08:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25A17E08FA; Sun, 26 Jun 2022 09:08:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 03766E08F7 for ; Sun, 26 Jun 2022 09:08:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 938833417CD for ; Sun, 26 Jun 2022 09:08:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21206522 for ; Sun, 26 Jun 2022 09:08:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1656234503.01ce78537508d95a35b34a2f1edd5463cec62516.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/gentoo-kernel-bin/Manifest sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.201.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel-bin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 01ce78537508d95a35b34a2f1edd5463cec62516 X-VCS-Branch: master Date: Sun, 26 Jun 2022 09:08:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e71b9179-7613-473b-9365-c91901277c9b X-Archives-Hash: e0984eb61882c942dd39df715e7b9351 commit: 01ce78537508d95a35b34a2f1edd5463cec62516 Author: Michał Górny gentoo org> AuthorDate: Sun Jun 26 09:05:11 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jun 26 09:08:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01ce7853 sys-kernel/gentoo-kernel-bin: Bump to 5.4.201 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.4.201.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 488f8bf9ea8d..f902c956f405 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.4-203.base.tar.xz 4798932 BLAKE2B dc918ca3e7538b66b87a8bd8d2c6 DIST genpatches-5.4-203.extras.tar.xz 1812 BLAKE2B c4f67f3fcd08b6d845c7fc6174a747e805ee2614ddc2733771cfeec8df5535a7e0a6b8c3528b23c7cd1127765094deb565d3e1b96bda5d1882510cdce4b050ea SHA512 029f4ba2b1fc2c581d343e9847b926ffbcbcd1c0a5cc45c28f35f2ca1572cffaf6ce75a9bfb42d2cd94f6a93ab5bdb8a3297636ddeb4be4afc66efa87a55d7cc DIST genpatches-5.4-205.base.tar.xz 4658076 BLAKE2B 172fc1760b7636d6d2de9014c36f792e7e85f81d36748e7fed87f6784647e3488acb401c26abead8703319616c83ed09bebaceb47f8f179b91ef3af3a2b4dc37 SHA512 03a2368388de8fa0977f0af58234060d2ce156d23fa5d954e49791182ad78d2bb66c7abe319323f184c3d344915083c961c8d7646f2ac7faa56d85a21fcb7c9e DIST genpatches-5.4-205.extras.tar.xz 1812 BLAKE2B 43a42c678c8788065209ca46d4e621f4f73493ea40c37cb39871a7850547572cd1484f56e67b08e34a94fcbf247f827a750d93c4cfb126bfa1a8bea852afee03 SHA512 95340a3d7098b312a7df149b98fab683d57c0a06e3a2c77facc6611e61a97eb8e820894a5cb5171b54d5f7b276ade96a83a229e60103047e2e67838afe518090 +DIST genpatches-5.4-206.base.tar.xz 4661532 BLAKE2B 9ef512d628faf560cd3d3e8c5c72773ec805e3f6a1f07de8f073a7b9eca3b4cb93b00fe0b78b581f43b121b5ad96e0c0791882c4f3b94e881db222e04dbfcf70 SHA512 c84219335a5a14d930290a2b9c07eae71baeeadf58de06814ef0ff01b157de123c619d4367745cdfeaf729125ed9c0e26922bf3741f53a31b90e74e33f766cc9 +DIST genpatches-5.4-206.extras.tar.xz 1812 BLAKE2B 31f5f53949e888dbf848cd1f8d06710dc8c302511c5dc7352dcf69585fd0b2bf61dbb0dd3fd2a75bd48d05daa9bb6d878427cee8aaa489d1c1b51cc8e8972b2a SHA512 472aeb71289bd91418afdb43004124a6599b8bf336d2b5db1c340766277c0950b25b18196fdf26b5405797eab5e85855abf97fff0da4c312301c195710c499eb DIST gentoo-kernel-5.10.123-1.amd64.xpak 65756021 BLAKE2B 18bcff8a26baa8719d3e91812f636dd543e15e7d524a049e16ff6866c61b3bb03041a63e0b95cd61df977e8551876a3a67da6826e3084daccd9e191ecc158651 SHA512 6248593ec6f822f3bb7e20332ff7d9300e2e1246546db5555685fd7e0e77c756e9725f73fc03043b8f817541e177a1a20fe5212d3cba9d2dee05adca4b1bca7c DIST gentoo-kernel-5.10.123-1.arm64.xpak 60973935 BLAKE2B 440f9bc1812b1ff465587c3ac5694ad488eb8ac55355d11fc2db78682439260a3ba3252292a5abc26134ec759a3c4898bf744276cc7f8ff369bffe63de5ac66a SHA512 ccf3141880e34b665ffc613b2281a618194a4f319c8b8485429e0189f369f0a2498ad55ccb0dfceb82e23f447b5f11b6a3a9a59c62dd38991d37325528fadfc3 DIST gentoo-kernel-5.10.123-1.ppc64le.xpak 56011478 BLAKE2B 5b7d540f05536e15f0efcc3af1a2fb774fb0f4beb68e1076c845337491b955692a83973bdc478f7862e34560f0eab63fc0865fa6014736af1436a4732b4f44df SHA512 f07f595ad0e65872121e2dba9c0da37b28db094e1d7904d5622a8dfa963e7593107261f40d5aed1d5dc1391595c9c44ef4931c78431b8e5d4593230793692bff @@ -47,6 +49,10 @@ DIST gentoo-kernel-5.4.200-1.amd64.xpak 61492508 BLAKE2B f4da67cc164b3c648732930 DIST gentoo-kernel-5.4.200-1.arm64.xpak 57634591 BLAKE2B be19c7faeff935a788ec86e757ee68e1a808062ebbcc4e3604ff0ac32d4c81267e5709eccc0c03d4dd0ebc67d2091e57e1357ec1e51b199b10b62029b579bbb9 SHA512 66c426cc88c768d2c4d4bc43a22318042a2dfa143b8040ae1a7cb4d9725e989a86e65c927e448bfc217dc79817c5840b02b664b6ea94468e28b8b3ef836d0204 DIST gentoo-kernel-5.4.200-1.ppc64le.xpak 55099454 BLAKE2B ac1a3e7d2154d92844505bf6a73e2183a5894500b84bea99457c80bc9c31570305f2f66f96833354f813bab87b0d7e317d1d2a08d7a78e50f69680692cc4c66d SHA512 714996d9c68c14ceda70d04a3d14ffe7be8b23d880c5383f1d60f1d01e3d2774f556714bf6b9a74e3316c1a50de92dfe70f0b59dd325184457e3f58a65aec085 DIST gentoo-kernel-5.4.200-1.x86.xpak 53257427 BLAKE2B 9e2d5c5609c2932980ddb32b969a069ec25d82ed27063ec967dac778256e8ee752ac98419f983c0f92ec9de03e1a01c7d802bcf876953178c81ed804605a2372 SHA512 1e0a194878cd527c5b0c625617703f19e872a49d74725502ef2a14d8ac3c9b22dcdd86442eab5f9dfd47b43142b9db2b909666cb991dbaf5e15faeeec70fa091 +DIST gentoo-kernel-5.4.201-1.amd64.xpak 61490388 BLAKE2B 505f983decbac8b915c774b6367cc000924676af5da3378a15aa7b53669f3e414e4a9ab0e54acff3d0b3d89dde05f3e51e0cb0996d11894072c65322e0f6898c SHA512 2a6df7714c9b939ef8cdc31b54c0ee255bb434440d9a37e3bb3f8f8bf90a910f3594da76c6b0a4810ad88d49415f76311d91f140e0418586f72bf191e974c06d +DIST gentoo-kernel-5.4.201-1.arm64.xpak 57629958 BLAKE2B dfd49ec96a3f4eb87a2fdaede289f5d90784c3f04a76b8fe1d651b79e470406e64b0b83f148de16e0003372ae876ca6acdc0021fe79f8e444a72a6fff9d72cc4 SHA512 ed173b3413fa6e1e49743bccd9b0fdd7ce9aff43638679ddd9a63f3a051f7458aa3d37c834062e8c8484806d7d8d9bfa0a8ad6fc1ae3060bb78c2ddab9bf7e42 +DIST gentoo-kernel-5.4.201-1.ppc64le.xpak 55024732 BLAKE2B ee4f6b8f2bf957c1a464e7771fe9c912f49b5bc6b92073537660113d106dce686fa56841df1f31b9fb093deac9142bb85cfd4c7576bf9ae1f8e8f11b432f63d4 SHA512 c56967a16dcdd96a142012979da5843616cdf88cebf11ddf72f9798e6e1ee04993cc608ea3b843255d172c71e1fdd022e97bdfd7c8d38173f6263dada7bb517f +DIST gentoo-kernel-5.4.201-1.x86.xpak 53296941 BLAKE2B 0da99c798213fbc0b6bcabcdc14a64daa21bb0beb01492840fd90cdb88c474d0f07b86c77443e0fdfe7f7897405a9f4148f431bac9203720ccd3a705267707cc SHA512 4d695dd222f58addbd885bfb789032e2321032c6ca05f079ad7837a7fa381dc1793dee841a07f1ca6de3899f3d90571ef70b1cd64a952083eb6e542848cf623a 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.201.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.201.ebuild new file mode 100644 index 000000000000..b6c3ce9ca64c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.201.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 +}