diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-09-16 17:57:46 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-09-16 18:01:34 +0200 |
commit | 43548170f8a5de8a14f42a2be15f27492ddb380b (patch) | |
tree | d29e604b60b545fb16909746259dcda31dec8048 /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.66 (diff) | |
download | gentoo-43548170f8a5de8a14f42a2be15f27492ddb380b.tar.gz gentoo-43548170f8a5de8a14f42a2be15f27492ddb380b.tar.bz2 gentoo-43548170f8a5de8a14f42a2be15f27492ddb380b.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.147
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.147.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 96bd7d8224fd..ddf8bcc71942 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -36,6 +36,8 @@ DIST genpatches-5.4-149.base.tar.xz 3897496 BLAKE2B 0f815da5a71bf0c55b7bd27f242b DIST genpatches-5.4-149.extras.tar.xz 1788 BLAKE2B 05c45b84dbd9952cdaf41f881aaf67bdf2d6842c4eb967a765e5a19a9a63201d4d7a552983342bf010a5cefdbb36a1a4aae3254edc0322eccc7fb3442b007b9f SHA512 3ab95bda0b4cd11aa7769eb27c51051a79ce43112028557d4f87588e7140a674f3c58890e812722b8796aaa953e68ae22b92a3390ae8832bae16b617c6d49997 DIST genpatches-5.4-150.base.tar.xz 3930104 BLAKE2B eb120013120a98449c8df210a5a02201949ca950dd812308a53e15b726d1752f296b0e3490e6fc9102fe91793be24d4f7554f3a1c1c1243766959fecb037b789 SHA512 238164efd759be2714884ddf5921de189e872dfd8ea4954356a610aacac899f806ca5f6fcf0c2e5eb64e7eff89a37f5c8b7b26b98c9f1705717e14abad6984fd DIST genpatches-5.4-150.extras.tar.xz 1788 BLAKE2B b408e6247a66358208489dfcf3bdd6aaf47a471089ffa8517a52039535f276ab411931a7c1dcc17b7d2aee99a49e530ceb43cfe0c59ecff982da40337c22e375 SHA512 0d1f94ab3cf4759f1f87a63d95ecb00c7a4c4c982b6bf73137bde0aefb1c07b037d8e613966c45cf3e4122e0c93771011e8094ca4517fe3da9ec4dd4e2820e35 +DIST genpatches-5.4-151.base.tar.xz 3930340 BLAKE2B 1184047bb8e7b7e51e09e8bfc4bd40b83a4b5885b5686184097baacc759e7e3050b71df21f3c61b2952053a5c90c0116f6aafe1c911efa66bb806978f752c9ff SHA512 ea1cc2c6702989e1cf2db5f2b605a559f046ae8a7b1f9dc0a5c6e123a063b0ac5199c8fd582f4c26c0fa016b4a1b58c67c23ce2f8c4f67bc1cf70f746d47b11e +DIST genpatches-5.4-151.extras.tar.xz 1788 BLAKE2B b0e61b381e67be61a6a2f550a8a336c065a4c8c49eca7111fffe05f6154e72ee832e8c27ae6aaa0f2fe5b0aec797538ee97e01521d51bb492c1e3faad36fe5b1 SHA512 42512877cd23307522ae484a04b52c46095cdcc59223432fa1a66d9fbe41a40dc336445e68f8fda184c5d669a848132c066bacbfb282fa925fdccdacb84739f9 DIST gentoo-kernel-5.10.60-1.amd64.xpak 65504358 BLAKE2B 233766cf8fd62c2b70cf257a8bbf5dab9a45d1d10b508827c58593c7523b04e3843a69f51dd38798f5889447eae8a861f8b3cebe5985e48b63c65dbc7183ff4e SHA512 d547eee171746da27a4d1ebfce701b18c1e8fcded3c46c5ef875da6177645ed9088bdeed4188bb2d6746311ebe839b077e1a97ed5f9f7fa14ed2e43129701780 DIST gentoo-kernel-5.10.60-1.arm64.xpak 61199661 BLAKE2B 1d004eae20fe67cdde4612d56e648cdd22975a1b5b418c0e1b80a1f9235f1b0917f4af6f8946da793dbf9fa20a42033ab397ece19308bea10b0ce5c550b45409 SHA512 649886a2117b8318dd03ce8a85905abb79cabf888ee5441da5a56d22354cbcda5be8343ada6335310dfd6192d5f3e145220aaaa52d3efd6b943151c0a3692f5f DIST gentoo-kernel-5.10.60-1.x86.xpak 57229580 BLAKE2B 90b7d12883271c0ac49cfff5ece81fde229c2f9f5c27c21d19c4c97132dd091bb798d75332c72491178655d8350e30addf868df71562bbaf645af5705d49daeb SHA512 043d1a0c5cefc49188a444b2ccc85decae53a318ee759449af4b30922a46329d57e1fd45f40b5c74b74f08e0cc5edc2835ba8291be460dea9699a998b9e1a6ac @@ -88,6 +90,8 @@ DIST gentoo-kernel-5.4.145-1.arm64-r1.xpak 58052696 BLAKE2B d6307dd64cd4bac6e3ff DIST gentoo-kernel-5.4.145-1.x86.xpak 53156535 BLAKE2B dedace8aead3af364d179d46cf653dd64f374b8a17df5d10ce36a058772838fad613352ac24ace3d0a6395b04c7d1aac5ef8a6ef8267fa363c74ec64dcddbdbb SHA512 1b44642b642645902fe8614fd1856fbc8d97bf7d05a2d3586d4ee60a662febdfc87952fe5b430eda7b92891a6d63237de5c944b253fa9c2e7a2661b98e6d393f DIST gentoo-kernel-5.4.146-1.amd64.xpak 61378884 BLAKE2B e3ead83f15df6ef3c355a628c2d8cef0fa475b424a893fb3fdf1173123b263bbec494e3f3c262f97edf8ef226ef31ac0cee97a9c020b7ecb7f11c136df7ecf3b SHA512 fd409fa97d47df1cef18c038225f7662bcb2880becb93d1c9b6f2abaf5ff73e02126e64b622922a55bdce1d807c55af0124fe749b7672a2166c44e22f04941c1 DIST gentoo-kernel-5.4.146-1.x86.xpak 53156419 BLAKE2B 95b47c9117ae4b87cd58578007d0a29fe190dfecab74173e2e3bbc3c68a3be2a7762711a797e7e864a4e80b8669567851370ae7c25dc450c7467bf00ea92799b SHA512 2dbf269433da0eb05726ce40f958ffc69081ddd20dc5de642ead61cca9ac2bc725acd1ff6f1dd6f76de8393bea7731f29e80c2a18792a697d68452879672d805 +DIST gentoo-kernel-5.4.147-1.amd64.xpak 61347875 BLAKE2B 41b273a3ea9af3606042d11d19e19c4da1e2ca94c0e04b68f05f4790dcd360b5f42ba3bec08dfabd3a6700c02e55c0bb341ae3820c46bbf7cdd959582872ac35 SHA512 282c251b24fade207ae8d0b2242e40f442bd4156abed4e82d1991370df4f4024bab7c236374178f025351b92c8c91f9fb7aa86c3d7afac2cb0d89e0955ce4ddf +DIST gentoo-kernel-5.4.147-1.x86.xpak 53170376 BLAKE2B 26c845e525c9cac5f31dd1e8cd19407cd367af395f2c2d34bd240c166d457fd3cbc86f9dfe3f10b9379110fd8c842edf6746345d3ff83ccb861c921aa1980ff4 SHA512 ec74127841f6adc7be48376d20365070ed3c4ebde3b9f2c2f5be8107f16665ddab1e88319448ae6a059e1f29eb0e7349a2b4b01111dea60d9052d2e8fb233342 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.12.tar.xz 118112412 BLAKE2B 842d921b9a73d2aaade763dbd2ec67bdfe0275baa6d628b775f5c87574ad7dc86f0419afcd48c10c1235f4bffa16084243f2cf4556e6afcd391e975fe8ba530b SHA512 be03b6fee1d1ea8087b09874d27c0a602c0b04fd90ad38b975bd2c8455a07e83c29b56814aaf1389e82305fae0e4c2d1701075a7f0a7295dd28149f967ec5b3d DIST linux-5.13.tar.xz 119297284 BLAKE2B 9c4c12e2394dec064adff51f7ccdf389192eb27ba7906db5eda543afe3d04afca6b9ea0848a057571bf2534eeb98e1e3a67734deff82c0d3731be205ad995668 SHA512 a8edf97e9d38a49f1be2bde1e29ad96274bb2c6f7e8a2bebaa1161dd4df9cabcbaec4ff644c45bee94f86ae47725087d6deed0cd954209cec717621d137db85e diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.147.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.147.ebuild new file mode 100644 index 000000000000..19484744cb5c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.147.ebuild @@ -0,0 +1,117 @@ +# Copyright 2020-2021 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 + ) + 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 ~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 + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.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 + + # 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 +} |