From 993440e29c49d01d0a2b2907d0868ac6494e0c2d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 30 Aug 2023 20:10:52 +0200 Subject: sys-kernel/gentoo-kernel-bin: Bump to 6.4.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://github.com/gentoo/gentoo/pull/32378 Signed-off-by: Michał Górny --- sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-6.4.13.ebuild | 131 +++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.13.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 2b0647a91fe0..3f9eb6b93269 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -18,6 +18,8 @@ DIST genpatches-6.4-13.base.tar.xz 708424 BLAKE2B 35ac10ca68775c9e9c5668e9d4a876 DIST genpatches-6.4-13.extras.tar.xz 3696 BLAKE2B e2e9014e497de63eae5dc5d644e1ef27fc2fda99379b881af096874bf25f269212bbd811781f3fc63fa896285e78cb9c41717392e59bfa62c039dce58ed11f86 SHA512 ffa3f9043767ae00e18b1d5313df6312d179b0d9e2b224d7b1097cbdc9c48f56615a36425ae1fd00680caed085420e438deb4fd331a37cd4397a814e542d6fa0 DIST genpatches-6.4-14.base.tar.xz 765548 BLAKE2B e1d9bc63a0d8beeeeef9894b264ef4d8078bf57a3548548c08e75e699420731cdfdcf9df69ab6844a57563f24d806c96c27c9a158a7f6a1afa72bf8328ce60bc SHA512 5ee620824e0c17146add7f9bfd1d3444e5eb497444c040dc0f06a7ba247e81fc30eb8c92896ed359c7192690f24a1c45bb3b767bc408e9430ad9c7095ca2be40 DIST genpatches-6.4-14.extras.tar.xz 3700 BLAKE2B e72b1378e2c05049a5cb981e7bb09e0d448fd5e1219393d7b552c1c6de2ed557c395a3f341946bd142d8df45b61d12a13ea2424325d5a98045063e0cabe7584f SHA512 62149b4cdce5bf1a0567557790cddc1248dd927f31774b65848f00075bf1a0179939c292c79181af0a39132321f056541919beb30c6a4d46f57286886c95c545 +DIST genpatches-6.4-15.base.tar.xz 809064 BLAKE2B 5f931235de8f0d94b1297c4e5c1c5c82dfe51e2e5149551fd053b908f112adb034e399ec3a8eaabf1b07993cb021577b210ccbd55d0f4d3670f87ebfdf34964f SHA512 b5181ddfc2896849cd0a5889c2c1f3009eedbd3c080a253e78c75545d8a57b7671e163b0cd5076d6255c5eb18b42b8cd81f0d47eaeb40397015418c3e212a5b3 +DIST genpatches-6.4-15.extras.tar.xz 3700 BLAKE2B 36916108aa768ac8138cfe4e167d1bdbc8413e2c971ce81f531966882ff1d096077c9676298ffcf69461059c62ba69e5ed821187e8a520aa21f0adb7ba119281 SHA512 65f96f5b47fe3ca21c4e7f09c13474c64d932eefe94a523d3197addc8ff8f70fce0b9da59f26e890cdb75cd9a9979dc99386c4815ba8d6e2b419a1d5872fd0d1 DIST gentoo-kernel-5.10.191-1.amd64.gpkg.tar 66365440 BLAKE2B f7086ca26f08468b754b0cf9ce715ed763d2866ebc8ea322fb51fa2ab5146f1c7741f68b82d52a7d54442cc36cd5a114132f9ccb0809e8d0ab0da022742a48d2 SHA512 0f4918273c70f06756c19cd2c7738176695aba65eeaa7846aa6773d97e6d3ac4302be0328926f1a217135d21e2660e6e4124ced7f2304c0f1a408ad2561b24a5 DIST gentoo-kernel-5.10.191-1.arm64.gpkg.tar 59392000 BLAKE2B feee11f6bc6148ca0a65077a33cb1736fe2d588037bfada383bff1ca9ca7ea71d6f3248a91cc9b152d87a3fb9580177a68b3748c53e2bb6e0309c7a4b9e39df3 SHA512 bfe38e92e445719daddc4fd87b717c652a0fbc5b3cf3fdaab40c1014229a2bf5b504642c21e5bb478d56742c56100271a7433f113c7c231382d2f226a609f837 DIST gentoo-kernel-5.10.191-1.ppc64le.gpkg.tar 54947840 BLAKE2B eab70963c60d1d668ba562652b73bf47760d326ea2cd3fad8cbf91e75a9329283b9af38ee7391c4bc887c32464a6c8376844135231d155eb11916c926f8c263a SHA512 58a8701b46878dd470a4210f96f65bc85aabb4c8b29aed5d1d61eff2efb1f851c38b648c50afa7cc164406ccdf8ae3bc673f73857903a17c19229f77c8e885f7 @@ -58,6 +60,10 @@ DIST gentoo-kernel-6.4.12-1.amd64.gpkg.tar 84060160 BLAKE2B bc6e98110cc467d47fa8 DIST gentoo-kernel-6.4.12-1.arm64.gpkg.tar 72960000 BLAKE2B ac0962ce90e566c48364e9a00bb5108c209f77a606f2954e8be8069a688c163a978f496b9ec5e32e3cca0bc9b6b73f5d1645f2881234a67946ddcfae0ff904ed SHA512 16d9f518ada039d6bb16d3e2fb9c3ff557c64bfca3c9a8900125c9431e8d3f18e47a98156e317d5776fcc5aff873d3ee2cc9357a294f03d5b279206bfa7545e0 DIST gentoo-kernel-6.4.12-1.ppc64le.gpkg.tar 64665600 BLAKE2B 6a74a7747dd0a693e5e9256243b25de82f4800f57aae59546126c275529043147fac165600aac5cf8fc2ada703d7362237068c96a639ffc3af358654a89f7409 SHA512 6cab43585f1c4b10850b9fa8dc09abe255f0c8c41690d21d9536d1a5e68cec0d8bb3896c6357855acb1ab7184cb8327a14ed3de725eee26edb23672a0424ddb8 DIST gentoo-kernel-6.4.12-1.x86.gpkg.tar 67563520 BLAKE2B 9c0b734586f14da8e9693a990283c29773d04df19c008fcaecc2e481a6a27ac8976c28062bc3788d4cb66f716a68e85d979a45e8395fc2d01559c932510d98a3 SHA512 f2c3f775e5bf37483bf4cb71c292bf215fa8d28eff4aa91049f1397f742a23bbfe63d6a6e08be192ddb82ab0fac9b7c91ec7ab9fbf5b640318d115f8960543b4 +DIST gentoo-kernel-6.4.13-1.amd64.gpkg.tar 81766400 BLAKE2B c9aa02287758f139c1e67f94b3cfa3c8ff02067952cf683a11733520af66f41c45cb25ad05579898e97c0248b2c83561d270cf031bb5870b2124c63299bfa217 SHA512 df9096a96f993c1dbb65f1da3c3f2c4c2c644bbb5149ca543141f06aa0ff09dc3cd78dbf125acdefd9c155e1492ae1ff9b75f3024163d26a2abb8f44aff41f47 +DIST gentoo-kernel-6.4.13-1.arm64.gpkg.tar 71208960 BLAKE2B d93c3c764edff90ae8b2471b007d19f2dd334b80f8608c1b4c9f2aa922262b1ca5eca46cd2833a9762bca79bd9be4e1894bf3c923963616bb7ced1f245cc6f62 SHA512 f7ccd52ed95aa4b11ea487283b1617ab66f97199503d48ec53948a5722940f05539fe135b4f3f4083ceb5e6fcf31814b8c86b3b4c50af2cf4c870f04fb3353be +DIST gentoo-kernel-6.4.13-1.ppc64le.gpkg.tar 63447040 BLAKE2B 0927759f4a2ca08e2a096eacda7bbfe6de6c64d89f13d2292008702dc1b141d11086f0109567d3c13f152273203f40006f878756765afa5a78bb5867c18bbab1 SHA512 56f882974196b8f14dbf1876aaf1ea4ed02cafc2874f6e0426397cc50a63bd9e50298122da89f9c26d43d550714ebad295f3c3518de9badbf0e258e70db7f676 +DIST gentoo-kernel-6.4.13-1.x86.gpkg.tar 65863680 BLAKE2B c00585eeb53f8a6b17d5f1fd2fc8c90dbe641e1f1860698fbf927eaf105d24e9f1448377d1fc603025a26c92a1bc744571b07041852543609370cc30d7800f36 SHA512 ed7b33f0963374a25eee79fd41c1d00bba7e68b09e34da448d36e87a23b6f7b650da424c609695a520ca9c05a8260ccd93401db943bb4b5037ad7ddfa70b0959 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.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.13.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.13.ebuild new file mode 100644 index 000000000000..d6d57f5796d5 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.13.ebuild @@ -0,0 +1,131 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_SECUREBOOT=1 +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +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 +} -- cgit v1.2.3-65-gdbad