diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-05-12 18:34:07 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-05-12 18:35:13 +0200 |
commit | 5c30e9751090df4763597a792ac74bb0b59af294 (patch) | |
tree | 16accf75d6947cbf5b22ec36072c1e5b777eda3d /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.17.7 (diff) | |
download | gentoo-5c30e9751090df4763597a792ac74bb0b59af294.tar.gz gentoo-5c30e9751090df4763597a792ac74bb0b59af294.tar.bz2 gentoo-5c30e9751090df4763597a792ac74bb0b59af294.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.193
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.193.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 2283424b7e26..d052ddbfbb67 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -30,6 +30,8 @@ DIST genpatches-5.4-195.base.tar.xz 4639264 BLAKE2B 7a3558a8bb125d616bf10dc29045 DIST genpatches-5.4-195.extras.tar.xz 1812 BLAKE2B d285c26f84b2275007c3ad4aab1d7fde0ba467ec07863fdf4962737b06bbedbb452a8601f3aea28fd4086b2e80680422e6cbc749cebe49918a37e1c790532359 SHA512 f1cc2db130045affd76c6e2fbd8c4d2806b20faa2feae80e8f88d821d4384ab0ecab3ae66d692666107e23c3deb6cb70231b6251be1e2e5f00e880af48228615 DIST genpatches-5.4-196.base.tar.xz 4653468 BLAKE2B 7fa30744a8cce84a029c74f23809dbf04303b68266e55518968f4ba5ae9961cbab877dcb3a0a014368aa75981d194a7e63957dc1404536d97654f5cf42a4317d SHA512 644fd52e5f3f83fd244e1ffa056ed89d242ad5a99727f918f10e9722a176cb99e437306261e3b780e016d72550e04085a650a4f7ade51c4845c4707768b9e86e DIST genpatches-5.4-196.extras.tar.xz 1812 BLAKE2B 1c50cf56732036261aac0095512c32fa5fda3ce5d3d405994f750b2a6a7efb539e011c735d85103548294bc7e66bcb8b6874456531a0b9ac194b7a187bc63f3f SHA512 308dc1aa8591b75d36a528aeec634f9be28925338cce92a364b1e941c14955567dc8d173cd3fe62b5b8eb433a97397cfc722c197e27ec26861df7a4912735d36 +DIST genpatches-5.4-197.base.tar.xz 4667616 BLAKE2B fe777dfe7e9301dbda973c6bbb1459c9e8ee245a729b50e528b8f58f8cccdcebe1d572217b089910eb7402473eaa6cbc39c0bdb11cad35d417d3a32d29ca5456 SHA512 eb05870e88d1b1e6740abe669ae5de2994283e95e427ccf55c7f184be5e36e20bc52d74e5ff669ea316add4d62da6a59bacb1a689c0f30a8c0a0dfb3c139b639 +DIST genpatches-5.4-197.extras.tar.xz 1812 BLAKE2B 8aa22afa5b4f9cb1cf2a112095a694f6145ec9c3b4be99daff9a1fbfab6e1742d45a8f34bfb407d6f7622bc9f934bcf780d8ddfb4f2add165329cf397c0f08ae SHA512 0b51076e9c9d17e094652288c8c0c0482a80ab233658fc84cd2db92414fef3965435a6718839b27361f0de802e70457f8ce32e9a7db33b30858e681a392d5355 DIST gentoo-kernel-5.10.109-1.amd64.xpak 65727782 BLAKE2B 5fa0d5f189dfaa93b3ef1bde853efb1473ffd37711439a40009b329929df2c93b490331b2d8149bf7d30d07edb085e7c9eed7ce66aea3d9085d04d33d894b511 SHA512 1cc3dc9fb5a73cd1cfb1b99c3c1366de5d0c15377ada5fd4a251d774d00526906db395fcd6fd82b6b42abeffcbc3b4a4ff31ecb4e28dc81f69305ee0018e7bff DIST gentoo-kernel-5.10.109-1.arm64.xpak 61045068 BLAKE2B df8a0214d4cf59e0a49f075180860645cf8fe1a0e1a1f62bb7265b9b9d5056834d328cccd1661e80c7ab1a8a651f57a2d3d8c250da6ba3b25dc5349ed95b6f41 SHA512 bcb625eb11362f4872bbebab2562ad75567e2504194173671a40aa810ac9d0282d72f55556e749b4447bc7d4df907e58fbdc8a1fa0587050c3c0fda62b6a2bff DIST gentoo-kernel-5.10.109-1.ppc64le.xpak 55828184 BLAKE2B acdb17f64eeac0f2a292902f020283ee9e3836cc9428d2b2587f53755e791370f611bc50060a73385aa4171ed5284cb2a5b6d3545873914fc68075fd86551cf9 SHA512 872df4d6cd4a010445c406cd8605a24c2292e76f9f07ca79c1ad728d768af255e3be9c2d4069415e46d2697d3af22b340211cbe4e02bee40ae483b6bf12078bd @@ -94,6 +96,10 @@ DIST gentoo-kernel-5.4.192-1.amd64.xpak 61581783 BLAKE2B 0636e24f91820bea2c34406 DIST gentoo-kernel-5.4.192-1.arm64.xpak 57763073 BLAKE2B a19b50d1d96b12b9211f2a765260c1e7164310599ce87d1ffb24596764bbd69b3b40c1e85e8151785312afcf136c018da986ac306ca8100554615322f4be3773 SHA512 d8e1576c44a56b4fa9658b3e928fbde3f70a421e6d30943b7f23fd0c39e93205f85e8dfb03aea546af9fb9b991ec06421e673f4856b5b83b6a01df0928b81bbf DIST gentoo-kernel-5.4.192-1.ppc64le.xpak 54970548 BLAKE2B fa8ac6937c27dcc8da9646ad14fe584051eb25641ae8aeab1bf49583bb5a151cf18ee31cef81c1b8937fb0d98db5e513a52e19d73140a5fd0b862df4667933f3 SHA512 49978a327759fb9aa66114f8cb373528bec6b3d2994744e6bcbe7cd30f169ab33a68846605175602a0ff1642c6061dbb62fd73f21c27e89d45824f9a42cfda6e DIST gentoo-kernel-5.4.192-1.x86.xpak 53285445 BLAKE2B 872b525240848ddd6dd9039c34985af1210b5a388b85f787e62afabad6ab76979d943db7c828df965ff9d1bb2c696f3f71d612647eaef0d2d39099b79ac28ebf SHA512 e3f4ae40233b085987a1dd40808bfe573d1d8681b05f432ac943f7a48721bf6d4b860337a7ccacda84ee17ba32567f9901255c5f861f95b8b8e9929cd28b8113 +DIST gentoo-kernel-5.4.193-1.amd64.xpak 61568910 BLAKE2B 49b8f97c6ad97cde0af204c9fc9f07093a9b0d8db99ddf6d4588395f5c7bcf2d1a9e7b015672bbdb84fdc9f5c71c00f86326a159d06dbfa3d3996cea821d1a74 SHA512 bb1707e75b77176d7e36b01c6398c2ed5951040ac7cfdbbf9c6247f587f68f5755092ee71066230e4c684fd4850fc8c750979d27908c7249d860ad52373f202d +DIST gentoo-kernel-5.4.193-1.arm64.xpak 57796940 BLAKE2B b0f0ad102167e902d6ecca302b8b702606fe05f4d799a86575900d1b6e8c400bfe0fd4a99df40b7aa0e2a6850436c36da7c3d3485493df7bf6aedc5a1cefcfef SHA512 87c40deec972223ba5553007c9f94cedcf19161775537c68dcea4605c33ec1a25eea5acb31741587affe3fb45af718c76807bd67fd83404bb934e10aa79b1f36 +DIST gentoo-kernel-5.4.193-1.ppc64le.xpak 54929231 BLAKE2B b827783912ef297968c37721065d47f4d4613f810693bc1d09b109133f53161bb8a5b6c3fb616dd131edb57a05418e3b13f2886051b2b94128858f21ce1d4361 SHA512 30e81d4b05004ff1a3923377be0121333fef8ca8e4812442e2c8aab5275d55c3f8ba812dc0c7131fd8ace8fa299258400ca680d50cf84a4d7c2ac7c8f896a0bd +DIST gentoo-kernel-5.4.193-1.x86.xpak 53274832 BLAKE2B b6bfd80617f9cc72f49b9bb5099bf9149ef9640b224ff65c7143c44dd2fd12758e5a27b21ca67c647b44e45d88bafc08f8b6900b3144f0b7d3aa83512efd3009 SHA512 86b2fe9f050a045b9d3df1d0a596e02cd9083cf2d0dfb8fbed845f7f9011b6862aeb5d4a2bb11660baeafe404b6b9fd484c38e52fbd8cbe1c56f09d1a1d53050 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-5.17.tar.xz 128399340 BLAKE2B 82dc4a45cc25c781ac67aa6ed1e4c369544154960f41c4634d47621f381159687a227054976d078524cda28884d395a15f7542fe44ca74ce98ca6ff54a81d6d0 SHA512 89f0a7ca69d20a539d4b612a7028a30a5e98b402e4b6b88516f14237e5da4b626d7929eab8b40fccc90766e8f3bae87e9858a19077ffad20d8204acf18794f5b diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.193.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.193.ebuild new file mode 100644 index 000000000000..0787e9b25ee5 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.193.ebuild @@ -0,0 +1,135 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-install toolchain-funcs + +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/~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}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.xpak + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.x86.xpak + ) +" +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 + virtual/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +src_unpack() { + default + # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg. + ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak") + eend ${?} || die "Unpacking ${BINPKG} failed" +} + +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 "usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "lib/modules/${KPV}" +} + +src_install() { + mv lib usr "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d boot/dtbs ]]; then + mv 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 +} |