diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-04-17 00:45:56 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-04-17 00:46:26 +0200 |
commit | dce4915163577ce79059673f1dd06ce5f58e1600 (patch) | |
tree | d09f431f8ffa46024adb6af2fcb339c1fe7f2e52 /sys-kernel/gentoo-kernel-bin | |
parent | virtual/dist-kernel: Bump to 5.11.15 (diff) | |
download | gentoo-dce4915163577ce79059673f1dd06ce5f58e1600.tar.gz gentoo-dce4915163577ce79059673f1dd06ce5f58e1600.tar.bz2 gentoo-dce4915163577ce79059673f1dd06ce5f58e1600.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.113
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.113.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 458ef8c4b913..e4daab974997 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -14,6 +14,8 @@ DIST genpatches-5.4-114.base.tar.xz 3305288 BLAKE2B 345acf1ef846178a5a70f385f3d9 DIST genpatches-5.4-114.extras.tar.xz 1768 BLAKE2B 506b391e93021d06af44ad90a1da1937aa45e51938220d9de89a525a073cee83b43966b546cfb6dedcc631a07134e55acb7e208a64a117d41f88db99273ba9a7 SHA512 9d13965d4a2db92647946c4126bd40d5a05ac0d848aedda82a6ea8a19f562ec1d8debc13594332cb1fc2a3bac9df76b08c5f666d5bf79b4285483c0d7ca02ab7 DIST genpatches-5.4-115.base.tar.xz 3335100 BLAKE2B 49863f2b97492223e0a42eecc0dfc6b53ed054810ec1281f064e39cc47e45b4897f795f8c2e43dcf3b974531221b2275ab26592914c845f4c18468be520f5f7d SHA512 b3b8b279a8fbd0cb58f4ec18e6351a08083fe06bde33cc53f378f82757ca8f004c016a562dedd4092412ce41be62f6f58a885deb12af87ffd288a597e9eaadf8 DIST genpatches-5.4-115.extras.tar.xz 1772 BLAKE2B 49c7ee35b73827fc454adf526f5ceed9f7c71b6ac2c2e954943142999ed7c1e7a58a543d1519c1d3d6b7e4e9aa3970094650663f10b65408414155909037b23f SHA512 d45ff15542dd01aa7381e992fee90391000cb42d421fab243563fcc547acb8576ab74ef78bf2eb1d81fcd327bf76ee3cc3a6addad5f5ead7eba47837d139792a +DIST genpatches-5.4-116.base.tar.xz 3335896 BLAKE2B efdbbacd50bfb4a54d3de569f22cdf24fe26945266808a5cd01039cf7045d802c7bc627bb2d5866615f6dab1f72ce8992841ce8fe8cb579c4df113efc066b89c SHA512 8500cc96e2590bf114c184ad1eba30aedaf2080e5651cc4c352107fd10218eb5f471ec957b26fff9d3f98f56410c245776f13950b9ba49b053e2bd43254e3e38 +DIST genpatches-5.4-116.extras.tar.xz 1768 BLAKE2B 34c8926f21ae07fa0b18aca7c85273986da3810180e62178f841023e7f896417eb1fad53084ac6f8e140ac90adad839494c49ada159290b806c675eef76c1962 SHA512 1abf8d8cfc7fce46c77d1f3f431b067b2ad1eaf9afe3c025d786b8a65bfdf9e469a72a75b64a0fd191487a391f2a1e717aeabd5634fc372d023d1f5fc39f1f6d DIST gentoo-kernel-5.10.27-1.amd64.xpak 64103968 BLAKE2B 68f1d8dda132b7e808f2becb52f9b035c12f4ad6a353bfa51618ec2ba24f527a5c1c3f4244b1cd1418cc34041d4114703e44c98cacd9aab13aa3e7e9941d2abe SHA512 c5eba8f18288936e621956248b3021c7d3c25c0a598ac1f7301287e2ae5bbef29c45d29f0b8b347dff99dc0b9408fbb299162998f4c7d85f330aa5526e4a6eeb DIST gentoo-kernel-5.10.27-1.arm64.xpak 59322840 BLAKE2B 35b4da2456931ff3316cf424448991c96d580dc7d63c6211f72b630ec40b27afa684c3e471995ace7d33c535e61c3bcb2443bef6a780b7ce1450e9e3abe7825f SHA512 c3465d647975785093fac8812d4cf2e7be9e4ee0c13afeb92ace0c93f54559c030ef5b746e169ec362b53d9d5df1bcb6c3aa9869acdda56c792803fc3ccde7c5 DIST gentoo-kernel-5.10.27-1.x86.xpak 57074563 BLAKE2B ec113b1cd361f46d948004f58b0cc81edcc96d68fc5e949a6f4c0d4c634189ad014de8fa028d9282c89f8e75ccacb95034c0e01db21f465931e2ba78ee81f7ea SHA512 c1892e2fa4db321572f76f92231e9f5b3fa4a88a8af17fa5d4f8d754dd565c40eaa8f83dd2e991ab5837d821abe5d7f012fd56cd793f6e0fd6b3f2f78dab1621 @@ -35,6 +37,8 @@ DIST gentoo-kernel-5.4.111-1.arm64.xpak 56472651 BLAKE2B 07ff38c5424d59125adfc12 DIST gentoo-kernel-5.4.111-1.x86.xpak 53176206 BLAKE2B 0c0975b11d7c10d53544d1323f24c576a85dbdb86ad923262c2fe1c5785385127d5de1c6752d2b8926a372f96ccbaf10eb562970db73ebd25281f00016e40cb1 SHA512 e32b887d059b0a6ecc83929a1a0e406620dce2db21cd672386f3b5a81af02449a08d890a4321ce4f7eb9afa58023170b076ddae8d8b71b240edecad0721620d0 DIST gentoo-kernel-5.4.112-1.amd64.xpak 61380061 BLAKE2B 00388f010fbfad30b59df09a87f93f4fdd73dc04adda26104d1a55d4d5bd456831df314ef8d181abe6118775a70fac5d86147353ad8a1d6a960c7e92ad55952f SHA512 4ba4e62ca1c23f84cbbc38ac8cd1077c1a40205bd04f469b0c14fbaf3f15234f90aba702cf9ece1419d6f00c8f93ddf52d104fc1abcc16cc8f9834427d84a05d DIST gentoo-kernel-5.4.112-1.x86.xpak 53174832 BLAKE2B 90e93a7034c98e309c1cd2aa5bfe51e3a1d8e5a9fc22d803106165effda5c4507a6a754adf75a3e6552f65b831baee1aad5b4a16930b29b11c84d74f4d288c6b SHA512 00f536f700184b0d9c63ee0f998a07981045eb068d81d5a8d1e783c78ea41b1e15010cf2e74e923f17b213f20de00316ee7cb1555c16ce840ea574a7486529d7 +DIST gentoo-kernel-5.4.113-1.amd64.xpak 61382156 BLAKE2B 042a2321aa396bceb6984590e51aee79d0d790e35bc3ece36916ccfe9103a801f4892c930491f69dd76ef9932375ea0a796f07f0efa73418d016b1b9025d4866 SHA512 aaa778f541efa574f1831c36da931b17d9fb656f18cc889acec78990c16e569c75e590eecc78e3efd2d21abad37d2ecd82c6566578310a143a8a9cac8a5161e8 +DIST gentoo-kernel-5.4.113-1.x86.xpak 53180295 BLAKE2B 10b9a5457e123367949755ed81671233ff3e4470fb437e8cdff773985dbf07e7e09cb450e56e484a8f27f4aace1abf7bd6053c339aa95aa4d903a37b826a4693 SHA512 6e3fe295073418a7cf4589e96653d71b47f6245970f4891cf44b8cc21bf3ebc4d134dfbd1ea4c2eb99e88c2dd5dd3e35042e89d212f9401b1c084463af2ec098 DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.11.tar.xz 117619104 BLAKE2B 81300c27bd5476387a83123aaeb4163c73eb61e9245806c23660cb5e6a4fa88ffc9def027031335fa0270fc4080506cd415990014364e3a98b9d2e8c58a29524 SHA512 a567ec133018bb5ec00c60281479b466c26e02137a93a9c690e83997947df02b6fd94e76e8df748f6d70ceb58a19bacc3b1467de10b7a1fad2763db32b3f1330 DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.113.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.113.ebuild new file mode 100644 index 000000000000..550411ea18c7 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.113.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##*.} + 3 )) +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 +} |