commit: bb15406d7322a32c0e1186e400f9928c3a410e56 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Feb 2 12:51:28 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Feb 2 13:28:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb15406d
sys-kernel/gentoo-kernel-bin: Bump to 5.15.178 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.15.178.ebuild | 138 +++++++++++++++++++++ 2 files changed, 144 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 7a0dff9243bb..e934880c62ac 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-245.base.tar.xz 7815984 BLAKE2B fd5b339977af766fc292071eeb1 DIST genpatches-5.10-245.extras.tar.xz 4056 BLAKE2B f4838beef428e2913d3861b26989b10f82391823ebc39811402294c23c5a84623dab8b15346ada7aa3c9552727c857ca80a262fd9dcf4f4751888b0454fcdfdb SHA512 617ac2cae48ac2831bfbb5a0bca25e466087eccabd930ba86c0e9f984822aa5ecade7559d4b1c71031b4db7bdb803ee31a4c392ac36413d97a51e2befcf70166 DIST genpatches-5.15-187.base.tar.xz 7870496 BLAKE2B 3ed1eafcf3a1e7b86ab86c92ceb12e45bfb527ec1eb3bcffaf84e27edc55365af68947d46516659ed41c410066706608f4fc33b243c1c2ceede69409c9674465 SHA512 9923dccc7b28abf4a4b83e025be7bbe0c7034b2e489ab8796b58d0c931365a225493360d9f4ddb3b683625bb8c2ab56eaa38615e3d388ab6180ed626a823a86d DIST genpatches-5.15-187.extras.tar.xz 4056 BLAKE2B 03232a96502d2d77574570e07649d37d2007ecf4de1fbaf58ddf7f202cb4367bb692ad96b489b0dcc07419ed3c40997838673a3474bf71333e7a92394369776e SHA512 464b1e647649a6abbe45b34c3448d240c41de89f3276b4f981a7b5922190253e2b60bb1f6e5073ab768afdf5cdabc83f46ce97b12fb3eac62562648954f05165 +DIST genpatches-5.15-188.base.tar.xz 7874696 BLAKE2B d755c6aa6ee6a8053f2e72d7e4b66816b0d8f81a6b99f061d74107b9eef8e2d1e52a8092702256978aaec76630b2b39de9389acdc82c698766af81a924d8adc6 SHA512 e126ace58f4377bc81c94081722291a1af96a7589485d79353533938c2a175d5c555ffae81c1bacd3257a5b37b76c4253a5381147aeb9cd91aef7f22596eff67 +DIST genpatches-5.15-188.extras.tar.xz 4056 BLAKE2B c24f9df1b68911333ba3fe7d63e6e9b60c8021022111328017c3ac5d4be780c0e211b03fd8fb1d3c8f5aa56882058116416ddc079539bb8b2fe0512391a8d1de SHA512 a691582c519d733ed41815985fb307c5c156d07bc707a555998a97e00f4beb35762424a9d0efcffb606c992d5933c918614888fab27822f69de0ce8b30d751c3 DIST genpatches-6.1-137.base.tar.xz 6788380 BLAKE2B 365778dab67485d413506657e7dc1e0b735448452fe2168df6a39f7f7e998f50d8538e0cb0f9d48cafc11a6e39923bd584a68b330a7255d77277d08135f591f1 SHA512 01522cf179ab48bcde294fd2d6e27bdad0681b0e63ddaad03aafb1b7555fda3a5728d3bcc9a2cadfd262e8ec2535df7ca1f538ad02f916cd4a1913e621770f67 DIST genpatches-6.1-137.extras.tar.xz 4056 BLAKE2B 8a39c1f0b11bc776f301f6a750af6d7416a20231c7170f50080a61b40071a55f6d2906193d76d8fe4837b4b494fcf0a683a7325ebf18eaed6543c0362c78a6ea SHA512 9739342cd761efc0fb4b2d09f147d721b8099ec0594a0190a0f39fbb23b131068c6127be3b0083a1e60c4d4120b3437bab8b4608fe1805724e513890a0a46bed DIST genpatches-6.1-138.base.tar.xz 6804336 BLAKE2B 31d8912c815d4560b35bdaa4fc46597d641c63b693123ee34678c6f9e89a808e3d0ff90c762d601d2caaebd6194083cbf55ea34bf8df68157fb51cf9d603b766 SHA512 f72c533a8afdd81a17fdc27d3b5d7323447c81d70a1295ca1aa949cb1c5a469a1dd84fdf97f81cb2ab762fe6ae09716f3430da13378e4dc08d4511c6dfa81116 @@ -22,6 +24,10 @@ DIST gentoo-kernel-5.15.177-1.amd64.gpkg.tar 68812800 BLAKE2B 89525a07fffbfe9117 DIST gentoo-kernel-5.15.177-1.arm64.gpkg.tar 62556160 BLAKE2B ebb2a5d617a42cc31804e260a40d1ac773dbadef0aaa3f0ca336f8a67b45d22dd73abc5243e98a053635131c7bb730fcc8cdc2bd38e3760afb990a0b6021efd8 SHA512 6b6e74a709ecc1e68f0fa7a43f8368e0f6063f24c012ff33f861be7ca4f1ec67c8d0cd0b2f77c554f718441baacea264b259b7cadbd7e350a0cbdb6c17b112bf DIST gentoo-kernel-5.15.177-1.ppc64le.gpkg.tar 56842240 BLAKE2B 390a2e318f9b69ae0feea468879d463040d3c91c53ee1f2f6a5846ecb596b1af70374287af39189fc5c898ec991e2da88912c0be94442423af3a1b6a506c0664 SHA512 16e9291e64ce8d991fbcd2f1a2dfab763c2bc1ec460497cb84ff199d9292fc5b0b2a95ba73007caec098bcff468956f6704d51a56ef83ac55a80399f17afd66a DIST gentoo-kernel-5.15.177-1.x86.gpkg.tar 58818560 BLAKE2B edf3a01c8e950ee6313e417a5a166514ed783de37cf0bea390d182687e589746fecfc515a0583bf7fb4d6b679ceb0d8d3fd4c3f62a2d51748040601e3d4979d9 SHA512 2eec38df6d5d4340deda0c7f4453cedd65530855e4a248f25305186d395146189c0fda76d1b089fe3efa6d6a070f376b1845968d2d15213c37f91ba31b942689 +DIST gentoo-kernel-5.15.178-1.amd64.gpkg.tar 68812800 BLAKE2B 375f04a2120e9610cc4f732b2b4f6473cc2f10906dc5ad53dce6e6557eff9dbe324651be253c151275312f8fd2cd8a4e990424939174d9386b614f475d8f2b2d SHA512 a447ed842d0ef30b032b44277adb90793e108ce4fc11ef2b1118441e047444d7430c3f3ba272878b93f9f188e4d95cd5b0c2239110c25c5340fa885bb38c9b9f +DIST gentoo-kernel-5.15.178-1.arm64.gpkg.tar 62545920 BLAKE2B 656ac77ee6c6302658328552ceb49c2573c7f1f531fd98ded052542f9f00efcfe41ca543e4c1efa7560bdc68a0233fb728f8884dba7a2dc93d3781572a0ee2a7 SHA512 ea6bff39e202e6b42f91b792f28c84eeaac9c4721b28f4e6bf32376e04976799b5bc6fda0fd128f9e07860276e63bc0d9fdc6ac47b92c71ffbc86e984ba8c0f2 +DIST gentoo-kernel-5.15.178-1.ppc64le.gpkg.tar 56821760 BLAKE2B d945aac6de7d5f0c52f2c28229ead725f5f90b885b1273b2eb5c9717bac166e6ec7017f3c9b0de9cd359e1b156ad312dc83ab9a431764482bb5dedfbe53c293d SHA512 c38a5c86a9742a59b204a6a3b732712c8007838aeb62727c4277169992ea17ece736154e5b2b7025541941a159b2e9c24b4de364bbe3faa35c9cbc931fce82ee +DIST gentoo-kernel-5.15.178-1.x86.gpkg.tar 58839040 BLAKE2B c88026b391c310754d4815de636545482631823afa0addee0b5fd2b7b8482bc40d3af61e44992f6591591c199f49ec865934c2e0778ec270c2fc6445afda4d52 SHA512 e63dca02ef96c806edc4ad1d57bd89992bb7a080deae65b307fe40ead51eb5de9a906586f85365cfe28c0b0408496d97181b7d6e390d31823f00fed06e2ee6e3 DIST gentoo-kernel-6.1.127-1.amd64.gpkg.tar 72970240 BLAKE2B d4eb96f1c4a079435ffdac65a9d80aeccca179777bce1ff8fb4eb8f9ab8d1b5b2abf4757359f8a131568bf3125261d52c071c852ccfc2faabc100b660fd7680e SHA512 0957dd7b06881e63a155a4921f4b7f6c0c51fbe85b0d9147ea2d2fd2458b600215e7f1c228c694ae726c7f9811383ac1a1dd74516abc40370fca2e9baa1a7eed DIST gentoo-kernel-6.1.127-1.arm64.gpkg.tar 65720320 BLAKE2B 6caacef792c877356025d81948c50a6ce3644d6f7f7bc2f69812f3e0a393cddc14478023e0c8d021fd4bfee4559176d04f3ef10bc04cf91b43ac678780888ef0 SHA512 c6ecabd8ea8ef6e84df1e994013aba7754017e5893928a71548e3ffb3312b4ec915e8f7d540acb8c489418978e97d4222db9928142286ceb210bee753a8bca98 DIST gentoo-kernel-6.1.127-1.ppc64le.gpkg.tar 59924480 BLAKE2B 8e67392b33fbb236c68e8bb23eb1b57f1967f9bef3e6414b4a18314eb348d5b14b2965277014ad18a43acbcb060c9ebc5bf9b84a5edfc8ed486d2461185e5db1 SHA512 b3d5806bccf7fab306717d223222e1a6dc71504cc67a43993661ba4d759713254fbcb600ddb3bffcb20ee35d17b63b554816c39171144e7c64474f53d0b7acbb diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.178.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.178.ebuild new file mode 100644 index 000000000000..dd88c26ac6f2 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.178.ebuild @@ -0,0 +1,138 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 )) +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=" + 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 HOSTLD="$(tc-getBUILD_LD)" + if type -P "${HOSTLD}.bfd" &>/dev/null; then + HOSTLD+=.bfd + fi + 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)" + HOSTLD="${HOSTLD}" + HOSTAR="$(tc-getBUILD_AR)" + 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)" + READELF="$(tc-getREADELF)" + + # 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() { + local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}" + + # Overwrite the identifier in the prebuilt package + echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die + + 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 +}