diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-23 18:00:15 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-23 18:04:04 +0100 |
commit | 14af0d0f0bfb9f84c6b09ecefc0873ee3a6e4ce4 (patch) | |
tree | e047514f0959c540e99da97898adc8abbd5c091d /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.102 (diff) | |
download | gentoo-14af0d0f0bfb9f84c6b09ecefc0873ee3a6e4ce4.tar.gz gentoo-14af0d0f0bfb9f84c6b09ecefc0873ee3a6e4ce4.tar.bz2 gentoo-14af0d0f0bfb9f84c6b09ecefc0873ee3a6e4ce4.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.181
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.181.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 7384738db401..69f8146119d9 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.4-183.base.tar.xz 4413940 BLAKE2B 2f71eaa7ceeb4e1940c329a47ff0 DIST genpatches-5.4-183.extras.tar.xz 1812 BLAKE2B 6755576f737a247e0a09a3eb19886c09fbf2495a50c1af2f70df08b00a62247f83b904ae8d2d98dbbae528830853d87639304eb17b5a336c324d982a41cee0c1 SHA512 603e76667384e94dc0e8795ce6cb9b2966b81d6f3dc8fbba71ab84c20857bc31e5cf15ced293ae03eabd5ce3b0147cc39b59382733f284241d018fb0d5b8319a DIST genpatches-5.4-184.base.tar.xz 4427792 BLAKE2B b8f4a7219641518d8435dd8c4b99c33157a3a937edd307da40d5c4fd80873e3fb66003f370310a221df28fc25f3203176a1ce55b4c5da0899034c4f3617c98f3 SHA512 7b611a3ae72349dc2d708d06cf0de7522978bcc8f09d98271efbb9c3b8afa1c1e33ed18036655c9ffc0c38d6bd7fb665a7116f01c98f9fb04cd994372e30d3c5 DIST genpatches-5.4-184.extras.tar.xz 1816 BLAKE2B 53f485bcc1056f1efebb698164cf99713eef58e7a2ef1765dc86122a9d948f079f7708642441ed26e3dd0acaa523ff2c863fe25c9949d20e5f7852778df981a3 SHA512 874ae1450fa9ea5256ba495e80e000d46859a9b63905160b8707695fdd0ea86d6d8a0e6dfcd340402d3d290757b8e38c05d022be24320992f918a96300781bef +DIST genpatches-5.4-185.base.tar.xz 4446400 BLAKE2B 543f3c223d01c6a42fd2a5a8c2d35856ebea1567ad9bc0e6dfb4781e1cb7335f90ac63987ca614c3995121f39478575cd144f720561ea8e19efd1f8b1a353d7c SHA512 43eefa02743e516ab37effe13c89246679c4247314aaafa407d796489383cf730531f50a1b49b185bc8bdddbe62b7c47c36e7a10102fd5da7f8023bcd032165c +DIST genpatches-5.4-185.extras.tar.xz 1816 BLAKE2B 20364d1e6bca36b5335f6c0e0f63780b939668159207be2f4211da56525720963d432e90930151491962dc0353e48dca713a80e498f2da69912b709efca5bf6a SHA512 c80111e1c03629106a3f0839df80c12bb8cb6027d21cd98e7ce023f1d0eb8f188adb319d2c25cee9e2ca8c1b03f92bc0f69d02b23ad56c4eace4b5d5fd87927e DIST gentoo-kernel-5.10.100-1.amd64.xpak 65628548 BLAKE2B edb42e3b5bc34349dd997081365aa7c1c359d09082cc9feaeb7978325a214ce748583a701496848592812294ef7072aede0118cfbb3a5cf371371da2656bc2a3 SHA512 2d7277e6ffd0e461bdb7391cef3742d4ccdd90a0ab89e131666b7e1c7abb003d4cf4100c5936cde2676e3b25cfda42b799d7bebfc42ef74d3da06d1cdd191c53 DIST gentoo-kernel-5.10.100-1.arm64.xpak 60932203 BLAKE2B 395d967eda0922328b1ecd3cf1ca21574db76d7a39f89700fd1c1b30fd7c06449541d38581ca5ca5cb85af94c819b181f31872e58f567a630350953939f3966f SHA512 10f980f0e565390bdc86512ff5979763180e2f1289d8436ea8bee2427aff3df9451d082566d3851dbc84af722ed23e894c262af70ff59c72014e4929cbcef801 DIST gentoo-kernel-5.10.100-1.ppc64le.xpak 55823761 BLAKE2B e0be918a29ba69deca2ac884b2b2b71f589f9b103fa485db06531f37e1421dc936352c2be0f736a90eb2a0ca48885207762a68d6d7b9b23e20b1e360b94ac3e9 SHA512 3ba76dc3eb17c2580f13aca9260092dc70d659cdbb52bb3efc7f7c9930df210891a39d91eb7ecfe7fa1d7f5ce7e8be03ecb924430c9d2df7b7d45f657c676250 @@ -64,6 +66,10 @@ DIST gentoo-kernel-5.4.180-1.amd64.xpak 61500972 BLAKE2B 6f0c6d0ad4f9521e62a9b5a DIST gentoo-kernel-5.4.180-1.arm64.xpak 57638189 BLAKE2B 9c2fb790e7df86c9c3e6084f22d0cf817fcf66405a15e9c3bbeafe79469b204581fe3ca650c2db99cef1aaa736d857050408de8798e5f1850c775131ba17be33 SHA512 cc495f458a898281482d1d8d11bbf43fb7452e316e13270df0afb5cad1c5f6bba1d530b7ee922d1ad8e68bc851b1fc82a5b9a03fa7d13f81dcf3119fba81758c DIST gentoo-kernel-5.4.180-1.ppc64le.xpak 54932387 BLAKE2B 8add193085bed8c04221f2c3dd07fa3a0b0ad0443b48bc821f7e6d5935c2c56e286ecf340b72aba16785baacf3c74e2b8f8db4d32646c46eaa260745a0980322 SHA512 aeae61fd9cb1e53e1cb48be4f23aa979689fc0f72b8b0f726e732e0124dbb6f9d42d8d767a90c7cb27e268e395a9a36e07cea792d22a9dcde4858a743f42ba04 DIST gentoo-kernel-5.4.180-1.x86.xpak 53189221 BLAKE2B e6c3de50130d6c3c94d4d17e4bf658467ecdc977003bba6e1a36c138a1889edd135d078c29cee8839e9c30f2f4fc6ab308c39cf1d00bc51ae7ee571c3e364580 SHA512 1bd26122ddcd977899fd374b1eb4952c661ce95cadd89fb94d0c69beeae76671f25386d427b30aaacfdaae54998ff001484deb75f6915cd9b2c394b458596623 +DIST gentoo-kernel-5.4.181-1.amd64.xpak 61463455 BLAKE2B 6b5b930434cb3f2f00b77006cc71f9ff12ba0f334246d38753abcdae340dfefe9992dc3943ecf849fc52b181931d0cc6165501eb8ba8b57508ed75ae7323908c SHA512 84b4b2051aadf17c09607d9f2fb4fb3ba3a5bf7c9fcc7ac3384f372e0ecb68f6d3b30b36e1a622addddc3867f61b0d91189631877e7a3a578270d91534076c1c +DIST gentoo-kernel-5.4.181-1.arm64.xpak 57648476 BLAKE2B ecde63fbc07cf0142fb1446a6642ca03f14c4851a3790857ca1d3d587b75f9add3f6f9d6712e4b23c1bce7dcc802da88025750acde338190cd18808213045da9 SHA512 2ae605d01f951af96f5f7bc86d386fb9b19d738719875ddd88e52414552d0a42f92cebb403fe00676334d5eb48b0013a44f1c239d126bf169a8a815f70bbcf95 +DIST gentoo-kernel-5.4.181-1.ppc64le.xpak 54963672 BLAKE2B 402df95856810f6119e5fd8ede93183e0e8d1162b6b833de1d5b99b22f8ac1e7787732c8ff82bc43a2f90d6505483947960276982ac75af2c9f555560d7f0274 SHA512 741c4b5e09a56a07de9b7189119a778122ebdd279e6e7fdb6a0c77615dcf6e8c7f4f89df47222824733a0db10f01e9dc771eb94945887c7d4ea3cdbc72f23b5b +DIST gentoo-kernel-5.4.181-1.x86.xpak 53173037 BLAKE2B 3e16cc9bd0200ade9200e8096f1c623902cb5fc394e0d2447b52fa5e03dfbd5bc0546219cd9599c125575beb47939b8c654d8954231523e99a02a1ba6d6e7952 SHA512 d94d81d3bae26a53520fec410e64035482f47eb4b00b58e2ff165c9cdc428b0f8df66766d247f0e6bb100167fb4d9ee1286b7c587dbeaf02b9e4e15e69c5ec48 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.16.tar.xz 123114100 BLAKE2B 07a90cc640ff89e1359c06cee8c38abd33e51f9b9a89833e31a1d2750526fda4a59e8884db3c1ea63df0a37f0d3de6b5a922b014b7313d8abce20d90ac08adcb SHA512 7a257dd576bc8493595ec7d6f3c9cb6e22c772a8b2dbe735d2485c4f5c56e26a08695546e7e0f1f1cd04a533f25e829361958d4da0b98bf0ba8094dd57a85aaf diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.181.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.181.ebuild new file mode 100644 index 000000000000..394e48bdc613 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.181.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 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 +} |