commit: 5831b964ccff6e6c93395988c3361ff467160f0d Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Jun 16 17:31:53 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Jun 16 17:34:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5831b964
sys-kernel/gentoo-kernel-bin: Bump to 5.15.161 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.15.161.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 4facc9bb3e6e..b850f5e569a4 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-230.base.tar.xz 6876488 BLAKE2B 9fad0e5e713c4487cfdc3bf370b DIST genpatches-5.10-230.extras.tar.xz 4052 BLAKE2B 5a1b37765f94e0d259c97b797ff2c64f9347f98882d5b759a42f5124da0cc1abf19226c89cdc52a74dbbb693c26f066610480d99474601d0f8fbd524a5778a53 SHA512 66b82411df58f53e6557d4afb6d9dc34ee529b32bb41415e345255aa4c4deececd1720be6ded4910aada1813476f7fa8aa51d5dc288bdf55b08b8f06dadbef2f DIST genpatches-5.15-170.base.tar.xz 6810444 BLAKE2B 979cea1e399d312eac94ef4e4fa417132fce1d2522713e78234dff05db3fbcb13ead3fc679d2d0f42f801d8f796cbea47cfc2a64d212ea1b6bb3b312f775aa86 SHA512 0d75430202e4f9e59ec923fa9cc9a11276b10ec1dfff5fba30746d9e8c60bc82d2ff027463ac4b17ac048285438a7a6657679f6a5aeb2caf10391016163ff446 DIST genpatches-5.15-170.extras.tar.xz 4048 BLAKE2B dd052053b2f791b558938755ecd1946d55aa52374acaa98b666aa2017d678d3552d161b36e50bfce63b9a71f0e252cf298c8416e3c6ce8318854886e9c1caf67 SHA512 b2befc9604dd5fecdcdf7d58ca219fc780548b439780b64c3e3eabe5b3a53fb33af30af8a0807b6d5d327381d9541f94645dd0f8475bfdebbe0ca41fa9de7846 +DIST genpatches-5.15-171.base.tar.xz 6912380 BLAKE2B 3d5572ca2854c0dcaa6000ffc7ccc6921115f95ada5e8902c5681c5e0367f525bc658afd504dfabf25111ad1a9a6f6de1bf90e699fec38be68997f1e780f4715 SHA512 176edf85ec8e212036ce90b83a1a00bae1ea84770d8cf60c4f313498a219644a29774da6be34247ad55e6def08b4fe2f1c4a880c528c1d98e63a65acb0ba5a2c +DIST genpatches-5.15-171.extras.tar.xz 4048 BLAKE2B 823bf5a1a62a3a4f97ae296bf78581a3b8ba79134e8ec7098385e23783c317509f8320afb9ff0c25ebfd5b3fb32aa883afa970ac86c550c2d70613d8af7da5e3 SHA512 f2eacb2ebda97e86c20f24a6ab591b6c41fa831947610febce3589d32fb326d9439b63273c2ffe82630157b7559141598e5bb5edbe939e1bed45bca802085f1a DIST genpatches-6.1-101.base.tar.xz 5248940 BLAKE2B af64a685e905a51004350b263e6d5bf9078518a979bb5d192752672d15f54a1dd330ec71c33dde0dc6afce11f5d53bc62837ba400314978d740d4adfa3f32778 SHA512 fde5c4d51ba8cb095743d936e6b7e31ad4b7b04b46db66a4746d8fd03205a0b18a17e4d1d08210beaaff13557fd47a9752cd36a28abf19d879639c175cf755fd DIST genpatches-6.1-101.extras.tar.xz 4048 BLAKE2B 8664a60521d881f8e80103f2509831e35763c891cd589c907979d49d7af96d699fec7f9e8c3b8bb90bcb442ed2016890769f53d4ff205d76d25521094b24091f SHA512 79276866b12b61d11109c27ea31eca847374a3938c20e4a07ca2a6f63bc62ae0c89a9a96e65227ab123fdc85c171cfa100261444fb9058a30d70b6ce4c175dba DIST genpatches-6.1-102.base.tar.xz 5362424 BLAKE2B 74e978125492fec046201698208fa1e7b28af5fbdd89f2a1225de522313d92b7ae196771f922164e832b73e8c6f0fca498de10147f705a2a484a3a324ad8a198 SHA512 0e5725a4f5bf7aaf5dd24b185ce3037566032f6726cf3b288b490475bc95ff67c9d5d45b5f3ec4fbeebe6d827ff569eeb9ac5f819c8646fa838cb842f5b36091 @@ -26,6 +28,10 @@ DIST gentoo-kernel-5.15.160-1.amd64.gpkg.tar 66365440 BLAKE2B 126ad491f0f47cd585 DIST gentoo-kernel-5.15.160-1.arm64.gpkg.tar 59760640 BLAKE2B 99ea0369b0616d6fddd2751b3c37037bedfe70ba470a05d98891e38ac038c2f3f6c1ebaa4617e0b0697177e8535909d1b30fe3c0c67cbc9e3049ff559afb0299 SHA512 a886bfc184a2d1d83d44f15309f4b1873533c858d8cd0d1f13624c2616c4055bbeb1b5e6cb58f1af4edcfe55a577332432d947d4390b78f44414361c11aaf913 DIST gentoo-kernel-5.15.160-1.ppc64le.gpkg.tar 54988800 BLAKE2B dcb3e7ce253b9d1d0875aae08706bcdcce8ed2070bb75d10bb9bd16eb78cce641431dfa4874d80554fcd250c897317d31f9b3523efcb8b561837bd9189a48e29 SHA512 c1be66fdf4cafea88bc4e41a754623055fa6a7bbbdf1db51ef052a3be8baa755b161ddc2eded4c599320ba7939a8a51a38b5083b665e9769471cc1225fbc2bcd DIST gentoo-kernel-5.15.160-1.x86.gpkg.tar 56156160 BLAKE2B 85c71cf86b1b9204f4cd3b8a8cce63cdda780367f48fa97005cbbe9230488d9e8236c8126e85fd0b190e903126ab625a0784ecc7f78956cad12d6ace971b3807 SHA512 1ecd673e87f86fc92743f625104a2164dc154848cd27117245d328140e6c12a7f07c1afaddc841237797c753674c94f013cf34fcd4d2d588777f4c3fba8ddfdb +DIST gentoo-kernel-5.15.161-1.amd64.gpkg.tar 66365440 BLAKE2B 79e6a54f8a324a262d043a3703d148378414ac625b94b2433e87d10c956b1bb4563f4e5376e96365b7b7ecbc3b28fb8f22e5bb9ddf5bb4f7d70fe7af96e31c9f SHA512 625ab0282dc6790e8f2b5044a006e84eb83b2442bbe99d7d13e84aa3ab44aaf34b03d887783a5f071544b2fa656898d3ab0333e038dbf7725dcf199a6018aa82 +DIST gentoo-kernel-5.15.161-1.arm64.gpkg.tar 59750400 BLAKE2B 9c7628d15cb44339ac14df377bc6c40bb1ba844fab96464a92247c02aaa3dd5f15230b7bc548bfe2d0546b81fc7be575fe7f4431401e24adc70a27b64b508b28 SHA512 ed3dfdd2c3aac153e81655e73bd3680bc2f57e902371ec675abb8768c0313a9473895eb3548d0f913892a4a07cefd043fd15d24062df1856209980fec0108847 +DIST gentoo-kernel-5.15.161-1.ppc64le.gpkg.tar 54988800 BLAKE2B c17db3167d3acd24b6f2b53404ec88b7ce9b939187a8bf8b79ec7888abd3a6f051bed22dc357e6a3450c2c1353d491e73444b303edec023318acbc51b3e53bd3 SHA512 772f1f7aed28af3ae0728d7e66386a2431651b9dd336135db489902203c5daa955393252ea9143af3b007026f611fb09a5f98f3eefa85c4d413bc86b87a7ec14 +DIST gentoo-kernel-5.15.161-1.x86.gpkg.tar 56176640 BLAKE2B b967c7cd779138f9afa505510f2a9012351b84199a1db045a7e00c37decc99c1ce13ac6f5062ecdd0ad2111acf6416f270ca55991d4fe2a2a849622cd36d6620 SHA512 72f6660a71c4627569ee24a1518da1cfed23696073046e0b8d00e830568fcca25d6c7e0341584fb33063b810e705153c3161e249c25c668af38e8d73647f62bd DIST gentoo-kernel-6.1.92-1.amd64.gpkg.tar 72652800 BLAKE2B 14e28e212d799f070b6b5bdff86d911d01a154395699c39cb7fe67fba4f9738d7fcecab4ede9d80932f90d33f0cc3d0c6d2b49cf12a66719d46e383ebfc03a03 SHA512 b6ab735688d96ea30fbe8ad316694c3b1938cd0a926d8ad3721e9eddd929588e9a92525aef90e2708df5d10e04e3be47a5a7b18b56e0fb4e1fc3e10acb2f789c DIST gentoo-kernel-6.1.92-1.arm64.gpkg.tar 65628160 BLAKE2B 68e76e064808c7ddce86be971ce370e1ee67f0b16aa0fa0a0c558621b4d3087150041d967251c4382808c13234a65ed186bd53c98bf5bcbc537b7c6bab79b862 SHA512 909efc952e243022c63122ec64812b9a10814022f98bad232da994c30c0a40e752267215dfa7a7e7089250ba9a8cebe2a33a22aae6cc831b98971b42d90cb725 DIST gentoo-kernel-6.1.92-1.ppc64le.gpkg.tar 59904000 BLAKE2B cbdaf21da137dcb91d6cf0b5e38d43e6b09c7af21856ffc389a67e2308ecdebb364270bdc5a87eb94c2656052d78134d5c1676334bd37b686ba715438e02520a SHA512 adf7215407d640bad2fb248809207ef159e532dc5464bce0d7983c46ed2d394e4cb42a72357ddb9059feecbceadb67da51ddae3c7e7ae5a51eb8eeecbd26ae56 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.161.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.161.ebuild new file mode 100644 index 000000000000..eff249432fc9 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.161.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2024 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 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=":" + 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 +}