commit: d6ae58e7de9a7a8a659e434028a7a24a7ee509a9 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Dec 19 18:40:07 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Dec 19 18:40:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6ae58e7
sys-kernel/gentoo-kernel-bin: Bump to 5.10.160 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.10.160.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index a0d7d2ab1349..1c611d3a890f 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -10,6 +10,8 @@ DIST genpatches-5.10-167.base.tar.xz 4477064 BLAKE2B 35b2dccc482e167393c2aca9fb2 DIST genpatches-5.10-167.extras.tar.xz 3868 BLAKE2B 31508844298f272c02ce06f341597d4e75013488ea35409ee51f2af6dcebb14b2e3c17b7e27ccb766b051f618107aab113a6174959313d504a40456ca6910dc2 SHA512 808de5319a1dae4c6297a9aa6b249d02476870d9b929a2e7528d709cfc49d14e5bed78bc13167ce8d203f3e7ebb580d86382550de97690c7ae5ffb7d0fa0f777 DIST genpatches-5.10-168.base.tar.xz 4500132 BLAKE2B c613cf38336ac3ba3b51af3308d111ffce729694ce3e5d6730c20c97c9b5f5a6d88d1c2d6a6d86ed66522e9617fc4cd94db99b7c02e695c4bcd1a19fcfb00634 SHA512 23c394c27a97129e24ebb46a85f52fae3b31e50d279970fd5af3081b6df275f9471d5513a5fe302ca8c7001d09b83af5fa7a17ea41db6652fb434859a257f0a7 DIST genpatches-5.10-168.extras.tar.xz 3868 BLAKE2B 86fdf10638b04700b3cf4fbd6ca570ba6fed2db16cc8b447f3661589c779ea25c0400538d79834814236f463c923f754033bef963a6f886ea447ce82349d5a86 SHA512 12f20ceb292d0f347778f6b65174ffbe0420e58857671fde768e1d14c7712cb2ca14f84f2e615ca8a2c2981495f2939f843d82dbf9172bef0e3bb7ac3257602c +DIST genpatches-5.10-169.base.tar.xz 4503176 BLAKE2B ca2bf2e3fa51de6c261f94bf54aaa3e0d7f89e4caae3b0d8b0e7c202f5834c8488fe4fa1239b88f7f1e59dc344112b5633a2968a4dd2d811afb330934861c154 SHA512 2086d7afcd337d6fe029c24c8c8713fb1764627abb975f412009e8a760b9eba39944b86380ca70b8568f550ad8ae0a82e8cdc1474196d5f4edfe6ac02f458c47 +DIST genpatches-5.10-169.extras.tar.xz 3868 BLAKE2B 40ec1739f6cd6cc27b4b5671634aaddd650293e361e3de8fe512652c9f5e7a314d1b9d73c652dca1b6787d24260aebcc8686cac6d85f031074400330ecd6ce26 SHA512 1a474298d6a77c5e1aa377bd92ed0066e2eaf0a978db3e2e444ce3f308fcc8043c7d5a9c23b7d1ef5cfb3a9a5b2a0d5d7ecc593b2b5db95b79ccdb95944d78b0 DIST genpatches-5.15-81.base.tar.xz 3257712 BLAKE2B 66e0d129053b2cf3ba59681318be5c6a62d469d6014535bd4b47d5368a7718db7015ec1dfab34e4db324b4d626f8f8a9219231b2908c3fc2c2d51a3f99db999a SHA512 f43d637c799216e2bb99cfbab9c51b935d02f2dadaa0f2fad238f14393340420523c25927c10fd6b69745972cdf4e7f3e23cd56eea799626c69f4fb7d44b8e49 DIST genpatches-5.15-81.extras.tar.xz 3932 BLAKE2B 0783c48eab8d9f53d07770a3df525df2ffdab8f36d3d7db2d22e2fc5b0d1fe904644b013a3d1a5ea3d967636d4ff91b3f208ea8f004adf310134b98ec5cdd0fd SHA512 be4b557066d8d2327724c8be440ebcedb01d0eadab7bfa0f9f230111cba76a2623bec0945fc887b91d6e5c73eec3eec4fa29b2e76606e7871e81a91fdc4b2bf9 DIST genpatches-5.15-83.base.tar.xz 3328188 BLAKE2B 5d8da81e1c5f936ce49589d1dd10f41246a6059c410c0215b495ca7401eb618aa6c87d2ae23b08f27e3be5dd6b7f88e5d4e90ec9950924db9a08375d45cb2da3 SHA512 fdcbf6bc1e17f04df9d8334c1c75f21e5ca60fb99157708a4c599e43ed20a58664fe54fe8467924623d612ba2ddd409af4840195369fe274a4f55a84fce12ade @@ -70,6 +72,10 @@ DIST gentoo-kernel-5.10.159-1.amd64.gpkg.tar 66498560 BLAKE2B 5efc48f3421b994563 DIST gentoo-kernel-5.10.159-1.arm64.gpkg.tar 59658240 BLAKE2B d827003d70911c5517bd4f95cab3db91933dabc4d6361daadab7e4ed394b43d7eafbe3934e641d89321b28eb6fa15ba162eff6100f9a8f1c12951a6ac331b35b SHA512 2584f568f0191d417e1366b815ac57e2e35636fdaf50e6bc1281552e1cf1c61d1efdd31f3f2c3e00f6ec062a97b940c2421eff51ab948e8f73134fbd03f5f926 DIST gentoo-kernel-5.10.159-1.ppc64le.gpkg.tar 55019520 BLAKE2B 77d2850555df170f737d23fd5ea09ee6782be404d25c69fe52ab8dcecb26ce2be96c8d43bba5e70e666fbe103a23b209b355601410cdeb12d688698a22c6d259 SHA512 15c4a7281db9f86ea4bcfdf734429b5a182db1381fd1df75799140f4a2d341888cd9fe0ba1507b2810a329f1ed2c8f659264d25920628cbe5c8674adc87c2369 DIST gentoo-kernel-5.10.159-1.x86.gpkg.tar 56432640 BLAKE2B eeb5cbea77c5bb557ae5d27bf1bc02d27e20a7783635b831c2a16ef863076be98c93ca990c789997f070406bdf6f9d166c31f3d7b43f71794dcc7e3ee0ef172e SHA512 c184b6642d5158aef504645c45ade648d93de01e8a96c622292e1f0611e6eecb72f51bbf9d6282b9e82fa6c8ca215eb2b46cafc5b341ef9c96ba785679cda522 +DIST gentoo-kernel-5.10.160-1.amd64.gpkg.tar 66529280 BLAKE2B 47066ea67e8b0f75145b2b25fe4aa6a8e7056a595ee3e297c6ab34532793074763e8ae71ded4a5d3f2f42c0682e53a9f4b0569c1bec1458d1af26ef0a9417a5d SHA512 20fa3e0d9a30581f75c4ca586f945009584257c4f11301cd5782e74fe8fe6c42f305ed5bfd5b36ed4237ba105825e4663cb59d62311cc624648cf0cdf99ef4bf +DIST gentoo-kernel-5.10.160-1.arm64.gpkg.tar 59658240 BLAKE2B e9637e606a63e775e075cf081d6e72fd243547ddb3b5343f8952b27c70ad274936f5f198ae951ab6a767978402fc55e5fb9f5aa1a25f9813277a9a39ac42a01f SHA512 245c4c7a17064dff17d744236ed03e875bd7a38c8b75c9246a5cd0c3310c15f2df19b82dcb9b7baccf5ab0fbdfbd5163fee31e3552b0a99cd293fa236bd9571a +DIST gentoo-kernel-5.10.160-1.ppc64le.gpkg.tar 55029760 BLAKE2B f3142e2a38eb0d757cc8dbba2d5195703047d06eaa88a47e3339b0a649dc506cbb17f1c08fd82ec48216dcff743df7b6fd5bd8896cd412c0bfe131a560045032 SHA512 e0b7d6c82434a2e6e8c937e259ac5e01e9486b937189dba0b485172b7044da67cd47a913bfe8c7771b2c5d2c8465338c080664d42f94fc70c232525a903bf43a +DIST gentoo-kernel-5.10.160-1.x86.gpkg.tar 56422400 BLAKE2B d436b4b52fda3a1d35136623349abcdbd3be8d7430b51dea5569ba5725d3fbef6132eca03e4e8fa73091fbeef20dce32a191708cc55c847eff6f3b1160996931 SHA512 8761f00ccba585f94c815e47d7a9da2528db5da59712a5c7b2269a0db4a2e1b8369d603b385c545c105cee8bc242cf4517e358821b55f840d63bb734279a8f10 DIST gentoo-kernel-5.15.77-1.amd64.gpkg.tar 69806080 BLAKE2B bf5bd50028af7efb16dd50669486f265af7be14b603a32d0957f7630fca2c68a151152e62eb62c5050fb4b22b9f3084d2ddcd263b4b34fb1e6f29a468c7a0b93 SHA512 b8fa25be9b0bc56a7ca160407414e13ef0b0a369797baee743cbf00514ced83edd0ac0f97698d899b80f015629cf02f2ca6b81905ed59a320be865305e2b7cde DIST gentoo-kernel-5.15.77-1.arm64.gpkg.tar 62873600 BLAKE2B 1a12189a1e45c2663686fc00da11e411d9682cadd4a90e64961b81da73e7e5b4f2d82e8f90c1ac34a1a66fd7df14946e4ec5c4bae422736d05095bb9be527518 SHA512 b2fcabeadcc74557ddc8e0f732103e234df218fb07cb508638c57536d478e6fa1c545fa92608742a0e074242123f3e726e7a3e6e1de5eda912855d274236c27a DIST gentoo-kernel-5.15.77-1.ppc64le.gpkg.tar 57221120 BLAKE2B 82833222c08fbfd9fab8255e9ccd768bed260d59b0b93b852fa0022cf207817b2bc774b34926ea6331d5d0ab6b7c09619036d76506bff87d231bbc98b1845dc0 SHA512 1fc6be941d361e41e5560744ab38c8c124ed2fe32ad99320764564c892be346fadd85a4d0e4a4bcb264102e1db7d617101329661386deaf2356929b9b61af3dc diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160.ebuild new file mode 100644 index 000000000000..7d5170bdeef7 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.160.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2022 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 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 +}