diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-25 21:48:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-25 21:58:17 +0200 |
commit | 6a4217d1cffef021f584fcccd317ee9ecf3354eb (patch) | |
tree | 9f6aa63fedd97641dd06d123ec627beb88e2ca3d /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 6.6.32 (diff) | |
download | gentoo-6a4217d1cffef021f584fcccd317ee9ecf3354eb.tar.gz gentoo-6a4217d1cffef021f584fcccd317ee9ecf3354eb.tar.bz2 gentoo-6a4217d1cffef021f584fcccd317ee9ecf3354eb.zip |
sys-kernel/gentoo-kernel-bin: Bump to 6.8.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.11.ebuild | 161 |
2 files changed, 167 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 6f01c56812ac..58f104f1dddf 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -26,6 +26,8 @@ DIST genpatches-6.8-12.base.tar.xz 687664 BLAKE2B 3c27ee511c258f3659d7f8cd5b6d47 DIST genpatches-6.8-12.extras.tar.xz 3736 BLAKE2B 15a15ca3097dc42ac5855e59fe61c961854c1afa8adc719c761ac58bb7c869d3240c228b0963a91927a9bc0af6998b4c40e4d286faf7d2defc2f21029d11c114 SHA512 4f1c8c07e81c0d1ed110bd4512d2a16c3e202c47d8ab6bedf5213cf6c2f8675e9b543e52dbce50fbbf550d88252e2c1c19c2465ddd7907f11a2979fa92466a7c DIST genpatches-6.8-13.base.tar.xz 781972 BLAKE2B 7e8d26cca0d5fff4e1dbbd7088cb88ca705fa80df33437e1d9ca16305e162757010fa5c3ae5c869c20ed8a3bcbc72f89e055b5b8af1bb9110411e04e920e19d5 SHA512 e57405fe56630baef2d062973576b33b1528640491164f1cfd64bf230a9f2afb0c75e2ac6bfab2f085b4b7aee8c138315a9cfe56abc52e7c1a5385e80eb66ef1 DIST genpatches-6.8-13.extras.tar.xz 4048 BLAKE2B 095bac7134081b953aa4c7d5b40305ac572bee80eda680466a84c45bc4775a344dd40806aa6c0600dea61c9b7f9775e7b7481a364cc84aac3b8169bd8830ab63 SHA512 9f9a02ba1b8e1f13946d63d93f1e61959fc8377aaffc4a60e5b46e9f632df98ccbcb998f37e86c0f640ab478f6d0e7e0e92b1a0d04d076e1a0591841d90252b5 +DIST genpatches-6.8-14.base.tar.xz 791700 BLAKE2B b265239da8f8bf3c61e2f007d06a55205e2bb89f48b2c6fc2cce839205a65ef0ae412dab4908d1ac55de15257961035772642e2401f3a575f354539bafba6b6d SHA512 de7f53507e6bc9a2f752109514bcd916be51a4f7a48f92a8493d6316fcb3cd7379ac014e5dc50b716f67e157f5d27d042b24084e060653c7770e5af0a411fe05 +DIST genpatches-6.8-14.extras.tar.xz 4052 BLAKE2B 0e5895a033a4eaddbac8a22adc57e26d6a21a4364d0cdbc6c170b0c93d463e8a0ffa0c56dd011f169933b29b3b10cdc815301804005b005e1cc0981d677757b4 SHA512 43a3b2777f73f451a5cb27a77f94a34d8f60e41847997b151426319a7b2a05f925d0de6f61f26676c68c1d674b1cbd1f41f32dd5e09c8d9b220a929f9a5491ea DIST gentoo-kernel-5.10.216-1.amd64.gpkg.tar 63252480 BLAKE2B 787a17da61971c776a2ad55f2d95487073e31a0fa7765b564ff834ea6f6d406b685775b542d3eb25479c10c4348cace5a8c563b2c76c6b39054f0c6e6631a0bb SHA512 46fff78b78b7ca0989e95fb26bfaf9beeb353b943a10c8f6dc837f47133b0109f69d8810da6de6f006176401dcc04fad4a38d1a4b07b56fffa6672c96f26e714 DIST gentoo-kernel-5.10.216-1.arm64.gpkg.tar 56719360 BLAKE2B 61a5d2a3eb4dc5434646cea9103f34c8b228c6eb337fd031e669836996e3f28dd718106138af1bfc6f8c9e193e6976a0380e20146ba9f131c876255a9e513ea8 SHA512 848b340e05a9be6cca74c5f1e0f876c74836929f84a1bee43bdac53bb65723da4fc6b56d6c02cc2179b01cd97a62199aa971e6d3169c25fdca6f8603e0639884 DIST gentoo-kernel-5.10.216-1.ppc64le.gpkg.tar 52869120 BLAKE2B 3f5eb4bb82b76321988baf7187fb550794fc246fc369d2006a2337c24c5793ad3e2f9afa1c57b5121e43283d3195e1042f2ec35dec25593c0c7a14d74ad0acd2 SHA512 dfa92819e87f23d37cd51efae717837f3a08300f9a3bc7b7f7a6860178e5b87ec8203087f6d3120565c32589fcba9a70a473e3c708fd5522f45eda8bcdd1003a @@ -78,6 +80,10 @@ DIST gentoo-kernel-6.8.10-1.amd64.gpkg.tar 150886400 BLAKE2B 50f2ce73e9480045b6c DIST gentoo-kernel-6.8.10-1.arm64.gpkg.tar 122521600 BLAKE2B 3175f3fe3fcaa08ec5813177475916db3589490e7fc1ebaa3f5f22fcc5d1ce251f934c5370ea16b17a2afd89dd7d46822e7ac0cbe739d534610d6181b2e4c5a1 SHA512 220b10b15838f179cb7f084df95d758f41e26dd2ed821152b8d1bf7cd60de39c6e587825bd40efdcf5542104b099d112a8165850bd270b32511591d7a4b52ecf DIST gentoo-kernel-6.8.10-1.ppc64le.gpkg.tar 66263040 BLAKE2B a896e0ef78c1055e3d6d71752858860e568a2b3b4c40f73836f0e1cc28eb38915bfdf8a04cca2b7986005b610c17a773f4aff624b9250d9dead86db064f1cd00 SHA512 0b1ef3e770775c27b647b37a4366fe33afc6df44303116c0444752265003dbe5ea5d64e1ccfd276851afe6c0b67b1491f886de76fc7d63408bebd14b21470b30 DIST gentoo-kernel-6.8.10-1.x86.gpkg.tar 69980160 BLAKE2B 0a2e534c443fc2cd9db6505ab355d6506f0b27aabb00d286dbd40d64fdcc4b1a76190b722d9a1220bdfc16756791725ea6c9309ed1a154db5b33d37f8f4fa3a7 SHA512 9bbe5d5cb879b669d37b49c136d59f31cdef2bc1b02e458e1baa1cc93cfc71a93eebc3bb0c04cc88a7cbabe2b1aa8be506fe84bc760f02c8c845f1eb33d2aa0e +DIST gentoo-kernel-6.8.11-1.amd64.gpkg.tar 150906880 BLAKE2B 4d5db6a1afc322eaa62ceb32bb625837a494a7b0953c1f59eb844bdfa907fc9f5e1883e7a39ac9f2f1daf6e1c15b8e15125a093adc7b03e53f2bda0b394f1bc3 SHA512 9e8352a5f5cec9d11136a3eac5a6e304778379bbec9ca0b5a8334e6af6c119ba98bd41b8c0df20553a404bb4adca633f724e9b68a429b45dabf8364104e6e44e +DIST gentoo-kernel-6.8.11-1.arm64.gpkg.tar 122521600 BLAKE2B 77defbedd8b34a3b82ee147b2fbeb2393da4cfef13dd7653b3cd2eebadea44984883ba3f456e2b53df96f3d4ac25338730bad153687d00767bdc7efca78c4ff9 SHA512 02dd96519f4e03e6e61e1cd189271b764a94930fe4f464246d1ba310e55dc856fd213ae4b0ea76c9799dfc6fa6ab545c232ce870bdd9935980e48cf683023b7f +DIST gentoo-kernel-6.8.11-1.ppc64le.gpkg.tar 66252800 BLAKE2B e9dad28b718140c136f1022e66db0f9ab7faded9256e86a4d3b0ac88273ac9e2588ce224c3bd8acc3733f1a4ed75905518c36149e7f31977bf38d21b9fa44c30 SHA512 f8cc8e975bcdeda8df58fa822f366a73ce11a2ce7103be6e8a529e16efcdae0c016ecd61d4812f8b7fcd1921003cce6053fcec2f8d50f83c410585d315a2581d +DIST gentoo-kernel-6.8.11-1.x86.gpkg.tar 69969920 BLAKE2B 2db08dfdae5cded69d3650f6bccc881b0127cb4b1776dfedfbc83cc60f310289ff42e1de414a80108daf0ff5d10b2f30cef85fb844a619117faaea1fa624112e SHA512 e30a5f9b8de7e5c4be3ff991829b7d820be7584a1c4913454f0f2d0917dceb71f4136e1692e1204a62a8f7a5176332ce255be33dc38fa7050597a624caf5e049 DIST gentoo-kernel-6.8.9-1.amd64.gpkg.tar 150845440 BLAKE2B 535d166d00958e4b4e499704eeedd76ff24a40df66914fbd54bb8574091d0c71f743a3da19f1f0b39798d537a56e5e45ec9d8dc0dca04fdce04d19cc3f823ae9 SHA512 09c1baf319b212def006d285dc307c59cf581dbdf892998f7eb40d76f453316ebe081de52a068688125091459c6bea5ad120c5851f53fa74b6c97f4014fa28b6 DIST gentoo-kernel-6.8.9-1.arm64.gpkg.tar 122408960 BLAKE2B f74cc8f857e07dc82d1c6150074557ac33e668c4b49178612dbfe07e5291038f0ea4ab21dff4f3c556db5beb003cf6d39775685833106b9c51c1aa27178d47ac SHA512 7c87576ea64840555c1f38042c87359219f6b35f35a557ba155b9c930ab72c7316b58d7c712565ee6296c80591bc0f45116f56ac286c756bf25433003e25e07d DIST gentoo-kernel-6.8.9-1.ppc64le.gpkg.tar 66263040 BLAKE2B b9e3e8bfe611dcdc66e46623e2adf09d7d10bf4624be28e1d7df312ef6a2fdce40af669c4a5a63698871bea0c70361ce580557607f1103b873398ff865ee5d30 SHA512 bcb129a0941a2b5ac4847a97c688f6144dba0db1ae43542b7cad9ccef7825d9a8dcdb6218c43f549269a2682c59fc7cec86134067cafe0cb0fff3dc31566129a diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.11.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.11.ebuild new file mode 100644 index 000000000000..9a4e621d4db6 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.8.11.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##*.} + 3 )) +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/-2/-1}.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 +} |