commit: bc8104a05c1db077792154e010a982d49cbf759a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Mar 3 19:12:25 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Mar 3 19:16:42 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc8104a0
sys-kernel/gentoo-kernel-bin: Bump to 5.10.172 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.10.172.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 217570b31fdf..d9ed3b0befc0 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.10-178.base.tar.xz 4951584 BLAKE2B 179abbcf89b3ddf39dd4df86568 DIST genpatches-5.10-178.extras.tar.xz 3868 BLAKE2B cb6e6ac11355b5a8ae19a464494a7e418edf5d475b793114a0f23f3e4b173dd906f13df77474a9223a0cd3359c2647a736939fd2f98744a1edc42c870ee14b59 SHA512 24665f3effa01f08f4cff8e84ada35a019b09d4173e29f1413674635b14b25d78cf2177fe3f99ad6bfb657c56970b010a3cb21e3defc3b03aecb9efe3218eb96 DIST genpatches-5.10-179.base.tar.xz 4960220 BLAKE2B ea5daad3714354614f82977b59e4d2ebb6c31371175883195c7e6cb317a73ecd29ee4d7bcb326ad06e2cec855c74833baf13d3c7108a77205a4cd71b647ecac2 SHA512 ebc6d36654dab8862bd1b569564fbd64ec43397148748d9b7d953abfe3da33b75af0d536d09e44cd10cf19719e82fc5d8a403640dceb3fef75995b6c3ea3bf6b DIST genpatches-5.10-179.extras.tar.xz 3872 BLAKE2B e493d4df16cfacef4115e3d673820a8674d66bf4e965e6cf807e39580c4efb4dfed0ce16d415028a3e2edb46e03f3ba4e9063b5e44e6b89e6a9ac0536f5a56d0 SHA512 9bf3a036990f34d236809c5d88b8981a9a374d390b8b10ae640b7ab825a7929b6169d1e75cd7186e22b7a3aa4c417ce7ab222ff6e5f9429f33a1eb31c127ae0e +DIST genpatches-5.10-181.base.tar.xz 4964488 BLAKE2B 2b05c676da465b1627c92400f1290c7755c5c443db0f566fde2a2d35422f84a93875fd0cdd7af5ef331872a9ecb89e802ec48c76914a25d2b6d401edb2022d7c SHA512 2524417fe412b83e380ca55b89403abde41af034e5900daee53b82d7e4183a0345ce3e86e03ac9e211380437f4857163a4e81737d1117d7e02847ad36553c0fc +DIST genpatches-5.10-181.extras.tar.xz 3872 BLAKE2B dd1d27a04cd2215fdf9ae7301d6c90dd0a1e9e4ffe7e295dfe2d6b637de69303d9cd2a00a5adeb33d2c4cc7d984e57e69bd9f998df1da188ae006511fe70302e SHA512 b91ec330f3f87bf7ec5cdc10e6352070161d38d09fea82142b2dc475a0a25d176a262cc0bf24d4a4902e84abea84f6263c3e859f1ebf8f44155e42c5f565dcce DIST genpatches-5.15-100.base.tar.xz 4036256 BLAKE2B da0f271d54f248597d038a09f3cae6a2293ffbcaf9f06ad500060e0b28c57c0120c64f30cbb97b4b4585cc1a8f12b013258962a6599a166f5716e268b0587030 SHA512 865ece0271c674aff6df31d7b0ef8dd8d9643e9e7ab49730bb2892f82e1468f4f086710c62f6f647cb2a4e822a5a5fa2e2415fec8d900f82976bdca23384bebe DIST genpatches-5.15-100.extras.tar.xz 3932 BLAKE2B 55665c7edd0316db7e6a8391ccfc97a3f2c51e9e445bb81e0663ad69405ce577133f2def0e58711b1f8dab0b7bfb4314e05a41183138585eb24c909b7cc8c2fb SHA512 dd32b33616a64fe0f4b319e3424360a29d81ed1c6d94457da0458d7141013efab4933c685468019dc7c023346697d31c902e67d17120208ae408939b2fe1c5a6 DIST genpatches-5.15-102.base.tar.xz 4041416 BLAKE2B ab6ac9c8d03d41594f1f3c0b59cdeb3d045fdc0bc89926026a7b3f34eef38a869da1c9adfa1ccf465486f885dc4abb6c8d09a8c36f2732bb961b365a749e8985 SHA512 2df353c92659d8f41a45bd3caaf33e21542cb01ab210495a632e65fe71e8bee7c31ae7283827bc7e0683737f3a451b617db95b5a8b559cedc8296496e2fa3302 @@ -50,6 +52,10 @@ DIST gentoo-kernel-5.10.170-1.amd64.gpkg.tar 66304000 BLAKE2B 951a473003530f9719 DIST gentoo-kernel-5.10.170-1.arm64.gpkg.tar 59340800 BLAKE2B 0a0cadfc526dbc14e74e4c2f46de39fad57f6fee578e6ce5c1ec080dbcc04de922620207b9dc41669c5f443dc353f76376dd154b731f45219595835528828752 SHA512 4e43b6a43db6ec4ae98e4cda3b52281ad3f69f6d729392514d1d6e388f27e929cf4e7864ff3a33db33b5e6d520bf844b97eed8470b0fd0cace6e0ef7ef8a7582 DIST gentoo-kernel-5.10.170-1.ppc64le.gpkg.tar 54927360 BLAKE2B 165412300fc868996a7441ba396dd1bdf68bdf5f0d402f51338d9708d417ec7bb7ecdd5fdad9deaf6cb2d3746069f43348dec7b86603d33870bcc1340bac117a SHA512 b9b509b386c438b96e7e8c0fdb0c281ce3a4158395619cce7e99da46a99a8a774f025f7cdfff3f0891220f192843189e541d13a42c3a21cfd0d196231df671d6 DIST gentoo-kernel-5.10.170-1.x86.gpkg.tar 56432640 BLAKE2B 166a5f465651ce7b94e7c049630ef1d81d972dbb861a1c5560ad322ac1d277d72c821cbf3637e453ad4f17f296c9b392f974c296cf58b6fa3f36b641ae5f83f2 SHA512 7487d25c1c8efeffa7ee51c52c8d3c2f8b20484eff45cb771bedea23c38d6c797176758cfbb19679331326244b69abfd83dc7aa75594351e52b4d8be8616bfa4 +DIST gentoo-kernel-5.10.172-1.amd64.gpkg.tar 66304000 BLAKE2B b3a6ed8f594fb79abfdfe2071eb6d52b48ab9c947cf82229a9b540675a126d8e7eac603878ea580ffdee9709919ee3b912dafb87fd0a256fa7fb84589320453a SHA512 dfdfcdf82845afa2f43e2a6777c565a234734cc84322f17c89e143fb12196fc7cf80d522ea018fa6cca23054b72073bc817c34e356b7d23e36f41a9a18e76bf2 +DIST gentoo-kernel-5.10.172-1.arm64.gpkg.tar 59330560 BLAKE2B 3dcdd5a9f2ee57dd87b7de4bf29c249208a0b972a26cf221463f8666a083c64ed92447c33d234479543b977e0078e46d2c7aab4bfc76ac145bf63f6ed1eb1886 SHA512 ecede6116c7d3c4c294dfdff644bf2eaa465998c847952d5e9761bebfc4d8eb2a76134c0602e783680519b4ac56b721466ca0d5783e2e0e78ae7e2d0f30aab09 +DIST gentoo-kernel-5.10.172-1.ppc64le.gpkg.tar 54927360 BLAKE2B a42225ced7d67ec88959038dac1f87243e690c338382fad4ffea25a5fcdff8673087a4da628f5bdc9e60d8ae87d629528820e353291d1b7f85d6a1d219c2ab4f SHA512 28dbc6fde9d695fa340a87312fb94fed9049de99854db3fc71f00b0faa64c475e4f12667ae0b2eaf1349c52c28b594af9f9b2090ddbd3a47b94ab8d9d26b72f5 +DIST gentoo-kernel-5.10.172-1.x86.gpkg.tar 56442880 BLAKE2B 7255886c9de05cba2e2d4fa65c2b48a0de69c08cfc0aca94d797d1f51ee5ac04c2af0d0b651a7c0a492e70561a46ce34976f6af857e0844eeab0a853a41bb332 SHA512 aed2ea8a1e4fb4026197e80335d019b95aab7dabc3de7d3f20bc1a80186e1c21e25d5a55a874e9367172436216865238f9fcd4467f0a56ecccd8a8835046b9a2 DIST gentoo-kernel-5.15.94-1.amd64.gpkg.tar 69591040 BLAKE2B d8659c0584ae851b05d933fed2a94f05eb8c93591b07ae77b8160d397fcf69d2ea8819cbdeecd294d3238377a4450789c653012a9e50223ab98aa5a229a98f11 SHA512 72bdc70aa6c8e51b1896b5872d9bea372305866509a34fc4ac99cd88b01d191041d02c18a0499b03d119b79499825eb97d105460968ac96848274b8fb8175f13 DIST gentoo-kernel-5.15.94-1.arm64.gpkg.tar 62556160 BLAKE2B fc2122980f798c1313913adf8a28436906ccdd7bb565166ffc5039fa66360b2a7ff1c2e97d579c85cce4dfa6fb471f92d973991998fd4b2a2637adda55130921 SHA512 9f8566bba0bde6ede619a9379e8acae7d3cb1364c888509755cabf0c64daaf3d93ff0085102a2301b0d5c38aceed44e609947099ea9d9d32edb1f04e3b0ae54f DIST gentoo-kernel-5.15.94-1.ppc64le.gpkg.tar 57088000 BLAKE2B c5533a6a4842a765346270addc6ff1590ad60ac5df94be8ac0b3209098ee058e09d54d61d8c639bc09e652cb38b179257b62eb33343adad53d5c7d076c5b852e SHA512 4c4385f4b4a2776e67c95d1be5f59c1f00e312dcab740a07344a9118716f574f97064032c93e7b1c4ef97b9ce29efcfbae598297674f4768c09b787b5630db4e diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.172.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.172.ebuild new file mode 100644 index 000000000000..8f6c357c55e5 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.172.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2023 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##*.} + 9 )) +BINPKG=${P/-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=":" + 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 +}