commit: a57d5f6f8673730eadb19e5b2e54174114818864 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Sep 8 13:56:10 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Sep 8 13:56:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57d5f6f
sys-kernel/gentoo-kernel-bin: Bump to 5.19.8 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.19.8.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 70280b64e526..a646c4c72211 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.15-69.base.tar.xz 2924208 BLAKE2B fc4f14592624fe2516c917425c04 DIST genpatches-5.15-69.extras.tar.xz 3932 BLAKE2B 03a0b738dd90047356abd306bcdee18e7468d111dcff28cfe4bc39c7328d146c69178b1fdd19cef92c0076ad981e845f2ad37778a0907bcf0fa572011d747b08 SHA512 bf29f35d834d6113b68a3ab0a2c2ab2b241c2fa13e47f59669d23a6510cbfb29d24f5947582b2c24f2e4e3170e798d6d0a4171c47973399431a32b76a770488a DIST genpatches-5.15-71.base.tar.xz 2956404 BLAKE2B 20b54274b121a6e15d8960cc62e63e822db1d5fcf3a3e2f3810b70026015b405af6c5840702e418a13da2a712653f06a3f5d8af3de2157e40f1b41c8e0299a44 SHA512 ca2e20c2b6db7b2d064730650c1645524558d91de787aa947849541f2a6b0d29c919307373b6ab0a62cccaa0bddfed382c7aaf5d4b00620e1ce97d4983ade3c9 DIST genpatches-5.15-71.extras.tar.xz 3932 BLAKE2B 53ae8469ceaf8524672ef9f7155dc092558135681438ca8dc233dcf99d458a538902ee805d8572b8ec47203966177e3cf199c47ba3ff48ceff7ae1e7844c2707 SHA512 c35adfff42a907787088d7756f77672f321b5311e08c639bf4fefa344517ea5f1d038e50bc3bbac3e321c16ad3b0ee9a35ca96f031820817ebe063b79a98a7fb +DIST genpatches-5.19-10.base.tar.xz 709064 BLAKE2B 26be5a66afbbcfec3ae5c857cfd20d33ed0c6e0084411205a7a624f6f63132ffc7482328a6dc21e77575008ffd36f63f92ccb8cc3330faf367f843f348f6d5a4 SHA512 4522c43ff92ba2a8709305f06f520c1b182ebfc8bee54f17769944b5ffe6d53dbb54499ac0dc66cc021a776102933f521dbd3b0918413f97c674f2f7055055a1 +DIST genpatches-5.19-10.extras.tar.xz 3804 BLAKE2B 9f00a275e39e2f0566848c4f548e2ef338812e470056a7f07697ec4489d9cad0d065916778b04c08f00589ba3ad9b9933fa5d4e46fc694f394d441cfd2863b3c SHA512 fc590ff0a2d34eefb6204ed69aaad56ddd7c5d6d856b47fdca20510e08196303cdf440d78af77d9fe596fefd90402f961ebdaf9ae8466171db844d081dfa4ae6 DIST genpatches-5.19-8.base.tar.xz 643396 BLAKE2B c383c7efc908fa3e8ebdfb750d92df6adfa1e0d00f253eae40fb5db5b84f8848a5c1a4fdcda693da998b1ba9d1afb1019cbc2574ceff2b099d2125ead515efc3 SHA512 ebd5eaaefbd362d85fa8cb95b0ca4192bf7a0835ec58ea25def13e502f87f74bcc29219083f39b85462b262f526f771270b5a8d93ff49126e1653d948a9ccb9d DIST genpatches-5.19-8.extras.tar.xz 3808 BLAKE2B 8cad0dd5deaca8f8b379c96cfad02add0cfe7498f17e84d11e6b809e366ae0476734bd003b287456459febe2ff4c1fa7b3e54c47243cd571a34ffb1cd927a1ea SHA512 a183d09ba7b1fc3f89b7754709df8d093ba70b09f71e237844214d65bc5821b6328c436c7ef697c30bfd38fc833bd178497190a2e73914a03ec0dfa4cbcdf7f2 DIST genpatches-5.19-9.base.tar.xz 665036 BLAKE2B 0d0f0305b82cf97240237cbde866bccd757a27ef91d23843feaa5d05be9f4d647165ad69b796d21a30bd7d92674b6be873aa529052a41ef8c200ee781a3bcc6a SHA512 e86ae26fdc5e0cedad066be47ac7d162ac7f546f253855394abf5c6da02a1c2ad99ab601fbb54775ab36720ac3e8161c9bd3fce2ddcf1ab451e30bd680ebf33b @@ -62,6 +64,10 @@ DIST gentoo-kernel-5.19.7-1.amd64.xpak 73595696 BLAKE2B e25262c8ec1f16e58ab65eb8 DIST gentoo-kernel-5.19.7-1.arm64.xpak 66485324 BLAKE2B 3f487ba1524ed2245b840ec0fc4c2bf3450e02876bc757aeb2a0d7a69c01360e60ed47409b1ee49d201af6d3159132d961f937932bb5ff92447b257978eb643d SHA512 dc9c9bbc5d56822c06130b0d2f614c0206e5902aeb747d0703f63e860042082f0ce69216a4c19a29639053dab7a07a8c98c7de14f69f9dd54377072a2f54cee3 DIST gentoo-kernel-5.19.7-1.ppc64le.xpak 59877234 BLAKE2B 691059710d158e63b8826cb44b69e9fdb60bfafab8001cc9f960b40b5e52603a566b2bea97724efca5dd5f886bbe9674f3445bc754fb54b5b19d0f79d93478ce SHA512 2349f4c0e397b2abb4f72ec7bb638fcb73f7ec048d112342ce77db8f682b42488ab8fdb31d55b4876789de502df9088683a79956abc33300b22068bcf9a61ba0 DIST gentoo-kernel-5.19.7-1.x86.xpak 63402656 BLAKE2B 260b7a6798dfc2505136a0e445ad9d2a36cd24a9af4745f30a5e0e6bfbf8ce29bfe269bc42dd32fa90ed2c87f7f1e0dab8da60ad8790db1ecee5f6f99312ae39 SHA512 fe8d5230ae84a736a5c25378e2d48358a9f9605796f770a50329975b0a9b3fe7472ac497e8acaedda604aef48ff723e62515cdbc0683cf1e6f90d672308a794b +DIST gentoo-kernel-5.19.8-1.amd64.xpak 73589781 BLAKE2B eab9a2c283979f2bdc321f0e04931f9799326aa42853c88954d58f6998a8022b0fe037d9a450d6a95a4efc5e961248f36936fda91c476ac8654a7c66c3d8d127 SHA512 05d3c1c85b9bbb1cd369a7b88dc282971e877a0cda8429d928b7f10c4e03c83e38f4673cb19baca9d49879c55992f06cd8086d599ad2260150d686cd98642b83 +DIST gentoo-kernel-5.19.8-1.arm64.xpak 66487805 BLAKE2B b5e1384c74474037bbeb27acc26e4f9871be8efb2743defbca8d8fba8e5b9b2f68089ea99858fc6e9cb28b0b80554bdd05f3750b47fa8ab6cb64763e63a2b65e SHA512 3568088a0f502956df8ede41dc93d8553f44d978023356597cd5dac394d68cc6d6e9ec172cd9d795646ee7075ed3ae8cd1374f5852d9611351163c0110dbdcee +DIST gentoo-kernel-5.19.8-1.ppc64le.xpak 59982013 BLAKE2B 1b5b33244e83823731eff0a21fdf8799a8de4773f1d8f7f851bf8d731ef9d4a9a8c01b74c35a884e46fef7324eac8a85d1bf03b069f8fc7104b00a38a8d9e715 SHA512 85452e2e150014c9f43b73d100a8ac9f086dd783523cb62614dfc1b97ad5d86e3194caca0192e3bc96b46f1cf941c8018504807f98f9411fdf2fa395fb33ed40 +DIST gentoo-kernel-5.19.8-1.x86.xpak 63451769 BLAKE2B df9b478de34593870024c6bf45eb2b86c8cb27420341584e668c970b6652b158aa5882fc84200b2d9102ee4c363715b1d6f24d9ce1dd865b2c698a08f23bffb0 SHA512 b4f24563b9a420925b30e0780f3e6f90866a49b9106195b0ee511c8353f5cdcf4be8c94f9ea9df53751f7d986a2a232e04fe1442bc79084ccc3a7cc10d0b9595 DIST gentoo-kernel-5.4.211-1.amd64.xpak 61552101 BLAKE2B 155a613cd985a819a8c62ed82a882b6da8a2ea4a4e728533d2eb499bcd0abf4202a8f2d2b0337c3bc0e7e082ed6e6a4ea7f8b394b50fd7b37e493bf53171664d SHA512 40d913186bcb8829f55bf9899641a4064932144cc16595adeaa2262b35014996c1dd0d95a54d8e6968d83bf24558eeeed87f09b2b7b99c55a157d5f37e098d49 DIST gentoo-kernel-5.4.211-1.arm64.xpak 57941206 BLAKE2B 2ab52e0a114fa683d9ae6c0cac7d196e409cf00b61ccab1e7abf8ed0ff274d4514c03d0162bef4a79b1f9ceee5b51e647ded4be3d006f55111ba56020ade0f9c SHA512 d4c1439f8ed418aa4b073e9c9ae0d8b0972fd652244e489d6fa9b222b8736bd4ce110f0f7fa1182c3b658a07fcc1cfb5523b27dd13f3f7e7a33a164c5765118a DIST gentoo-kernel-5.4.211-1.ppc64le.xpak 55270077 BLAKE2B b322db72bcb47b2a3095290e4be922b11723256150eb6882beb19a64b1b47a5fa8dd033da887964411f8e5481e573f7d00842a0bf959f455a6b36ef3f56610f9 SHA512 900ebac4442e3c92e09d33818d00e9869ebe821185a757f62a030eb3822190b91c2f1f672e66192635ae2bab18505ec5860f400db08c5f14c3d916f929a2de71 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.8.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.8.ebuild new file mode 100644 index 000000000000..0432fc354ea2 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.8.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##*.} + 2 )) +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 +}