summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-05-08 00:04:17 +0200
committerMichał Górny <mgorny@gentoo.org>2021-05-08 00:22:35 +0200
commit91a5d99cb8d59a0300733f1520fd47ad9abe8b52 (patch)
tree3a1042d04d13c348deb361d45860a64b9d289a39 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.35 (diff)
downloadgentoo-91a5d99cb8d59a0300733f1520fd47ad9abe8b52.tar.gz
gentoo-91a5d99cb8d59a0300733f1520fd47ad9abe8b52.tar.bz2
gentoo-91a5d99cb8d59a0300733f1520fd47ad9abe8b52.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.11.19
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.19.ebuild117
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index d62937fd20ff..16db4dc32ec2 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -26,6 +26,8 @@ DIST genpatches-5.11-20.base.tar.xz 674760 BLAKE2B 934558838ae3623f02697dcaed81d
DIST genpatches-5.11-20.extras.tar.xz 1772 BLAKE2B 720a9b97c773775065b1a050594bb5f286d985d33b6c1da624fd0771fdb8cdcb3577fe17229000a710dae2789a7480402b0961352a21d40d3940640f9e02abf6 SHA512 063f220996d8f852a5562545f4217f36f63b83cf7676976820500b60de85f45ba954bd1c637d7f453faca65d1c68daf77ee876e30e502fb2a9cd4d5ef0c260cc
DIST genpatches-5.11-21.base.tar.xz 675064 BLAKE2B 0bf51d2261550cca3b1e01f2abc99475635d00a4a0b99655f639ace9c04c9b161b36da07484f22ce32bb52a32648fd29d8fdd17e6b8d290786d2bae226cb03cb SHA512 ace9c71e28b9985f4e8f00677b5d1d1d60d77d3fc879f17e1ee129e2ce20709e4eaa9dc51584a54d259a2ec6cbaf9334a81802c1c517facb131cadaef1fce41e
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.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
@@ -83,6 +85,8 @@ DIST gentoo-kernel-5.11.17-1.x86.xpak 57637749 BLAKE2B 9895d3b82d997f882684822ca
DIST gentoo-kernel-5.11.18-1.amd64.xpak 65852667 BLAKE2B 29ddd550bd6cfec25809c53875bb96ac0c61418fc2707435e2e6571e581dc8df7e0986615073b3e9226eefbe6f587e454b4710a3a876550aa2f4f582001d031e SHA512 fa5af0e8a3bcfc2058b5cb5449707e1e156df6095ceb2ac7d75466fd181e0d0f15bb637671c17876817b82471853581a1feaa32102733c60193dd0d26ffee61d
DIST gentoo-kernel-5.11.18-1.arm64.xpak 59841788 BLAKE2B 8f954d6986e3d4d1c7a7f9f44f39d8817fb01bffd933ecf7124432f9626e5a6d77cdee800d9147e49334c2920f6149ef4cc8e4120709cff8ba61463dc953504d SHA512 f83a415929c3195c7dcc85df311fc2b4b10083d9f5ebbc1098cf489efd9eee8418b540b342b84b7fee6323d5e4d84cad9c83cb0179a7caf84c62fff8ca667c30
DIST gentoo-kernel-5.11.18-1.x86.xpak 57632889 BLAKE2B 449dfd81cb72441bb85baa686f3ac6c17f54febd6ad8a48b9c16ee7c3821dc2fc0a5e44480fdec74fb28cf345864a72c4493335d23ffa4735cd7735a1cc9fc93 SHA512 564e98fc485c43b65aa3a1a6e40b30d03ea8927a2588ee82d9f890704db7d51002400c59b75455366e2d86dd59ccbec74f18d1ef5e906bbd2a084f22b66f3d30
+DIST gentoo-kernel-5.11.19-1.amd64.xpak 65896925 BLAKE2B 7bad7ad368668bf79b5ac630b4e9bedfee4c81d7a27459fac002d5d4cb40496922f134bf41a2c479a184b64fbda0da6eb45e37724b1c6e29ebb56e3838b81052 SHA512 56c49da22f0a7c8870e7a57e2bdced8eba2b0295ffe7e3a5977b22e39fa43000077cccdad893643a0abb9a82aa9f57a32a8a47873839d549627cbba435b3010b
+DIST gentoo-kernel-5.11.19-1.x86.xpak 57672197 BLAKE2B 6df796e0b3ea63700742825665e4c5703290b00d2fc205b46e01a6da1609c4d44bb4e8a9c8c7631bfa85da76c93ea3eb01f16aa1614440bac55f466ba2f0e15f SHA512 a2106657d40dad990a7034c5fb0a13e2cd16025a88e3dcac861f5bd16f755e2268b1b8622c6be293fda457dfb5e20583db9f56d792d7fe679f3e7f2c65d6396d
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.19.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.19.ebuild
new file mode 100644
index 000000000000..6208453ad7c9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.11.19.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
+}