diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-27 17:13:58 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-03-27 17:31:27 +0100 |
commit | d17c96639e054e9e0b0a149b63bb0760be1cb7b2 (patch) | |
tree | e9d54b364e7b2857d28f5ac2ae3d92ae48a0995a /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 6.7.11 (diff) | |
download | gentoo-d17c96639e054e9e0b0a149b63bb0760be1cb7b2.tar.gz gentoo-d17c96639e054e9e0b0a149b63bb0760be1cb7b2.tar.bz2 gentoo-d17c96639e054e9e0b0a149b63bb0760be1cb7b2.zip |
sys-kernel/gentoo-kernel-bin: Bump to 6.8.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 7 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.2.ebuild | 161 |
2 files changed, 168 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 0e2405f3329a..2fc14f47b52c 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -26,6 +26,8 @@ DIST genpatches-6.7-14.base.tar.xz 759200 BLAKE2B ab81cb25145e344d43c649a7330804 DIST genpatches-6.7-14.extras.tar.xz 3704 BLAKE2B 2dc79c939c1793afba3591758b5a4e51987683c086e688b79c4a6817cf35f1486f06a869e18bf49c5d102c77152b842bf4669e9c77b59e35401ffff2de422477 SHA512 e198bdf7f0d6dbd937f31d0ae4d0de3a9c1091410b5a709ab1606a21372b6d2b58cf1e298ae3b1f25fac1f677a0f618f01755a542493879d876bf296f8fa33e7 DIST genpatches-6.7-15.base.tar.xz 971400 BLAKE2B fc87e6e218c0c26051b83545f82a491a83df9b0e324f1f659329b144a81aa21ac6e90532ab080eafc99b7f87b9d8ac6aca84b043653cd09b8c41b7e34e52a9b7 SHA512 3c62c11bd8de96e86dd7224bab00103fabf5dab58c2d5d6ab2c27302802eb3d5fcd9370ab8c209f4a62a8f2d290107edbba72bf9dd8d78760c15234989aec5d8 DIST genpatches-6.7-15.extras.tar.xz 3708 BLAKE2B 8ed59cf05b758ec9341f6e8488338ddcb60e70cb1d25e39718cfdca425d47e7d5a7cbe4575da631363c89d263bdc65cbc8db718550f0f0978647891a6dd3677d SHA512 b01ec4dff86934dfe5686df4fde1b9d5534b156d127451f3bbb1267df8f3f7d67d11a496df3896d6b5777476cc704578b00c8fb124176216467b5bc4e184c9e2 +DIST genpatches-6.8-3.base.tar.xz 250824 BLAKE2B 2dd35057816341b1dbdc9fc651b2cd8f2600d11026cd73168e32adf59d08c93f932adec3ab3e00b24852e565e058054503a09278fcadb9f3ac6c640bf4972e58 SHA512 c5cd4b802009128f3b3a637551f35c678800054c75bc1e09738f957428b7087b93d88ba89f65ecfc5d71b89e0c9004c2024edfec7ab36612fb214ff5ca5b225c +DIST genpatches-6.8-3.extras.tar.xz 3712 BLAKE2B 1477adb78ce367d923717752d92ceeae28cdebf82484d30b3d4b46ecb308dd6418b67bab000f37312a129aa4453910ee88db1d1f84a9e943b1edaf90d15d20ec SHA512 bc1ea41091c8a8d093652332c6c11ce727730c7b922b457e6935ac1a20905ad9c4bd8757812feee50315ab7658e388e6bb292fdda4b6f03edc1ee184b1db76f2 DIST gentoo-kernel-5.10.212-1.amd64.gpkg.tar 63252480 BLAKE2B 3ce492216591a8c99b136e3baa7588a412917ff84dba8db91eb9d25c314b109f83009d646ed95c08a8af7a429f8a746ed824f5e6db679777cb19cf07ccef095e SHA512 dd29113f7409ce3d71df2354cd015be6c4943e13a7ffdd1609367f418aceb3eb6aa1687f9bfed20796b230dec1ed27b7bfa4c00398d3b65fa6109dee790a136c DIST gentoo-kernel-5.10.212-1.arm64.gpkg.tar 56719360 BLAKE2B d51c72f1bbf54f579869cb40ee9eb9b352e5a8521f4cacc58bf42310545a3305c90d7a518a86cb5d14c509ebebadcfe9a30e6d89c18f31061b3f84159b3205ad SHA512 29803f672fba9c74b88121f19582dc86ee72992b5c5e7a37dc52e02e27cb47839bd5d2e53247cdb2073374e4468663b83a5f79bfb6f0a99131a79127026974ff DIST gentoo-kernel-5.10.212-1.ppc64le.gpkg.tar 52879360 BLAKE2B 44e42395f00747b601046facea7b134bb06ccd45cfb4c5e93b39e3dcc1468702077894f7f32cf4e167db20bcf4bfea97f76003debc2439e6c3f56a4ec41e8c62 SHA512 06f4c7dc25d4ed4536a5a25d8e7fdb418483ef4aa03b7184c51bb5664739f7aa71416957f9edaa9e85e396fb395c4637e720d55d3b10aed3837a8da8a14dfc1e @@ -82,8 +84,13 @@ DIST gentoo-kernel-6.7.11-1.amd64.gpkg.tar 149442560 BLAKE2B c6175a3b91b93291e24 DIST gentoo-kernel-6.7.11-1.arm64.gpkg.tar 121231360 BLAKE2B 59753e9dff475c7ec56b9e84125d34d2155649b776726f661b560e1836799f53ad59bd4af86542ed600079129753eec998eec71197db252eeaab64916107b8ad SHA512 96143b5e24f726812144a757c9170e472211a754a2213d3910b9e536001ffe33c58f170348a66ebface0f9cdb368f30d633ae286962976f0c9c56179aad75425 DIST gentoo-kernel-6.7.11-1.ppc64le.gpkg.tar 65536000 BLAKE2B 4d950b3f819ef6e5ebb02e782d042fa2682c393722e9584cd4d41e18b6b0c916dca540cbd563db538f1855c4fc7755eba61a6437c80284f6f6883008a1cd833f SHA512 15e27d1fd28347606668bef5eeaa5f5302e2c9b131805016a53a5ea89100e3fb11bd4c2f1d7946f15c83818e42e993d712b75351213d3931df264e56cc6bbd9f DIST gentoo-kernel-6.7.11-1.x86.gpkg.tar 69509120 BLAKE2B 10b6b0a673faf54df6f852aada102541747688d8611a5295cdcb4de045dbbc6f49260b3965d49ba3e913872fb7c76d19f18a4dce01b544b2336000214b2d3ec3 SHA512 99afa32fa6f1ebb8fc7661f5995524a1b7426f2544302c72b8f048ae060479a457cc258465a85eba42b7ca248cd05d06639664f4d4b28aedb73e19504916feb0 +DIST gentoo-kernel-6.8.2-1.amd64.gpkg.tar 150753280 BLAKE2B 46792a78448da3b21585fcf231e40b501e7850fe8ef21b083ca441287da534420a905aacc1998ca18e35ec859545f35b99f7394f1a3863dca48d45d78ca0effc SHA512 971317dafeea52e37c9cc74b90d5d8565aa39b3416409d0cab6932300812796384544f5556f8c3b696a9f14911810e4122531eb24fa1cb6c03078ab4daa8839c +DIST gentoo-kernel-6.8.2-1.arm64.gpkg.tar 122347520 BLAKE2B 2f527f69c20f810c0e49c0e4953e5034c127801fde66e5146b2c6a959ab17041cc26cee86d7d23053feeedb009d9f270f99757a1a0060f8ea4720d3b6f9c1b39 SHA512 d840fb365b0f1749beae1bc034ebab6db664d5f5b9fbf74907ae2f93d3cc71176a19cb0257234e52d5c2ef2b87421a4f445f636eb7149c51f48505aaace92446 +DIST gentoo-kernel-6.8.2-1.ppc64le.gpkg.tar 66263040 BLAKE2B d4884d943e937cb01d59def78dcc386fd7e163aeaba079e4383e6505df3e0b1b57785c44e2502e46cafc7c2c25aeeda0236f2c42c2e9153b814afff3d200c177 SHA512 23336bc1a6770dd9048e47bec33b4fddfb8a26bf1267b3fd8dd0d78e96595533a377348a8d8a1ddda28b0562341372713debd7f12bac05ff3ae804a2c11b7951 +DIST gentoo-kernel-6.8.2-1.x86.gpkg.tar 69969920 BLAKE2B 5c9b1f3b3034e94113cce0d830eddaef4c545f25fd5061ba8aa8d0e0ce677ef8c02490682600f8f911e183ba4320055e3e4b3f483cc365d085a1833064d6d0bf SHA512 a43f7b3cb6daa12908bf2695e30d98068375863b5870ff0b55ffae702abed277131b62f7c02440930422d77eca647bc3a3c29dca953e4511dfb8387622dc95dc 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.6.tar.xz 140064536 BLAKE2B 5f02fd8696d42f7ec8c5fbadec8e7270bdcfcb1f9844a6c4db3e1fd461c93ce1ccda650ca72dceb4890ebcbbf768ba8fba0bce91efc49fbd2c307b04e95665f2 SHA512 458b2c34d46206f9b4ccbac54cc57aeca1eaecaf831bc441e59701bac6eadffc17f6ce24af6eadd0454964e843186539ac0d63295ad2cc32d112b60360c39a35 DIST linux-6.7.tar.xz 141406528 BLAKE2B cecdbd19905e43e485ab73b352ced18b37f2a138c97a6956cadcda5d3d271001117dc1cf896b166ff019fc7f405f9539e2ed0d6112b0890efb04d182adf4fd0e SHA512 de06de556191614bd9daf077ae239360352a402bab407748e67f1e5108c92fd933e451707840ab22fe0f9976db3d1e1b60ca9d41cf894f015ca09b3f652b74ad +DIST linux-6.8.tar.xz 142502100 BLAKE2B c6f17f816cea16e629f63e9379b98888713f57b2c5173306926471f139a9d612a0c74e119341f8075390e55e203d787d9edeb4ad5a064b18870f6f0f7ffaafb2 SHA512 5c4eb4aa1d3f7d1ea01c0f7ddeadacdece6e144fd4bdfc16b2b925d3e10dc04de3a6db69320b79a96c3560052616f001d2c09e7a1bb4f7b731e2380a7ecce068 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.2.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.2.ebuild new file mode 100644 index 000000000000..8430e3fe8c8b --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.2.ebuild @@ -0,0 +1,161 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_EFI_ZBOOT=1 +KERNEL_IUSE_GENERIC_UKI=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} + +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +RDEPEND=" + !sys-kernel/gentoo-kernel:${SLOT} +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" +BDEPEND=" + app-alternatives/bc + app-alternatives/lex + 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 + ) + + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # We need to extract the plain image for the test phase + # and USE=-generic-uki. + kernel-install_extract_from_uki linux "${uki}" "${image}" + fi + + mkdir modprep || die + cp "${kernel_dir}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + kernel-install_test "${KPV}" \ + "${WORKDIR}/${kernel_dir}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + local image="${kernel_dir}/$(dist-kernel_get_image_path)" + local uki="${image%/*}/uki.efi" + if [[ -s ${uki} ]]; then + # Keep the kernel image type we don't want out of install tree + # Replace back with placeholder + if use generic-uki; then + > "${image}" || die + else + > "${uki}" || die + fi + fi + + 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 + + # Update timestamps on all modules to ensure cleanup works correctly + # when switching USE=modules-compress. + find "${ED}/lib" -name '*.ko' -exec touch {} + || die + + # Modules were already stripped before signing + dostrip -x /lib/modules + kernel-install_compress_modules +} |