commit: ac83f7fbe976b0f0ae85dcd401eb798fb019e786 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed May 12 18:14:55 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed May 12 18:22:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac83f7fb
sys-kernel/gentoo-kernel-bin: Bump to 5.11.20 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 4 + .../gentoo-kernel-bin-5.11.20.ebuild | 117 +++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 675bac2f287..81ea6decdbd 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -30,6 +30,8 @@ DIST genpatches-5.11-21.base.tar.xz 675064 BLAKE2B 0bf51d2261550cca3b1e01f2abc99 DIST genpatches-5.11-21.extras.tar.xz 1768 BLAKE2B 23d1ed173ad6c888f51460f1012facb93ae1f76d3d4b320fc7c4b1b4d81ddfee257936d09dab4788cd3c5a95088e5f423eb6d7b1c2935de8f5bda4b95cb09755 SHA512 71d473521855328d515b2b824edfd29827072627ade43dab3770defba4fba836d624b2230d503a1fde005e536734224101e51fa632e355175a64cd0695081529 DIST genpatches-5.11-22.base.tar.xz 684008 BLAKE2B bd081c8a40b4ebba531a93be0288e50ab526b5bb588ac3332757a3a20be15158557f31b6a0c82d616739192d73bd6507817cd403d04460ab955caddfb7ef764f SHA512 0a08fdf3f5f9e3ba8217d2e25820fb2da39a712eb919273465ad3500ba0c4359f0524b016e0d34c10d93bfc7acd20220c39f3aa71ba092f5ad328ff0c066229f DIST genpatches-5.11-22.extras.tar.xz 1772 BLAKE2B d0cb5b3c5b27f9f7ad9049541d0e19f37198d29c1bc4cf2dc0f2644c7cb46638e6adac030ce033eae048ab10de4a9adf60c3791733fcc01b1e7e6e1bf63a027d SHA512 c91a0538702f83869c75140af61eda6b4e889007117549eacd0877007dd5136eae45aac72390418e1791101e8a4dc19440678b7912bb01677ba788c76239bc9c +DIST genpatches-5.11-23.base.tar.xz 780560 BLAKE2B 1a825e657879f0d6d6ec51c24ff52e844de9ed644f781057a7d901ae9e8a02f7b90ecee465f608502c0af510e58461b64a1f5125f5234272d6d79cd912fda828 SHA512 8c746072e5667ff35caf2bc44917a0016052cd8b8d67000f9a8ae666a75db4c42e2a5a8bbab8e7c6ec8cb85d0b71afc50aff7df88019ac3774f4b43527e6a88b +DIST genpatches-5.11-23.extras.tar.xz 1768 BLAKE2B 0dc1b2b6d35024f967f941c2843cba1f32b0dbf98103b8d1d821a6e5f8abfeb7e9a3f0d8ca4b908b646c5211e3918da60f54b07d54b865afdd4d6906a40d4595 SHA512 5bcf298f79673b0731870a52bc8668fcae1d371c9df90488f396b9e4394ca020f7b962bde7af03a862b3973a694289fe32ae28226c90c82967dfa2929d154ce8 DIST genpatches-5.4-112.base.tar.xz 3278220 BLAKE2B 11c4a33da1081ce777019604d06740368895e74893cb88f4ba6e3988fe3204f2d5a0ffe2204f77aed427ce8decdd77c5ea7dd374e893cbf7ab346b8fb87a918d SHA512 d2c5378076390358ec60346e832a9454f1b61e67c68da4c6652d7d6cfa29223417fd0b95ea526cead86af5692e4e702a0ee5a169a894d04644f95bbbdd7d727e DIST genpatches-5.4-112.extras.tar.xz 1768 BLAKE2B 7f77e833bc17035063b98d89135455fe6200eda135a92221c0f2eef63c6b41235653a8d11a7c99e542010c2195c1af8f5ae84a7da27d159fef67be5192537722 SHA512 6dda1c917736f8a45b1d79e3d7f30b243f922b274425975f520d1d2a5a0fb95b0ab242e0f24bd3a5e0b09e8eac76b6f71eab94cbe1747e3162ce85d892a6da5c DIST genpatches-5.4-114.base.tar.xz 3305288 BLAKE2B 345acf1ef846178a5a70f385f3d9c2dea25b1892fb755cbd43c78f3aa553097294549a5f24e9552ab0d37d5086fb58e98b72db5230ab8506e725a0908edd5143 SHA512 fdbb6b9c10eafc3069b72460db1209843ec4d4d024548a384dca72592e3c6e5e4eb3b9b34058266499da26caf0a168a1469de7bf4934e0855c6a5db1f4d8d69e @@ -95,6 +97,8 @@ DIST gentoo-kernel-5.11.18-1.x86.xpak 57632889 BLAKE2B 449dfd81cb72441bb85baa686 DIST gentoo-kernel-5.11.19-1.amd64.xpak 65896925 BLAKE2B 7bad7ad368668bf79b5ac630b4e9bedfee4c81d7a27459fac002d5d4cb40496922f134bf41a2c479a184b64fbda0da6eb45e37724b1c6e29ebb56e3838b81052 SHA512 56c49da22f0a7c8870e7a57e2bdced8eba2b0295ffe7e3a5977b22e39fa43000077cccdad893643a0abb9a82aa9f57a32a8a47873839d549627cbba435b3010b DIST gentoo-kernel-5.11.19-1.arm64.xpak 59764011 BLAKE2B 719a3282547c4980ae5b1980be86e4a0b7f881577aee11fec21dcd374b1b89303d0cd6f9528b373a48a61ce0d5bbc6304ca2302a038e81e1bccb34b6d3af2139 SHA512 8b526f37e6d444d43e0b39936b6fa6e644d986794333bb33381fcdb6d78d3e9343ba4353ad558955eee4ce15c777bc2c13224851254fa84868d8e16a29d0243e DIST gentoo-kernel-5.11.19-1.x86.xpak 57672197 BLAKE2B 6df796e0b3ea63700742825665e4c5703290b00d2fc205b46e01a6da1609c4d44bb4e8a9c8c7631bfa85da76c93ea3eb01f16aa1614440bac55f466ba2f0e15f SHA512 a2106657d40dad990a7034c5fb0a13e2cd16025a88e3dcac861f5bd16f755e2268b1b8622c6be293fda457dfb5e20583db9f56d792d7fe679f3e7f2c65d6396d +DIST gentoo-kernel-5.11.20-1.amd64.xpak 65858318 BLAKE2B f1df321519818dfb9793d0e777923e5bb9fb3482772ad0093963dad427dfdfc8900e5fc87a103b655befc23373d3c9b78afc59e44d02715f4eb3f7c59e002298 SHA512 1cbb4fb14434713af7c0fb530f47b2f4a34ccf8a951f2f206d7f7d6ba3bc05ec052398fdf905e0db33db7032746a01ce6cd422b7576fc681bf08d926f2b930e6 +DIST gentoo-kernel-5.11.20-1.x86.xpak 57648197 BLAKE2B 7fbcdcb48e752fd594287b06d9936535156f6cf4fe5370c5ac7a98c1e6dcf77bc3a78bcfce5baa101a47eae65fc58aff3a725644570fd816e9d2c56a74cd4f86 SHA512 ed2c69a0d395fe7f53018e4ffb4ad66cc08b9908b48f5d17f7fc18a5752f0f7264eb8355610fd0f23803191233fdd28d5bfe4e7eb24f5d1ebc56f8d584a6539c DIST gentoo-kernel-5.4.109-1.amd64.xpak 61197533 BLAKE2B d192b84c8e00a992256d44bce33975e29f7ae330a62a5902df14ca08ac5222c3bdbcb1ac27df36db615deecd7af7e264842c2aa358e4cc54e830f3507f5ad034 SHA512 33f192621fa3aa692e7b77897e57e50c7af81cb3ba6a40fd090bdafb5ed7b83dc83438028fc6999723e7f82a22635462746a92ced5439f136c56e0559c85b945 DIST gentoo-kernel-5.4.109-1.arm64.xpak 56430663 BLAKE2B 6079b762ab5cdeb0c745a1a030e4a3af36883588c88dcb8c8cd811aa47d7cbaebc573b152f01fed451dbbfda1ec89ed400270e6fda4e3e1df1aec497b3f7815a SHA512 2d29230577255473618d698363af8c7ef8dd9dd3dcaeaec8fc8802e453838d2c1685e001a6ceb784f6c6ab77fb2b991366e213fec9c45b5763a3a5f57674cef7 DIST gentoo-kernel-5.4.109-1.x86.xpak 53002823 BLAKE2B eb9548ce9e285fa665e2adc01f33198b9f2b2ae1ea21ddbaf10c9a92664ac6bb12da1c7c6c1923e2efe4746879d3ee27b75f560a69d958465fcea03ebb4f3a7d SHA512 f3848ac5f9ba9e04af65e1b1888e7a2b9836dfeb8ca3f5a692146f524f8e8d87d7b6766183879c879004d8505f013553d13885ffcf97724ba6f1df49c724af3f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.20.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.20.ebuild new file mode 100644 index 00000000000..6208453ad7c --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.20.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/~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 + ) + 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 +}