diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-08-11 17:33:29 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-08-11 17:37:33 +0200 |
commit | f4b594c5eb31d44421bd6a1e3c8d2a32b4255c38 (patch) | |
tree | 39a41632e65b832e4a49bf9020a4711455eb3761 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 6.4.10 (diff) | |
download | gentoo-f4b594c5eb31d44421bd6a1e3c8d2a32b4255c38.tar.gz gentoo-f4b594c5eb31d44421bd6a1e3c8d2a32b4255c38.tar.bz2 gentoo-f4b594c5eb31d44421bd6a1e3c8d2a32b4255c38.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.253
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.253.ebuild | 127 |
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index d009bdc24710..2d6204989b85 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -18,6 +18,8 @@ DIST genpatches-5.4-258.base.tar.xz 6040776 BLAKE2B 722214955565832dc7ae8719e4c6 DIST genpatches-5.4-258.extras.tar.xz 1812 BLAKE2B f877002e5e5e31916f8151589a8ff3e88cb618345e708b6682f8c8babb9b4a09155481cdecaf21909c4db820c395525f2ebe439e3377b7bd1b60c38c90bd6bdf SHA512 593ac9335f7d10bd556ded4af7414a015be8a34407b2b7c3077749ac5903f10424c7ae0d3cfb63ccc12ddf275af5dc59feced7408c4fe77bbd153ccf64ca6d47 DIST genpatches-5.4-259.base.tar.xz 6051096 BLAKE2B 5e2bb6e705b32039c4b468fbb12f04d3cb350c5527bba948d9e886121053b09a5459fdf85f7519046bfa1527b0564df00dec7e26503f5b88123777b3b7adf58d SHA512 924a084029414edf20d545ac178315001a23304f494693e5b22972a90487432ccd4fb76f27a667c8345fe6e4799121d7452935eaa8170de3347470acdc5ee729 DIST genpatches-5.4-259.extras.tar.xz 1812 BLAKE2B 85ea3265313d9852afb36b984d7d12f200317c4e0253f1a6beec348c1a5345bef6303ec1559154289ad3d1779d532b72bb0624bbc62bad93aee428a6cdc8b667 SHA512 0aac96d085e67cc576d86c4f032df91e7928e6ae37fc6e07b1f3472f022bcb0592e96d21e8e496d3aeacea0fccaaf808cab42e507b310ed34263e9b97f587ed9 +DIST genpatches-5.4-260.base.tar.xz 6088284 BLAKE2B ced17ea01c866967520ba8c57fe65df5a864d1d667917515ea4570f4b17edab1b0eaa60bc7fd4098371d7cbb43ecbcc44e2bef16a05489bd8042fc3c13346b72 SHA512 4c2797566e585083b024760d0a5d534ffbd328a0343fc15322a7140e1f5cccb26afc4932e559d8a4cb2aa99d979f6f048152e7d7cfa1ea85ef779650d3abd958 +DIST genpatches-5.4-260.extras.tar.xz 1812 BLAKE2B 4e06719c3f9838083265c96b524066ffb5c3e6b02046776cb4083a814c450e6430d02ce5254d3066f8b54dd15883388b95cbd09f7ff13ac5384be50fc46e09b8 SHA512 8abb65aca610f0de787894658ff3dffd3ec2689eb05ef0f0db5f3a7559ca3d6a8510d3c8c5cbac63c65b924b903ab84dde325c800effb67e530837a76a9d2ad9 DIST genpatches-6.1-47.base.tar.xz 2915344 BLAKE2B 7fd49099198e9af926911b3a8831208d6c0ecb5047e8bc7563aceb23516328a1829c33b912f52d1175440770ed0394aa6bb3438ad92a9a81ed28ca6fdc6ee928 SHA512 5c0841c92d0f2bcbc81599568d882bef066f132b670334fe7728797b76665aaae170ee2acaf942228d5065fc95493fe33fb2ec2268f9d2bb54739b463b346b33 DIST genpatches-6.1-47.extras.tar.xz 3812 BLAKE2B ea44d25a1637abff3a87ec17e397ef324aa08d7f62865924a61f55cf85df6a1ae5b8a56ac1f33a61955bb3ce71b28d628d34a600a1834583ab94d4111e9f4810 SHA512 9f8c831530609f2379685ec3bbe545f2bdca86f139233dceb0b10d7259b8b1207188a8f95237483b13f40c6639c6f060df4cbc67e09249c24424bc0bc83fe281 DIST genpatches-6.1-48.base.tar.xz 2983620 BLAKE2B fd09d2c761c3652502d590ad189db668a27d48e2c0c336b1d2e96f9a90a3c365409d012319b6daff30e6039330b90746636e89d6e4f5bb302851b3ced0e57286 SHA512 5abc93002ba800f13d27ffa8bd9485cfb921cd8e43d4cc15325fa2b833eb334e062cbb9b751ff2fa285a7f61f0e0809366d58fcfb4fd4a71fc08f2e48669b5cc @@ -74,6 +76,10 @@ DIST gentoo-kernel-5.4.252-1.amd64.gpkg.tar 60508160 BLAKE2B 103a36d5b650c923a46 DIST gentoo-kernel-5.4.252-1.arm64.gpkg.tar 56535040 BLAKE2B 371a419665710f3b20f4c69c5436010b3c80d3b84ea8d470e65d085f02a934c59808347fab90806fa181c15fcd92762fbeb13e548d5ff131053bdb3ed428e842 SHA512 a0374a4f370d376d4a692e9a1e8033216fde4b76bc8ec00fa7ab8b934abe8152d9689b080ed925eeb817667eed1c30ffe4cdf68eaf8601a1bd9c5f1828f86c53 DIST gentoo-kernel-5.4.252-1.ppc64le.gpkg.tar 54220800 BLAKE2B 8fe1bc964c71b2214916c57c944f70435f166a833ce4ab5901fb6e9f2076fac488aab55568807eaef69096b9fd4963950eb4ab520de300f7c550e4deb11e3835 SHA512 80a5fa3e9cd45f530e3c5b6340ccef85e8ed6c5195ba2bb2033cc8a8224e2ece31734cf94d4f0a3679cb05a8a3d0f8a75966c2e86a4a02cabaf5eabfa48a37f3 DIST gentoo-kernel-5.4.252-1.x86.gpkg.tar 52459520 BLAKE2B eed347e51baa059716ec888971b6156d3db5144aec685e06dd26b15fbf2d72f14329a9036c9d214ab3360a3252934e7b6c73777f7cbe171a495ae9ea1a2807e4 SHA512 beeb81dc21fecc228da558ba2245cd74799e002d293fc6e79e1bd45a61ae8f2eaa31e044409256e6f460c008edbc148c2a7ef260607af3e7e1f58c6270528bfe +DIST gentoo-kernel-5.4.253-1.amd64.gpkg.tar 60518400 BLAKE2B 21dbb76eed0a80d1d30d69d2341f41c4f899ad4db5061028f5648b61baae278ab6dda60f0e9c18f8fdc697e0ef6e8c8a10bc9d6eb0485bec84ba63e1f5525a60 SHA512 eae5a18606bbf725cb44b32d67067470be32d6c452138015ca782cfe03e365bc3d9fcc97aaad66e6853a33450cd2008e2a5f4a8ac5ee05d30157d759d2277d1a +DIST gentoo-kernel-5.4.253-1.arm64.gpkg.tar 56524800 BLAKE2B f35185e943a3bb1c9c098385b958c68d1150813d3cf732cde70213bbe9d939f0979398332e775bcf8ecf5ad0062f97d7493a336a9d70f7b679c3be218e5faa9e SHA512 c1c845c4d7416046789d70766ed68ee7c7e2b98d9fdcfc6e411a12e61e6078a8cd5edc991aadcd50039323f4cfedcf04b6d0def84149d2b1ccf925ae241a2548 +DIST gentoo-kernel-5.4.253-1.ppc64le.gpkg.tar 54220800 BLAKE2B 736ff00c56ba89984aea3c98cb692094f2fc4fd349f1eadabf59d7b58ff2f60414c7fd103855bb046076da429a708fa6ec863ca47eb173857564e5718ff86fb4 SHA512 6a092385337f740ddd7eadf3d34b805e3f74a788db6e335165f65d7d4cd61a3364cecb22b89041cfe0a16f689be9948cd169d03066fa7734de32df57858cf0ca +DIST gentoo-kernel-5.4.253-1.x86.gpkg.tar 52469760 BLAKE2B d46f992a33125244933aa0aeb1abc4a0a4acdc934a0721f505d27284295f83abc25263b30636f703c71c44700dd2850723602b432c5d9a9c59e533c58dbfdc98 SHA512 52a53dcae486d2b65f075353546b097d8b77d16de5b7f2108dfb37f96ec77fc8a17cc8f11b33f919cd2a2bf0cf1f7b4807a2804a09952a7fca9adcaee4a080ab DIST gentoo-kernel-6.1.41-1.amd64.gpkg.tar 76677120 BLAKE2B 7c908fba9aaf2f196201a57aa44d53dd3fb63c1f9a15a00383a477822be9dddb43d4006fd5e2c197a006c36cd69d36b8835d28f047c1d3b37116dd6af0136f07 SHA512 8b7b707cc02ac67e214b9eff76bf08ba601d4942a7f065f70da17199a5b4bb981ca712d2fd1ed1e89f8a21bb0d1b5bba2b7466b95eabd1ef996cb1c2c9e0dad0 DIST gentoo-kernel-6.1.41-1.arm64.gpkg.tar 69335040 BLAKE2B 3b5b1902db029c52abb3c6d16516fd666aac7bd7013041e17f8ee8d77048188e832972834360d3f31213f2965d3535cd37db673d3eafc1b71f0a1a5ad077b8f6 SHA512 2458f474c66400a23dbe270c9b82aa43110fe6749809a2fd19a60fa8cdf16fc3aeb0c04abd8bae5e9730e0b97e8b5b8d3fda98fd6566987c33bcb8cf91a6dbca DIST gentoo-kernel-6.1.41-1.ppc64le.gpkg.tar 62740480 BLAKE2B 5afebd6e2bab219c45365dff041823484d762160aedcabc60dab1e05b4ea0e0a028251c34317550bb81da094d9aec2dea2dfde7238cc061ddad2f075934db24c SHA512 ce94ade1f2e585b127ef68bd38d7040f12316a1c8ceb53be4b2b54f47e70ac741f1c4188a785f6920b74f9f43f9cb27a9e31b33663792b9775cc55611aa6a2cf diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.253.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.253.ebuild new file mode 100644 index 000000000000..70e2f755ed95 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.253.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##*.} + 7 )) +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 +} |