commit: fa10e07fdd72bb3d3d4fc027847c4c64d680d501 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Nov 10 18:40:56 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Nov 10 18:44:49 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa10e07f
sys-kernel/gentoo-kernel-bin: Bump to 6.6.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 7 ++ .../gentoo-kernel-bin-6.6.1.ebuild | 132 +++++++++++++++++++++ 2 files changed, 139 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 9ab786e035fb..1ab9132982f6 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,6 +16,8 @@ DIST genpatches-6.5-12.base.tar.xz 720508 BLAKE2B 429f4fbc3292ab46250bc1716212f3 DIST genpatches-6.5-12.extras.tar.xz 3704 BLAKE2B 3d18f544a455d1184eb9687a5c53c7dd348b12f736313a3bb9d3417e0f4458a8e7f962451ede58f45016af700014fea87cc3336b30ede9f899dd75369eaadc57 SHA512 0a8c8a23d99962e5f0028ef1ee8ba79cd20af0ccf6b08e554405ee964cf542b6758d0e2456612a410d7fdfca5572e4af7c4d1c3b65a9b426412c1b480b2d6475 DIST genpatches-6.5-13.base.tar.xz 741136 BLAKE2B 3e13a5bb6effb4005e2c1e604722cffb27583aa78ba0642ae2eacb2f5905fc19fd16212b502196e58d0ee4064779623b44af03e34c6bef0635104bbdfa49253d SHA512 5b63c998dfe984b5435e7e951889dbd1bf4cab2d8db41e89978ffd06ca58ba3e8687e740bb42514e0da5e5ae19998234f87e8220d5eb550e21fb6bd7c665e139 DIST genpatches-6.5-13.extras.tar.xz 3704 BLAKE2B 9473c94b0d34075ba0652c672d7b0b732258a5c57d933b8782e8cf6d394143a2efece463d2692bd71dd0915ead6af1dbf2b10d7ed80eddebeede3a7619b7822b SHA512 489c266ef698bb03a8a7bd3fc552266b787f9036c473c003b7d20135e5e7ec9bc3f3c5caf443f702c6cb029d8d95c23a302a8c8171769b0fe44720da700dd8d7 +DIST genpatches-6.6-2.base.tar.xz 14616 BLAKE2B 3da38df6de90845f4ffdd61708573589973649c5d38082199994488d2679cfc70f954acdd1760a1b4a9162944f0bffc0443590956898b6d1fb79a363958c2859 SHA512 5abd3bf1d05e0e4331ebd2046d6f1e4f1091e25bc4d5624b78f6cc702dd14f6e11f6441bf12694500e96803909384420cf3b82148ae80c23a7f1c66b5bd2bb84 +DIST genpatches-6.6-2.extras.tar.xz 3704 BLAKE2B d236133d98bb12a2310894614452c4d293b082a8f42a26c502e26022432515e71791dbdba1ca25e62e5d4904b441bc86ab123915ace1606d1e28571e83f0e9a5 SHA512 3bc907ecd0bab38c21ba8703fd0b44a0f23c9ac3de36029764813d121f0e4f3da8299671ebc021bf501c7e6cd63b848bb80a14fcb601f02cf850a8bf3bb0d826 DIST gentoo-kernel-5.10.199-1.amd64.gpkg.tar 63242240 BLAKE2B c5d8490f744fc742385cd4098fc1396949ba1bc32b0d29e3c8541ab9a249a61e99aafe929a0415e053551237add468e38d92efc367e13b53f057e8abb2d99698 SHA512 2e9da7be543bd2cd2b487188d9b4fa871b34af728cb4a0807b410754e06e2fef7ae2008cb7aea4f1ef35092afcde398cb5e89f11b558396eb045323a5942cdb6 DIST gentoo-kernel-5.10.199-1.arm64.gpkg.tar 56698880 BLAKE2B ce478df6097693f5129dd1f1b22850b658f6068bbf5a7600cfc7b4173e13af80150a2a6a487e6ff208ce8ce7ae5c0cefa146bb3ffae1109d67e8e761da3529cc SHA512 7d3aba171af38a1cec807874553520515bfaf77748af8371515baa8b93515444856fcd0545601a3ed8e588d68eae042be7ada0514db43bf85f5eb70a5ace6492 DIST gentoo-kernel-5.10.199-1.ppc64le.gpkg.tar 52869120 BLAKE2B cc8101f31f64b2efc10f2fcc71025016c3a4030426c31ff3494d80488b12cfb3c6f6b61ee7a62b0392ce3592474c9927aab9fe6aa1946ecc997e5a4e170e5351 SHA512 dfff3c502f67521f37abbabad030cad9bcf12044187bc9735735fb5c5d21b7594146d7bec25bbb58557dad0e27c51676bd4efc3a7193c73ca831090c8d932269 @@ -52,7 +54,12 @@ DIST gentoo-kernel-6.5.11-1.amd64.gpkg.tar 83712000 BLAKE2B 896adaf4edbe9bdade1d DIST gentoo-kernel-6.5.11-1.arm64.gpkg.tar 73646080 BLAKE2B 661d9a80b48e57a7c72dbfc639d24ac77ef3ee7fce917ae97fe2634527563fe6dd5629368b3e68310ad4dd452865b49405119dd571143215accdc1dc7329fbda SHA512 f4a3f1d1e6d7ad55b562db09874b4032f2e9a7e63305b6c6f1978d2196105c93eec34263c32220ac79c3d522fc3a5401cd2284e0d751c207e126cb74645ae10d DIST gentoo-kernel-6.5.11-1.ppc64le.gpkg.tar 64552960 BLAKE2B 6742c0029df5085ce79629afd339603a6329934f290bb7c73bd4f588a03167f0dffd47a301b0916766e73e1507d20fc0e1ca028a4ab780e04b625a8e22b27c5a SHA512 740e6dac602814e27bbda38dad083b3fb9e04514cdab5460a43f8e01ed65e7976cb9f7e70a2101a4a740f00f0773c52945e7e0dcafa617f2731cba739f0b080e DIST gentoo-kernel-6.5.11-1.x86.gpkg.tar 67553280 BLAKE2B 3557022f61b72c975a9f2920bb617d428106aca88017e092d22dce4956dec4eb6418b2393960bc7deb5243caad0b4011abfb4bea91d7553a72442c6d3a8d8c34 SHA512 380d5962a59655c502ce72905d967ba0d5f36bbfa8373169d2ba94fcdb5d77968cd6cb247d9d96a0dc36deb41c4b38da04b6e35d1febdcf87bced1279fc7d8b2 +DIST gentoo-kernel-6.6.1-1.amd64.gpkg.tar 84480000 BLAKE2B f11f7364ec2621ae444e4c02dfc4f72c4e43e9a88d520502346c7b6dadd04682c2e22375a9ad7ea7ab08404227a83d658880598130d8db037d614c9cc60589ce SHA512 de29436d7e400255850e1e172b71a233fc2ae9132e6f4f3fb5fad4f7c9722cf23665cca83c6677506fedc157973630154ba939f339767483366d73cc0650267d +DIST gentoo-kernel-6.6.1-1.arm64.gpkg.tar 74301440 BLAKE2B c96c7349e144e62ed92d420ff73832b6d2fc802b425b6fb92f87aa36e5bcc3ef0768c9c49386788a2a603ecbd588e567a38c8a07a551a6a6454cdb7753b31599 SHA512 f415beb9450d180517c1f86c839700b4dad4ea1dc937f4bd9bca416aa2b2f758e73ddf03ee20ea7898fe120938ac6247cab1cb32b91fab2b829237f60ad82c7a +DIST gentoo-kernel-6.6.1-1.ppc64le.gpkg.tar 64317440 BLAKE2B cf154bc0144b8af952cee7bd4e7e7f0f6123b6c8a71f8a984ea3f79989aec977057e24bf27b6984d51626427d28cbd3cc24db062d8ba2499c2e54e99508f8a1a SHA512 68eb1470cc3d000ca71b61b34a2fd467302059f5bd7780181aed0eea8ce68f32e170cdc93f7625db74c82f230c8fcb4850a27183f040f9ad52a13ad35df5ce24 +DIST gentoo-kernel-6.6.1-1.x86.gpkg.tar 68188160 BLAKE2B f49bb047f95ea26d126d4fddfce92d65649b7f83a723bca405f5f4b310d426a101449ed7b2377da6323b4ffd978e2d17f26739ae5633df8e5071cdcfac1c7b38 SHA512 dc3e8e8949db273b69d3a42899ba4fa5a9f2c2ac1aeffb2ee913454f288d3f68093ee5e7cb4506dc6a4290642f9774cb8493bb9852c713b348a2e2bd2e8ebe81 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-6.1.tar.xz 134728520 BLAKE2B ae60257860b2bd1bd708d183f0443afc60ebbd2b3d535c45e44c2e541bd0928530a3b62de6385dd4e4726ebbedcc0a871d4f3ffb4105b9f1f6d8ed7467f5688e SHA512 6ed2a73c2699d0810e54753715635736fc370288ad5ce95c594f2379959b0e418665cd71bc512a0273fe226fe90074d8b10d14c209080a6466498417a4fdda68 DIST linux-6.5.tar.xz 138898084 BLAKE2B 2e641b79a080e8f4ce283bcf6b74e2c6f15a374367f1c4c875c663868dbe801317340824fb3adb46b3a51d3b7e1f67cc4e8144d367621ec43ffba5c4eb8abb39 SHA512 1b59dc5e65d4922c3217a8c8f19022dfd6595ae89747861d825bfeb51a4ae6c85449d05db69635a712bef7b355b80318195665582d8933b1fed6ba582f6ff257 +DIST linux-6.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.1.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.1.ebuild new file mode 100644 index 000000000000..26b296bcb3b6 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.6.1.ebuild @@ -0,0 +1,132 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_EFI_ZBOOT=1 +KERNEL_IUSE_SECUREBOOT=1 +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 1 )) +BINPKG=${PF/-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}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +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 + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +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="$(tc-getSTRIP)" + 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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/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 + + # Modules were already stripped before signing + dostrip -x /lib/modules +}