diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-07-23 17:15:59 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-07-23 17:16:22 +0200 |
commit | 0bf7bfd649275380ba0ee61bde33af54d5796b74 (patch) | |
tree | 13d0ff6fd5da5ea2fb95a2a2d87de8fc096a7e4b /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.18.14 (diff) | |
download | gentoo-0bf7bfd649275380ba0ee61bde33af54d5796b74.tar.gz gentoo-0bf7bfd649275380ba0ee61bde33af54d5796b74.tar.bz2 gentoo-0bf7bfd649275380ba0ee61bde33af54d5796b74.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.15.57
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.15.57.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 c819a54f888f..8da6b221c605 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -18,6 +18,8 @@ DIST genpatches-5.15-59.base.tar.xz 2355388 BLAKE2B b7752f0691ff64a0bbffaa262a67 DIST genpatches-5.15-59.extras.tar.xz 3932 BLAKE2B 7438a1bd3f63bd989b93b8d1bcc2474406670958291d7cbffaab792789461336d30465664e6d36c2cc91d77d82fb1ac521d13dfc7cf9691563dc417370dd3107 SHA512 127ab6f173b230c4b0656653af36a5086d021d3ac81d5549a60ca681c1873dba351aa33e3fe96da811dfa6e0a006cab14aa6894f03a9eac1a447df8f724d75cd DIST genpatches-5.15-60.base.tar.xz 2403720 BLAKE2B cc8a8e72894d9139fc2c51412e09c7c7069523ce42ef67f2e6e14230d7ef75bafb58938314f4a93d0e6e1c5e544fea54f70b23f0ab6f7f02156bcadac26bc1ba SHA512 bf345a4ba71d02865344bafc19e996e7d2ce5ef2ff0b9a956b85a2f88a386f786670f569b812eabc0cc4d841c9ed45e050b3865350c6f38a61bad8372180246a DIST genpatches-5.15-60.extras.tar.xz 3932 BLAKE2B 2c9b704aa65d9ba6fab93252cd581efe31324fed7d1886bb118a25efe26daba4dd40d75cb263edf6df89323e9967b6f2277692fdcdbb6a50146e669f45c364c5 SHA512 e63206136bf81d5a9012d71396474f6214cbb7980ff4427fa60e69a7d96dde918174a964a6269e6278b4bad6f5faabfb79c1d0c5e3dfb4efc4f13fbc17979273 +DIST genpatches-5.15-61.base.tar.xz 2438712 BLAKE2B 44a8bff3e2df4203943aab61398ce4f136f5101e10a8764885202e799e8d5a6a1270800c5c8cbec98aac4ede007a49616120356aae66008ef2578698aa25dd3e SHA512 88cc84df8f11c8f714a629cba8b22dc730b1cc90d5285c2c5475ef808715418e4080f421ad268c7e8a34c18dc70962b89fbbb23c73ab5f3c76f30435d98ad0ee +DIST genpatches-5.15-61.extras.tar.xz 3932 BLAKE2B f2579301f9ee4e2dd46dd65472bf208d62642df674863cc905dceb0e91d62cc3e64f1d0d4ed99f0ca9c010108b7df58a12a34b6291eab34f565d9d4ec69c2751 SHA512 17463a7d9e3a2e017654e78dcffba58114ec5cae5e67858f7f3c50bf14a92c1b488f85f4fd5fb61eb53fc74f6a90f0ab152ba9396d0d928050851b4c5ab643d7 DIST genpatches-5.18-12.base.tar.xz 549680 BLAKE2B d6973dfb0d7749fadfc511b1092dedc67b3f8a57e2a117674113f43177bde8608b6106c4c84fbf5f5a161b9710cfad28a3c2fd419fb3c4088d98f9a504ae0cb8 SHA512 c7ad63058bb77c92d3ecf618a41164476a56f2b7b879c667c7fc9666fa1d7f81b599d6ffc5f0fbaa3223e7d399dbb6348ddd511598581083f7b78d505dd81e7c DIST genpatches-5.18-12.extras.tar.xz 3920 BLAKE2B 89642c29bae1b15664749c11e581ebf1d0b42801cbd3e436805faaacc419fa7d946a05e7d37bc8d056e36768d181b2e71dfdd6b28943ea112dad9f17a9c2bde1 SHA512 301cd52af9db5a8ec91891a0258a262261d87cf22cb01c27a531d0274ee23d0e928977abe8f5928d3dcba430d032a3cb418193bd1f3e09a923ca6e8718ec7420 DIST genpatches-5.18-13.base.tar.xz 578484 BLAKE2B 03215db005e5a3668898b1ac4c25aeee5f20d6802d00b11d24d41f506ca9f730f031f5cde187f81406a3c75937d65f854acd3c0e2d2cf9f9cb3ba99454304180 SHA512 bdf29085cf76022aa21faaee63033e3231b9757282633eb5897717128bc340cbf38b12a2918b169b452e85aafc9fadac2645df414f877f43950a3147e00dea68 @@ -78,6 +80,10 @@ DIST gentoo-kernel-5.15.56-1.amd64.xpak 69348640 BLAKE2B 0a7e627503f70195480faad DIST gentoo-kernel-5.15.56-1.arm64.xpak 64208963 BLAKE2B 5f60fa57e079d539e99d34c2f8d71fdd3d93fc4a56e872b8ab0e96d97fc9be4c05e8b2048d98c93a6689192eb60a46e7287928b3ff168183aaf00bc08a265cc5 SHA512 a51368363a532c1d3fa2969d919e94cd7e745153a3adb25c738d4bc472c18c6576707d9005f8e6afb91c817be3b76c51b52915e662c640d80484ae44322d142f DIST gentoo-kernel-5.15.56-1.ppc64le.xpak 58077139 BLAKE2B 61c8ba72108f4b727e3ae9b17dbdc7177ae3fb4dcbdc0904962d06dd1e233fcbe43c2529d1c9c387860a4318f535e0d69edba0f0e2028e243415be690eec1ca4 SHA512 6617cc6055a023a78413be0935976f7282a9dd87a8efe9d73b19460f71a7105f18acb1e6d6def37ff466c94525295aa750d54395c56c02b707195e0a8a602960 DIST gentoo-kernel-5.15.56-1.x86.xpak 60096432 BLAKE2B 3764228fe0ccc04d65f15f4eb9985e2ca9227d4c76ad11d0783aeda59a7c542a84da165173e5f4d514151450c15db0fe66a010deb0a196f1c8ed4116d7a1132f SHA512 b7cba4ed77f83ca5c40e9e861a13c1d886dcef2b050b1734156d7e5291e06121e81b5415e7a9455b88ab2153c83f8fce8761c1caf276f87c7909af2e98dd9ced +DIST gentoo-kernel-5.15.57-1.amd64.xpak 70814653 BLAKE2B 99e6bb35f304227ed7fa30d4a687695bfc0237e892a66b0a3de2d161fbd11e6abd8691e61e1bee447cbecd6eaf72df626f0ee98d8a14dd4810132a53005737d9 SHA512 00086c14bc7f9b8ccc11c39e52dbcd5dfd87dddc77d141fbfc4b9bc0454aabe306586418096297ccd69210d100bb68c076cc3db6cd9d99cdba0bacc5dffb8ff9 +DIST gentoo-kernel-5.15.57-1.arm64.xpak 64192337 BLAKE2B d719fe17b8c206229d28a03886b030ad3a2230dc33d1ad9158b6dc23f6cc9ebc006c503e8dab1bae2719536410eb7b6b4f60db3412f10d8e8ffc368171b45830 SHA512 321faf33d9b33b48ec89bdcd13b628acd46686b02c54c02d36f4530cecbd82d4297dae46469d12065965b9b62cf5530c5a1fd6ded68afc83e39b338893931cc0 +DIST gentoo-kernel-5.15.57-1.ppc64le.xpak 58147474 BLAKE2B 40236b5a0b51e19a60125edb2138f924f6f9c2a3e4169138bd42c387b6a788bb617cc313c85fd2c5a940f06a46125dfab5ae2d0525f78448935c06793966109b SHA512 0e4bb5eff0aff0cab72591ed85a6be1ac33532062c9127f6b02ac8683ab51603d2684a1a5a22d5a9c3d2508aaa5ddf583d64115861215d262339f16dd16f9459 +DIST gentoo-kernel-5.15.57-1.x86.xpak 61007112 BLAKE2B 1ecdf4d19673839a649b67d28208b4ad792a3dbf1485ffdf8b503f50c4f1b6c90bf9beb846644c212667cd749423d5a13c5b92c1bc754fcbd14f0a470643c80d SHA512 fb936a9cf568cf8e975763fe417aca93b94a0b52654e1cfaff72e5dc4b703a6f77638fe7ae3d5e14f8da1bf92e4fa33d7899f32f0a6d5e6771b0b75cc220a690 DIST gentoo-kernel-5.18.10-1.amd64.xpak 71603500 BLAKE2B 8a0d80fb825ae370cd28f587cd31b4bfb8bf4a679848abfb5c201738c75f0030deacbe77acb1ab367260bba8dd0aa69c5be691857e48e1424b98493ecb5ecd81 SHA512 10460c0153afaa9dfcc5df28e39e6a3b224cd0b614df977c5f84bcaf147178dddff5b4b7524b5a15b36aac873f7b0ed356dfd0771920cba1da7f0fee48144750 DIST gentoo-kernel-5.18.10-1.arm64.xpak 65243483 BLAKE2B ff8b7846d93f4c57c54666e866f27f8a5fc11f21d546f8c028124e3f2508ee4351f4a3cd75cff254e0cb49b0888ef9ffe6e3affc9f7146b3cc565cbb08edf59b SHA512 aec1358fff66b30c484be9b914f3ce2bf3ef88f41de71d717a5279a4df09aced85275255d9af112e54d4d71b827fc7cfb7b6a4383fc3c2024a72471ffff1a4be DIST gentoo-kernel-5.18.10-1.ppc64le.xpak 59437353 BLAKE2B 2ea2d838fbfa1e72d9bf056c627ae983ef75ca1c04a3656282a4e6d701fc0ec65d46181fd4cb513e8ca692ed92bd01e3fbad4a3d7e3e2a3dbf9b441596289882 SHA512 999791b651b107f50b0a7262738b61c39f540b17e83edecc3616e6f8f73454ec8a10fdffe14358aa791cb0c98fd5365e50118edf9db8b31290d81f338bca9f80 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.57.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.57.ebuild new file mode 100644 index 000000000000..ef41f9ee8cc4 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.57.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/~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}.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 +} |