summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-07-08 12:12:38 +0200
committerMichał Górny <mgorny@gentoo.org>2022-07-08 12:14:33 +0200
commit2267653a1967dbe49d746675ddd2a2601ff898c3 (patch)
treeae5fedaa1f6118b499e2199b19b123f39ed08c61 /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.204 (diff)
downloadgentoo-2267653a1967dbe49d746675ddd2a2601ff898c3.tar.gz
gentoo-2267653a1967dbe49d746675ddd2a2601ff898c3.tar.bz2
gentoo-2267653a1967dbe49d746675ddd2a2601ff898c3.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.129
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/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.129.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index a780bc83025a..f34a11394e63 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -8,6 +8,8 @@ DIST genpatches-5.10-136.base.tar.xz 3735152 BLAKE2B b8719d909793dad9e9970af8a8e
DIST genpatches-5.10-136.extras.tar.xz 3868 BLAKE2B 4d914dea81f6223ac97dc8a9a36f4f635e3a7223c25d311d5a313e25d21d779fcacc6688b2c303ad3ddb5e68b6a5572050e060a4129a90b7c6dde8f5325147be SHA512 c02024ea0782ca11db45d117f112702bdd839cc318e4a3d852be6d3e8e62b88fe200705ec817d0cc99b3a9d2bea1206964ae4ff5a2a9e06867ff987c5fd0d389
DIST genpatches-5.10-137.base.tar.xz 3737796 BLAKE2B e0af05dc22c6f077a110518f9e0cd790798b8a68f5d40c409dac7ea1845b8d80741975cc11d588a8cad96aea474c98803cc0db7631575d295ecfc0a1b4080864 SHA512 f9dd222670326f89a9ba62360290a29d5185afd89efe8aa38292a025dae941b10c28ab047c1fc7e84506d43ee56fda0790280c52ffca482e3041596696437ff8
DIST genpatches-5.10-137.extras.tar.xz 3868 BLAKE2B 97e6520ab0908d1270d10b6dab659899335aa405083e187822e7846a5034677fc77a05a20c33665ff9cd7b8a57fe95126b3c60218b0b5968967a866b241f03e1 SHA512 3945379ae2e5c2d5712788fdd27db2f74952686c319266897f649003198d0a5717c48c214f8e07310d6c489de8725e3cf4a74b4d05bcb4ae01332af175fbfbb9
+DIST genpatches-5.10-138.base.tar.xz 3762688 BLAKE2B 44039c709108f0b9a9ff95ffbcc35177536dcd1364424e3c555ea4611ca46d00cb13402d611bb9f7c839a2e2276d34818777edb206aef1cbf1a86a8a63fe5c45 SHA512 c9276637988fda74e346cda54dd86245e31a1be53dd10b42e3ffcb8b253d13b9209131925410a5c8797018bb940aa11db9120c921e87a45ae4f4396dd2e1f276
+DIST genpatches-5.10-138.extras.tar.xz 3868 BLAKE2B d08d8e425e323df25f3bad59bf71a0836b00b11855028d131d34a25938d9783ca85cb8ef5c9cae65eeec2a41280eb2cbf8816b94ee4c48c7a01d55dd4224f9ba SHA512 6ff612c0e8a050124a7f2bdfa2ff64f99bb0250e32f79b57855d9a95d7ea3182913ee016e63ae86413872791342c8eaea198929ae413dd0eb92eaefab4b953cc
DIST genpatches-5.15-52.base.tar.xz 2177024 BLAKE2B 2fd4767dd3ae66cce6a179105389ce6e57ef0bf46f2ed5cb9a350d300472f813d22cdabbde4201acd6c76ca0c7701d09753351c12b4eea05fd1e93142ae4d526 SHA512 cc5fd2f260366f8b2715e09c4124d269b168bbacfd40ff36d6ab113419b30331ebd000adb01e5e6df4aff27487e528dc2f3e154b7df32d37e1f30f5c13e247be
DIST genpatches-5.15-52.extras.tar.xz 3932 BLAKE2B 8735d0c2d8e5e3a14f01893109e8feb179d6632e0dc3254b57d7545fb6280ca09bf9c2baaef7ec02bf337cb0f1a0d42f2e44dea2168cfa2c2ad20969b64a178c SHA512 c461a48096d46bacfc4a2d89060b6e72584d74b215b3ba5c969529bfb4330672c15b7e5f015492e5b1ef081942eea60342a7d413af3fe28f2fde730b41553ac8
DIST genpatches-5.15-53.base.tar.xz 2200544 BLAKE2B a6f1e11186e771abe56bb453d45f6228aed255ef6e7f8b93cde7cd22d5d6068dd7abc1a7025851ae27f7bf8e6076d5a78c009e940645fe39926ceff20cddece2 SHA512 bcb691818b050f1c9138827ca2c86bbfe43cf6521b9f802dc41c4ba4f6e42e11e79494cd54ac391bf1129fc30f7baf9272f81821df9ef8ad79e2553655606d39
@@ -60,6 +62,10 @@ DIST gentoo-kernel-5.10.128-1.amd64.xpak 65795239 BLAKE2B ccd03c20e469543532c3df
DIST gentoo-kernel-5.10.128-1.arm64.xpak 60993645 BLAKE2B ab40edf44057745e141504d4043d1702fbdf51d0278dfc3803800632e80e7278c347cdd3d325608e0e948b2de3e4ac0bafa824800ce486f360163e29bc0a3d4c SHA512 da31c3a1c5095f28c4824588aad43d6ccf219b1c249ce0665566f732e8920f052fe916609bfa4dd5cdf1271c601c0ab67f299068da38ca695a4b14757a6d401f
DIST gentoo-kernel-5.10.128-1.ppc64le.xpak 56022338 BLAKE2B ac21918bdfdbd968899393e0a323808d0dd7705a7cac07057f76737c794160ea274f78acca2abe5244228f97343f08253c365bdefde74f2e7ca7ba6086e747d5 SHA512 05f3e3a6f20d1dff3fc8c1f12634e417261a55de47df189b3b9cc28ed7ce5f1673b19726d68dd00c1af4980c46769d029d83094efd98cd8865970f00b41d69c6
DIST gentoo-kernel-5.10.128-1.x86.xpak 57420299 BLAKE2B 493628ecad3280336abb5c7b829ad930d247d9a9e1c150751c2e02a9b4cf51bd7f3cde118c3e69cccce965a503b0560a0432a6967e0fcebe84e455ad338134f7 SHA512 256ad6f0be52f97551795eaa0b87922359949dff29eb92c606e67f9dd1949a8c0a3e45d5ea320740d674fbf1ab7527b4fdd5ac8c72552af0332d63d2067f2b7a
+DIST gentoo-kernel-5.10.129-1.amd64.xpak 65793148 BLAKE2B 8d98df7a360298a6c9eb2aadd998699ec41d70552ed6312640efff1f9f59a61ab0c106d7a20544020bd96e4f47171300463e8ddb7740bc23a6f89e28de2f4c45 SHA512 b28ad36e9523fa9797c03e1dfe68f7507333d90966f6dfd197f398fa715b5c53faaa7945e1443511fcbd631edcb61e0c947b05415d8ac9fd01f1c636573941e0
+DIST gentoo-kernel-5.10.129-1.arm64.xpak 60986026 BLAKE2B 9df2b094ed7b93d47f20b273dd92459e11870bd805cc6131914d4d74d9e8262c1b5c062f9ccc4f17cb5c69fe1f9eaef87d4a68ff863fb3e9dea4d1e7069ddc87 SHA512 3ea43a5c67cbd0d732bef1a8d642cb4bb9430b1ac41b20ef7625037f3cfc83b6ea196fd46808948d8aa5e6ec35e1b308c981e28ec1ed61bc0c969753eea4e104
+DIST gentoo-kernel-5.10.129-1.ppc64le.xpak 55908381 BLAKE2B c3b0a97c023b550a1622bccbdfd96e36e28ff3d777b77c0ecc8421d7d2189557e6b0b67dfe00d04c33bb904d4fc83ae40a87a3aa1c11b28e9d5ea9ef2b5aae07 SHA512 7aa1da498864b890e1a42f0dddfd5716049876b90a56258b48590644c15a7b3a92909d06134d5573015313344919c4176fbc67fbe64cd89644ab6cffd3ae0c89
+DIST gentoo-kernel-5.10.129-1.x86.xpak 57450365 BLAKE2B 0343a1365e940330beb6ee93b229f0b7e1314b82f893dbbbe936219f0c43ed3cab443028a2c5124d92791371773adcb8c22b8f82e960ef7cfec8c645f497970f SHA512 c76452e6c44ca958a4c2290c9860c5e8ed2f3a179eb3998e166e724e56e2c0c4881e75d962dbd09888cee9deeee12c0b862ada9c5229a52f82289f1a3493615c
DIST gentoo-kernel-5.15.48-1.amd64.xpak 69354442 BLAKE2B a95c782168eac06b73cbb26d34778a7f72a837addf9947f868356af45d0fe91e54cc17d44d23db03e226a04e4f890914ad03c29615d250b603bb54f21a703ae6 SHA512 6515bbe9b6191e9cebc11a7bf45c6d87110e26a3d142b1c74a559a88821fa5b9cafc8e948fc32b6d8f8c7f4cb9c1d618a7d72d811cb2565e043e810a1c90d981
DIST gentoo-kernel-5.15.48-1.arm64.xpak 64179857 BLAKE2B 776c33bf26548d64ef57a1e6519e03d7697fb3e36687c9d821f224398e87608ef6c19f03a45c5f73d2cffba03e7d5e698ba7b3bdf038a6a3da61d1253e81c946 SHA512 dfa64eebe6bc9ec9fe3dbda8903d4631c436ec6de5dcb549f320f439142f4b4e9a633b0be39ce3b5045bc9dbd44746e81fa9b60105d262c9d1f7aa6d09a959a9
DIST gentoo-kernel-5.15.48-1.ppc64le.xpak 58119260 BLAKE2B b651299e4c429a2c56ddeb4e5997c696ff78ee5b5197be7e86446615204d9f7450b695f11002d9424d2f3284ba11ca4113122d035e2bb28bb030f57b9d04faec SHA512 fc3b787f4dffe4174a7f033204e4c93fe03992ae33a9091736bc6c15fd3d7e828b1f6e57889b9c1bbaf3f7304ed8153ad6868d74267157dfa9172de007417785
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.129.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.129.ebuild
new file mode 100644
index 000000000000..da84e07f808e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.129.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##*.} + 9 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
+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
+}