commit: 7b5ecafc4dfd3390b3a1f186d6e0073973696703 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 22 20:11:27 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 22 20:12:43 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b5ecafc
sys-kernel/gentoo-kernel-bin: Bump to 5.10.169 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.10.169.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 3638205f64cb..58c7ca5e1e89 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-176.base.tar.xz 4910744 BLAKE2B 119dfaaa5a2212f088f767e3600 DIST genpatches-5.10-176.extras.tar.xz 3868 BLAKE2B a0a3808562dba6540d632b25e3a417f9a2514dddb13cda9692002b253a4d033bb58ffa4d606fd57764024f21a0907a94d93c2130deb9bbe92a60f310179e761c SHA512 847fd0c0ce8bf3aaee9c6aacb527d8590439f44f5e1e19ffda883b5ea7d8bbc502cbe5e126fc181eaad9dfbced8ca664e459b70085bdc6d51e7f001bf4901f2a DIST genpatches-5.10-177.base.tar.xz 4940872 BLAKE2B b2a81aebd81bff1144ecb1732345cdef2a91abc5bff2aade07770cf11cbb5475c58ce2e4c2dc00a5b292948cbe9316d4812dcb534da90bf9361f18136bd67194 SHA512 b6c25015719ad70a3322d65a5f796ff075a38db7225d90b5bd18af22348e46adb547a374c0ab8fb6790f30d211570dc6742aa7abf0b24987fa4e6fc49b2a7c3d DIST genpatches-5.10-177.extras.tar.xz 3868 BLAKE2B bffc5ec0895066aa1e497ebf412a298f1dedd4ac86758f72c364fc7e56508aee3928725646742a66bb3979b8ed33afa7539e3ffa9c0f350c0f81139f69671287 SHA512 2c0b9273c933764c5c2fcbf6176b3fea06777aca18d823055cd69740519e1a37027a058238a0a9c15b39f1b29417fbdfd771fb7247663097fa717889b5492641 +DIST genpatches-5.10-178.base.tar.xz 4951584 BLAKE2B 179abbcf89b3ddf39dd4df8656851cc180409aee9684505b47fcb950709d182a370db484a650f70a48dc51a2841b98244e3a98a06dcd5dedc8c6a976aa3e6939 SHA512 c6f6f60ce523e83be2f7ebdb216ef78ed9e27d5eb71e2e0709c2e346a3826624fa9aae1aef4d162e391783032cd7d06ee9761c7c42546de4c1e65b618fb3ff5b +DIST genpatches-5.10-178.extras.tar.xz 3868 BLAKE2B cb6e6ac11355b5a8ae19a464494a7e418edf5d475b793114a0f23f3e4b173dd906f13df77474a9223a0cd3359c2647a736939fd2f98744a1edc42c870ee14b59 SHA512 24665f3effa01f08f4cff8e84ada35a019b09d4173e29f1413674635b14b25d78cf2177fe3f99ad6bfb657c56970b010a3cb21e3defc3b03aecb9efe3218eb96 DIST genpatches-5.15-98.base.tar.xz 4003192 BLAKE2B 79d4fb60a5192137571109ffaefdfba23ac589102539cdde89046f627f39e65a52a44a83607232b499509b8bb4c341e2fd26ae971587c9574d4ac87d8b220893 SHA512 946a7638d19d5fd610075520e529a6c5a47aaa433b7986493f62571a7dc541278013a5006bf1e745496e4eb98de44af56f61d23679c139a719a8d5bc20c9e734 DIST genpatches-5.15-98.extras.tar.xz 3932 BLAKE2B 4e5dd4f8ba6d14764a6546cf7e64dffb3ddcc77678b7d96d2498917f30561792c904c635b0fce7191b7c0c65549fa769e89befffbea5e53a3cef64c673937c20 SHA512 337d95159432cba3b85511cf80c350a8a2f67c65b72a90b26ddc98c01d2d8de70d9b6067e0573c5c339a5bf64973d10c06b42001ee19a7add3d672e4577d0622 DIST genpatches-5.15-99.base.tar.xz 4024008 BLAKE2B 82205380a55439dbe6f8605d09078d7a349ec60180204ced6c9902f340077c800cf515f3f513c69110eab37a8daa386a82ec4ba9e84dd02299ccc45379cdc659 SHA512 72033d94d3d509ecefb5a54e82906408802118cd985f617ccf7465e23d19363668159998dadb950bef58af11bab448110e6c753eb6eb7dd107feacbda4d67f3d @@ -20,6 +22,10 @@ DIST gentoo-kernel-5.10.168-1.amd64.gpkg.tar 66314240 BLAKE2B 17cd291cb4bff82c4b DIST gentoo-kernel-5.10.168-1.arm64.gpkg.tar 59351040 BLAKE2B fab2fc6aa2b3d03adcc1a8a91b2cc477310360bc494fd6125a544033c0b387ef22f71fdc9c2a40f9cd8fa922bcb57b210d868496a2a396352ad104bd3b37ba5d SHA512 7679427a17a9e7f3a5453f41752c5bb60f3312c8363bd3490cf85edd3c3fb8719327fd542474979655f3b5dd63db3d9cdd337cf2d1e8a7771ab8ab956f272d99 DIST gentoo-kernel-5.10.168-1.ppc64le.gpkg.tar 54927360 BLAKE2B daf08f4a7de35b30b94875a0e7c1d3a0003a0e8d0d952a6a5f5ab2915fd5121f6db7f8e787c8599a78b5b6b21d7b2201d2202a2b4534a3c2c20bf502384e6528 SHA512 b6da41e17bdb1043b462102a808ae164de4090339d36a6f0a18db6bfa91880e08b568109464aa7789fde4a2a0caeca3e225ad986bf8417b9ef341529eba4ade6 DIST gentoo-kernel-5.10.168-1.x86.gpkg.tar 56442880 BLAKE2B 3f18046b4ae785d4ff09d8cb0f4a69ebd531e6900491cbb35858436684d21331b7ba8b93f1f4885bec5b71958601022b8bfbdbb393f251d4435665e3ff8fc6e9 SHA512 050bcbf0f021bebfba82563eeac279a22ee254108141e87ae1be9ad9a7cb2254181a5273d7514abe908c0df61c32e561e565aeeb4476a923be517674d1c5a4c7 +DIST gentoo-kernel-5.10.169-1.amd64.gpkg.tar 66324480 BLAKE2B 88507301c2e3dbfd90e02f1a5cda01101d67ae1bf71a3fdfdaddfa74cbc3287362fb53f47a23f2ed0b6aebd652f785f2d00b0b852982d32e424cb41855415064 SHA512 91b0a00468d275e5946808bf406fce05e444463e7e56514b8380bfa1280bd0eec7b1818e193a2697211cbc552c972938cb0c737a021c72c148abc36652a8a654 +DIST gentoo-kernel-5.10.169-1.arm64.gpkg.tar 59340800 BLAKE2B af1c436c221ceec89594341bd54ff0a091a28cf177ff029f39d839a8e4a39ba76decd0bb433624632334d6e7f35690558872320058144e5e91bc5c10ef19f52e SHA512 f3b24d9815514451a2a2c60c50b6b60d973b6a8fe6e1ab81fadb987f3083706b0c7d319b101ae183417bf34936baa2d18bf092e22ad1365385f627216301b565 +DIST gentoo-kernel-5.10.169-1.ppc64le.gpkg.tar 54917120 BLAKE2B c254c4f46b528a2a8b240b9e7e2d4b0fd704fee2b9c41b8d1fd4be2d1f4586de13438e4553ccb19a1c3f618c5f9c084a0328ca77bce58f6904e3faad5a14675e SHA512 cb4baa0ad227721984f0f350902cbd6f7e8b51a55ccbf246cd6d696fa8c02046c1e3429f6171fec16e311c5319aa8827ff3568aea45af4e19e13826952e178c4 +DIST gentoo-kernel-5.10.169-1.x86.gpkg.tar 56453120 BLAKE2B 15eb8a76a65421b916ee7048cc91a11d9d9a29767b27548aec30326c05087fcc5ca0b86541ed275d4812759f5934adda141de709d11d1b34ce78a2ba894c4d44 SHA512 171f0dda89705434db9248c9fbb78f13f09d9512193a96e5fc23526a9af5f6adff1121fa88c1a0bf3c409679dea0180ef76e5de51f9fcf6b4ec6e6a617aa3ea7 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.169.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.169.ebuild new file mode 100644 index 000000000000..140d99c64a55 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.169.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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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 +}