diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-01 23:02:13 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-01 23:03:24 +0100 |
commit | 9b085661adac506209308660bae79820d0051497 (patch) | |
tree | 54e741592af34fc486b9dd29e73d6e0335daeb98 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.96 (diff) | |
download | gentoo-9b085661adac506209308660bae79820d0051497.tar.gz gentoo-9b085661adac506209308660bae79820d0051497.tar.bz2 gentoo-9b085661adac506209308660bae79820d0051497.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.176
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.176.ebuild | 131 |
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 531e7e58c4e3..6009d5f86c81 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.4-178.base.tar.xz 4382260 BLAKE2B f43573bed5925ddad264a150c6bf DIST genpatches-5.4-178.extras.tar.xz 1788 BLAKE2B 23bb980b7e3fb49b1905df1febe219c3b3ad573a4757b34c4c54c7b61b6c1a175d45c873267c89d5345015c2d80761de30e52aa2e812dd10f71c6db32dcd7a22 SHA512 75c6b8d3cca3099527ef38163324cbbb8c2764c1693cbefcdcf0835bffcf500354f78813a4c625ca0eaf0d86ce6c9524aa8e4586fedf00cb662ef6960a55339d DIST genpatches-5.4-179.base.tar.xz 4388128 BLAKE2B 3620d9964110c1da10d01520e8308f4b972a9f8b1402ffde92ee57afdc9b51a465c988b2b86b8c9b384d6938cb85a2089315b0ece399b38960aedf37d1184f0c SHA512 bc399ea00e41b968d0bdb9fa6e41548e9f67694a5b5a728d7c0c289087ce1672076237034f1c4fbffba012e015d362629e1a5bfc425d8e59d39d384d694d4304 DIST genpatches-5.4-179.extras.tar.xz 1784 BLAKE2B 308033aec35fab42e5ec7fbaee2d20a1897c73b270678de252ca363a6b371c6f64d465fb5386451fcd3af64f2f3afa0a1be39f90ebb85ac2dace76349b67813f SHA512 9e22e6dc2bfae27f8fea851698feec4fdd7141b0c1ba8f2cbc3e4361cdf397376cb52553de744e016cf58c5122a940fd31b6b143d355c03c374cb83388032746 +DIST genpatches-5.4-180.base.tar.xz 4403360 BLAKE2B 3e153a25dcbce57a218800df3da5315a808a08469dbc1cf05a7924b27af33d3d8f92926ef77f055f5853f3fb1bf2e78fd1724df21e62aa04fbc7736b26490ddc SHA512 2b6f816d1d0f3c61ae2660ef9dca958bb61ee46e8918cb6f5763e7d9aad898ec07a89eb221267307388bde61822a8698567af764159cdeff76655ca28a55ca27 +DIST genpatches-5.4-180.extras.tar.xz 1812 BLAKE2B d633acaa2c422e7611a8df1d8fdb15a0ec303f6bcd707ea54dd7d373a49b1bb6ecadfb02804909ef8931c8c6e96077a6d2904f294ae1169896b6c1613af48b68 SHA512 9f673d8f284cd3d6bd6ec73f7eb7a5f1a3e85017f21dbb278d015e7151774be10b78b7a0102547fa30aadd906f5f2298749ac0d64385f833a6b9f44045426ba0 DIST gentoo-kernel-5.10.93-1.amd64.xpak 65587762 BLAKE2B bd99d1842a244a3424b835106e6478a7e010ec07bbb801126f3492f8300438885b2ce141b08e79e89329140a606e27afb6ae8d5f19c8f22526bd31a76b9933c2 SHA512 19c3063f034b6c4265a7a821116d5ba01c26975863b9205181eef6c8ff189ca5dd2199452f24b9d6dec8f88deeac788095f9138f69e30511252cc35e7a807d00 DIST gentoo-kernel-5.10.93-1.arm64.xpak 60910039 BLAKE2B 362765c54257379558cfdae5ed7603646e693c239147ac33f4994da8cbd3e0525fb4f859838ba60dd55eb7df4ba6cf2f8d7d660e6acdc995d9983bb9725c298a SHA512 39a7f6e4b9fbbe8188c8dbfbfd7d141e0d87eba038c9766874cfe37c202d87fcbfe7c44aea1c7edf100852c4859d1c9891ed1018ec8bcd8e45ced8c5b2032e7c DIST gentoo-kernel-5.10.93-1.ppc64le.xpak 55673233 BLAKE2B 1058a631e87d651ff9f3514595e93af6b796819d508730c6357ce7db701c1dcc9a27f05a6179183cd1679e71ca7eaac4bc335e40869efbd8dab2f94cf5ddfc12 SHA512 0653cb1877b7f1988964c310703462dc010213a1d63641f6c9ea7dc7e3eeb3686baff88f765ee431bb4d6865b12fed92fae26cda46b5c61ec9a100750a57a7b8 @@ -64,6 +66,10 @@ DIST gentoo-kernel-5.4.175-1.amd64.xpak 61478411 BLAKE2B 08fe5ca6407e5c488382da2 DIST gentoo-kernel-5.4.175-1.arm64.xpak 57644401 BLAKE2B 445962383e51f242b012db804d3c7e8611da33d0708291a339f14fab28f83922773f1c8464621ed03b7278bd27a9723831b9ac8d505cd0358a62666db4eb4787 SHA512 284de289b112933700220b3057c865630e0b34b210a7fd7ea01c1cd105a5150b13a4e47bbc33210324448710bd400e3306671f92b9c618b0bb5aa06e604b4ff3 DIST gentoo-kernel-5.4.175-1.ppc64le.xpak 54890119 BLAKE2B e98eeb9de0535f9f3fee85e9530ae3540816b384562b4bb5f87d30dcfbb27a73f61a42a6a4db0d2a3355dda3f5a216eb076bd7beb1996656a2d9dd39f951c4de SHA512 142af8d2ea8fedd6d7364315c4b085951a811e5918ea71bfb2bbed87de5c1e0515c9979ac02f8947fe7e930091be1a94a59341e212c29803e600f05c26e5863a DIST gentoo-kernel-5.4.175-1.x86.xpak 53179908 BLAKE2B 84c4a5addaa95315f29b44eb7f4db655e392c3c858d2013b796e6a6fac9b6c044078ad938b81bc63ae65277ae53fedb39d4c7db8ab786028046cd08d3c0baf53 SHA512 2ff2db80205866dc0ace5b8a6195a8b5fb6d1188666af14c9beb40688c979cf5b8f1f66075e710b02567eb9078d8f9eb9ffcf8f8945deb0298deddac1d685edf +DIST gentoo-kernel-5.4.176-1.amd64.xpak 61451582 BLAKE2B 878e0fbe7a669e1378b9517b8b554dc8b2cbc0041abbbdd9bb14aba04f4987198a4eb3da212b59616738fb669c487f3a2f53107f5a52c9f9c4c595cc8681df52 SHA512 257e24c0e0964b134705d4add1cbeda06904db25b2199c58afe73512bf56c5608356bde1ef817f2902329f2a3c86575f5e00d36580d08f3fa5f11f1e92de69d0 +DIST gentoo-kernel-5.4.176-1.arm64.xpak 57649598 BLAKE2B ee34341d81464f1ecc23be6ac27a5c888ecff7ad0e361e1bd1d36121b5005992e9b435cc17c37aa3525bb4189ccd0683623a3b198c5fa3b424132a0aad76f09c SHA512 0290e6a07ea09880fba3057704c368f581b0114ca6bb794fd72f3624b54ff35e2527ca935b7087902ab30c3c15c7c9e78917f9bc22978acf51c675b8efd59238 +DIST gentoo-kernel-5.4.176-1.ppc64le.xpak 54874773 BLAKE2B f17db10e4f00af5eddece5f66b01a4e3b2234e1f4b393d69f711f645971b0799ffbdc0b0d83341ca75fe12c5b8d79f3b845c400fed070215e2d0e36ef436f3f0 SHA512 36d988fad3bfd68f0da1cf48e0e742e66026b0950d0a81909e5840b19d68cef18bd3d17037bbe5789a0fbc669f4f32e6a6e3b9aeb39e686bc98049870ca1cc20 +DIST gentoo-kernel-5.4.176-1.x86.xpak 53177360 BLAKE2B e9df6e7a60c9d8abbd7d003f7efa1fada638fa019a381813aaed17926f647b2862e0b6fe2f4a8dc54eb36521cb244ebc5936eaf60a6bbdf2fb349a002b89c130 SHA512 3e6d8e2224431431ffc601550fd6a4084f3ac8a014a3ea43ee1ff0ec98366fc4d1c77cea72c3edf8d0cbec42d9d4a59c1c1218bf9931d47d631519ba4bf52a6d 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.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.176.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.176.ebuild new file mode 100644 index 000000000000..5bdada88d281 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.176.ebuild @@ -0,0 +1,131 @@ +# 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 genpatches" +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 +} |