commit: 4b1702c89902aeb09243f5782bc14cdb7267a2cd Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 22 20:11:13 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 22 20:12:42 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b1702c8
sys-kernel/gentoo-kernel-bin: Bump to 5.15.95 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.15.95.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index e92c4346d685..3638205f64cb 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-177.base.tar.xz 4940872 BLAKE2B b2a81aebd81bff1144ecb173234 DIST genpatches-5.10-177.extras.tar.xz 3868 BLAKE2B bffc5ec0895066aa1e497ebf412a298f1dedd4ac86758f72c364fc7e56508aee3928725646742a66bb3979b8ed33afa7539e3ffa9c0f350c0f81139f69671287 SHA512 2c0b9273c933764c5c2fcbf6176b3fea06777aca18d823055cd69740519e1a37027a058238a0a9c15b39f1b29417fbdfd771fb7247663097fa717889b5492641 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 +DIST genpatches-5.15-99.extras.tar.xz 3932 BLAKE2B a78ae77735742abfdb7a622563ea1751b7da91516c6373f65a983e1e42bbe15915600528045ed6f9b413cc424506021367216abdfa0fbf5234ace650c55febbe SHA512 21671c1a8b7b3cd3a0e36a05b934c9b80c4aaef90ae8ff200572651f0559e23b7418a9df7b5a59118513cff566a2baf72c3fe4c273a38b4cefd64efd0973441c DIST genpatches-5.4-236.base.tar.xz 5467512 BLAKE2B 5c2ec5abee963eda0373e04d4f0da94d7e49b7a1fdc05f7a2f7cafba61771124503f1294289f79629afb62075855c176887f525a95a73bef4247b57915dd4877 SHA512 0a3ba2742ab21407ccc9060f37d528cdbe64dade85927aa1908613221973f14765a78ef6a71e157a71defcf1ee9158ffa1c2e7c082f508fc1140792e2311a073 DIST genpatches-5.4-236.extras.tar.xz 1812 BLAKE2B acc781fb099315e4716cdddc4a7f7ec88bcfae2228fd63c6f8bc99b3f562baf75339129f6d8e5970f5a812f6523fbe316992e1bb1606d6e06e5ca769ea1b5535 SHA512 5d772754922bf7eb2e21eac8fd597ba8c6211565a4d96a7bda6df68e089654b908bc09cd884c6e570836814ee75c84252d26228a20d138577e7717c498edad86 DIST genpatches-6.1-14.base.tar.xz 774040 BLAKE2B 8e0866c762e2711b766cc75630d66c7c46221bdc47357a903c7e8506ad122b7b5ba84d102b19743d236ac5579b44d24f77b9f52f3c23695ab6a279cf7875e735 SHA512 6a753146013baf0b94d83abd690118517679d4d7dcf6e9f86cf8de35e24f80a792e9c0692f237098671c316d046d6f65f8d3512255e572daf6a8ca81853beca0 @@ -22,6 +24,10 @@ DIST gentoo-kernel-5.15.94-1.amd64.gpkg.tar 69591040 BLAKE2B d8659c0584ae851b05d 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 DIST gentoo-kernel-5.15.94-1.x86.gpkg.tar 59156480 BLAKE2B e1ea6c9036bf9b598ba547496d5aeec67be2e00545412b1b86c24d9d732f44e93fa714731c9d294f1465bbff0188d9b69ce44c11762decdc9085d21f03efae5a SHA512 07ead3f76b60623506b3332a0faa13b35286e7b62a1ab5b448512094cfc6ba10ee1313a7b037e2e404be69ef7376196607ffa08f45621b8e858addf2b6aa2bfe +DIST gentoo-kernel-5.15.95-1.amd64.gpkg.tar 69580800 BLAKE2B 36fa5fdaaa3bd2d0b53b1844ccad26bd325a328737cb6e95f9b5865aa1c5c10c25fafed5f427c734f69f42aecf9dec20ee650ab34861ff93f84b6fdb3311856c SHA512 d07b968198bf97220b54ce7124aa568721ce48bad4d0f1df2857e5b52ef00e8f9c4980343ab05ba82288da25bca9d6a37a741a00386c981b43a483d76c9347de +DIST gentoo-kernel-5.15.95-1.arm64.gpkg.tar 62556160 BLAKE2B 5f40662aa6b6b8b422d3627618a9a98f35ac384f2629b509b50a9c7220d0a69271997ca8c749bf27cb5c1df1371ccfa8a6d91e9987dccb269610b71060d469da SHA512 faa63ba43754b7b0726ca351379d6780a0b6e216009d0fd25fcba04f334dfca0b2be40cc123679b48cd85b88314622c76a33481c8f3d77871ca36745e3064456 +DIST gentoo-kernel-5.15.95-1.ppc64le.gpkg.tar 57088000 BLAKE2B 8e3cd68a4b32941e7d42fbfa2ed68720df8806d66acb66d0933766890123844f33a5b0805b75086f27063630464713db8a114a767c2dd5cd6a84bfa09da93cbf SHA512 b4e7895f5f5ef25ade5c016ef202fe4ce30dc8d89ed462d1c37523a184b6a532d183065233dd3c1fe9b27a85b823a1299c6971a34f43e3b5e0afc3f2c0a3b532 +DIST gentoo-kernel-5.15.95-1.x86.gpkg.tar 59156480 BLAKE2B b7ceaa3035b34b6b4b795002a88e1d4ceb61927386d4b42a5b1ed696c8261d558b2fcdb01192a6c476ea4814d842aa7fe3197ebe7f75b419c8288e0f5573d1e9 SHA512 0a629bc8fd3925ecef498b50159f1fdeb603a5d7ef26c82351d72cd72ef5e724cbd0c70ff5773eb3b5fb9b563e39688f06793ae9bce9ca48f901f5cf65818aea DIST gentoo-kernel-5.4.231-1.amd64.gpkg.tar 60497920 BLAKE2B f04ff277248f94e20395d885af5487633dec1217d806110a7476ffec71bb8650d4c7911671ef71b48abac9cbe45efbd4ccba2fa023631ffcf500b03f2b584d3e SHA512 d442f59916f41cbe4a59f20db9ed183887566f4d060fd374660fdf2703d0ae1772942721a78407f3363b3017721041be449ce20cd1849b99a5f3258b37b65abd DIST gentoo-kernel-5.4.231-1.arm64.gpkg.tar 56514560 BLAKE2B dfdb0f036162843b839f37e28d2276fa073c8ce1c56a8016ff816410933217f46118da0c94c73ff2d917b696034a8d3f6b3188ff597425fa0c0af0b152abb5b5 SHA512 7b8efae1e45028332ecd0e3229492a4a577e352bee3b91a1ba6d356183d12e7c98c4293ec432d48fd23a24a3d558f0d543406143d9c9e4eafba0065a446fbca7 DIST gentoo-kernel-5.4.231-1.ppc64le.gpkg.tar 54200320 BLAKE2B f987fcfb24e2b75de94f831673c6128b7c943b5be328fff880de5d2a862445dc6f36fce8e6fbfdd8f9be98acd97d3c9640b5979114f49069b0333a19e0950af8 SHA512 7b1b9cd22583802c0c9531d1e36a34634e8a0b17b2b23394e54e7c1b38d3019934bddd281e9bda8f5c97320e46dc2893c002b1259c47f7f6b1e67852ea43ccd0 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.95.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.95.ebuild new file mode 100644 index 000000000000..d46d51864fd9 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.95.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##*.} + 4 )) +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 +}