summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-04-14 04:19:42 +0200
committerMichał Górny <mgorny@gentoo.org>2023-04-14 04:19:42 +0200
commit93a8b7043994d4229627309637e50c35c2e615aa (patch)
treef863b29146282d28e64f1a1e8032a53909528dec /sys-kernel
parentvirtual/dist-kernel: Bump to 5.15.107 (diff)
downloadgentoo-93a8b7043994d4229627309637e50c35c2e615aa.tar.gz
gentoo-93a8b7043994d4229627309637e50c35c2e615aa.tar.bz2
gentoo-93a8b7043994d4229627309637e50c35c2e615aa.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.2.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.11.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 6cbd84c02e69..30f7853775d9 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -58,6 +58,8 @@ DIST genpatches-6.2-11.base.tar.xz 543376 BLAKE2B d034518061bff5104d3659da0cccdb
DIST genpatches-6.2-11.extras.tar.xz 3812 BLAKE2B 73b6bd3e03d9cdfcd854ff29fe3184cc3c69003fa00955bc38ad756a488d35075b3db976784fb393b07afb98b99857a3ef09746d0849f2c6cc1c5d38dff52304 SHA512 e56b74f01db62f21cd4075283cb108f415035ea3775a67421adeede42bae42b88e463a900c19b4ace394926c901272a7658b85ce13e2a6c76c1b820ecbe9f462
DIST genpatches-6.2-12.base.tar.xz 611100 BLAKE2B 9e3e50edbd85e9909351304b292de87b74f8adee2a99a2d5c6f858ee195e8df08772f1b1167899b52964b3d7a2595628d0e0e6c7e6dcc79f53b88434123ca308 SHA512 9923a3d4fa2f2310954b9d803784192b0367c286880c15af34e63c660ee593373a51d23561be0d1bbec15d39f1b57b345497f5cae3c73535c1caa8e62b8f43c4
DIST genpatches-6.2-12.extras.tar.xz 3808 BLAKE2B 65df0f1a93ba2eda0ac31002f723d5b730c6af33dc60dd8a6f942a6a0276feafdd12463017164c5b782c031748829d812079290533268f8df497a8b10e1ae4a1 SHA512 f91ff719f6cde159026bdc4a76432bd195933d34dd3e7cb3ef0a2dcf18ad6786e2a4f8bab423b1b1d19ace3513c02e048a491f4ca76f37bd211d5579361bef6b
+DIST genpatches-6.2-13.base.tar.xz 700552 BLAKE2B 53187881831a5ee8ac1581d78d89b56d5e6cbd45a1267f294312fbd648818530f029280b6face5c1c7f7c6d2c13c5e3fc6d1747f4abea8b2065f960a42a45d2e SHA512 2ca287f97bb3c01291eb5faa1de40827d014547e2cbb5063e77597e027f58672a262bcc51f1f2111cb5621f75b59c61a3cfa40f30fe8bc923136f8de3dd3e1ca
+DIST genpatches-6.2-13.extras.tar.xz 3812 BLAKE2B 2e0620c2c03f6775a4ee7d29aeace0ed2474edf371bdea0aff7ec8b11db0804641ba4d2cb1993fdd7936ad6075c1b7de0bca6c055327b25f17a74d4f3a9d5d4c SHA512 5a146e403f04c1b8fec69ff2824f4d0b446fea895126839aacc511b47b4eadcfcf61ced441e3886ad4fc018379b029305d72a99d34d98ef1fdf486e28e888ce2
DIST genpatches-6.2-8.base.tar.xz 378352 BLAKE2B bfdf83b6ed486ad759f6021e48fad9b980a87ba5c54c0f06dbb2af3dccc79b41c7065d5a3a11933d761da759d9b33b314c456b458c9c65f49de75dd2cd4402ee SHA512 48521d82fbb2475b7a477bcd87dbba073f6c72cfde784adb77e9b92c44bc1fae188179199aee9face7bf53538cc5f2cae491173da686a54182579d69585b54e6
DIST genpatches-6.2-8.extras.tar.xz 3808 BLAKE2B 3bb072914898f6f80f3ceef2ac92d44b3dba7aba6232febd7f7ad48232a2d76c3de4414a0822d0c7d45f632f02441e640a0911fa38a24ca88373807e04806ed0 SHA512 a4c3ca924859b487463b20fd470c2f157e404c0380cc8721d9a9c787519b1471c88f72daf57398d0c8582ec966bd9939c2082ad3b3cd71f93b761bf4443f3a35
DIST genpatches-6.2-9.base.tar.xz 419680 BLAKE2B 9c206118605a2da947feb5b7e4b5c0a022a8f88936af354679ea50fba6f7b99b27794693ea18b7511feb5c46ef9d7cfaa55a1d426d6181e977c73e8c41a5343e SHA512 ccc911b481597853d5ce05fb8c2e2436c1d67a30f567ceb219cc724f5ffc311b7e6a3c13c66ed964ca9d314ab9f00bcd27ea7f078260956b003c59de903c6e6d
@@ -174,6 +176,10 @@ DIST gentoo-kernel-6.2.10-1.amd64.gpkg.tar 82636800 BLAKE2B 6440affd0e251a896be8
DIST gentoo-kernel-6.2.10-1.arm64.gpkg.tar 71792640 BLAKE2B 63a0e205036ef45b1d661e8789cf311ac6de4c105e86d9bba93e062e2a8e8b0e15c7944b57c3230d584a870bc64400bee44a91b5e945c9b8f2ce37eff1148798 SHA512 055e64da90d7b97358656898aa9f718382da3006220ea96e4a9c769ff8c057926b17d35770d5145e83538d6cfe5a39fd6549a1d415e3516efe2cde71937adebe
DIST gentoo-kernel-6.2.10-1.ppc64le.gpkg.tar 63907840 BLAKE2B b34e7d2d1ad6f95f04c492ddf3ff13be45c38ab53cff33dfa9d7d9685594d565f8e9a7346bb5116bc0065633738bb711c2bd052a2e88617a7f632b534bf7e0c2 SHA512 1d0288d6d838d3fa8c9802f2c9e5d519e6f464f537a90af54c195c16e7163aeddd34abdb8e3a36b50d34e5af762dd14d5aa6ed0de44459457fe712242aaaed74
DIST gentoo-kernel-6.2.10-1.x86.gpkg.tar 66334720 BLAKE2B d491386bf142d410c96d1fc0b93fc08d1535390a71c8d8e734752056ae58a0d58dcb1807cf035e5f773ddaf4d4b66e6f6ebde6d054dd6f9a54673c5a2237f5ba SHA512 1240d9b52eec0180d58c244fdcf46ccc6ccf8da5bec32dbb0c9177e1a1277332f96cbba148d2347a11c67f306dd457ea9766b88a0b25099e791b49ba13f39134
+DIST gentoo-kernel-6.2.11-1.amd64.gpkg.tar 82677760 BLAKE2B adf559953129d13445779db2cf94fac590be85e967c9f98eae249631a155cf09d4cfebadea80403dfb997373e62fc29ca3c0711b88678de44336874296f078e2 SHA512 29a24773eda5b9f063c511f41757665fe0ba5f0b705b6d2ecb26630f67a786b292123fbf15d65b9f9f0157e6f8c9e1d3c6653877a72f6865e93ea44aa5e3506c
+DIST gentoo-kernel-6.2.11-1.arm64.gpkg.tar 71802880 BLAKE2B 85ce00be9552b13f3a6cf4a99ea47dd82a5ba786839eb15581928a451ce9436d3b29af9f16e6f76834c9c3082f7f4c1c8470e834d9e2e898c7b9885ebe8283aa SHA512 b5333cf73723d68ceac0cfbbc5cc222f05fa26103e5eebd46229e2ea61ad4d743f08ecacf9e32937bcb7e22cec83463f12e39dbf995ebe0239aa5836811ebe80
+DIST gentoo-kernel-6.2.11-1.ppc64le.gpkg.tar 63897600 BLAKE2B e322acf9d9ca08f2547040f745c6643b4834d65b24852ccb255de7448f8625c319bee8adf970edda9b279cd9c940a37f39dfebb78ca12aa82d2d4e1611a2fd1f SHA512 a0cde289b361081d0a1fa8872b5b69fb6fba65172f135b540c372725f1b2ed715ba3ec04c703ab367fff6980d02589647e583795932fafb6676f85451bcdcb50
+DIST gentoo-kernel-6.2.11-1.x86.gpkg.tar 66508800 BLAKE2B 8c64d782b35f7d1a56ce05e9da551a28772c69801567a9365a35a62f951f47244d0b6a4a32b805f7438e9e818e10341ad8f72c9d2cba4a1c9cc79087d339f903 SHA512 c1d94ada5bb31f356165163c5ec99b6c12bc32b038370b0ae3aefdcdaf33f4e68f2f18d19dbbae1593d605f0b9b5cb9ff19396821114fa8bb538b78646a67bc7
DIST gentoo-kernel-6.2.6-1.amd64.gpkg.tar 82411520 BLAKE2B 81b3141ffff9af51265d94e5fba03365f0ad203e00b1cf5d609caf6c7fc04717cc8d4530cfbd0db5cf811473c5e4fc4ae6af51e54bac46d4a55d5aa965baf826 SHA512 c5ad329e56bf1151effed1289a65646f83e116f545934a08757358451f94462177e8c0a7eaefed86ef9ff3ae8ab1e842f77174ebf4d92f4e9fa0c6ee407ba8c4
DIST gentoo-kernel-6.2.6-1.arm64.gpkg.tar 71628800 BLAKE2B 12bf704c287aa5854d6952fd1945325174b9353bc8a5235d557fc22af6d0601836a3f86895d8ad3aa956594664628555583fdd54c8f0a7bf9367ebc8ca09ab46 SHA512 313a4122005a9e77509e9ff7bce97f32b31c3baebf6fea0e1c52ea131ed44242392b237b33dc9334f8307185c959a6bae4f22c673ab5d212b2f21fe693627d77
DIST gentoo-kernel-6.2.6-1.ppc64le.gpkg.tar 63744000 BLAKE2B 81b079534ee172c8710c0177b595bbca8a9d5d48b7297ea6e3111ddfd7d55b4887591a1848a9f831414c317465337131e5fc12d7f9570b8f31c16c137bc566b9 SHA512 d8e7d7dbc1243054fd7e5a3501e74b93f49ebe5577501a41f329f87d8cd743e78c5a7894eb746bb5f3bf1efff1825ab81840e720a01ecc21c7e87cda9deeee7e
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.11.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.11.ebuild
new file mode 100644
index 000000000000..ed76d510db0b
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.2.11.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
+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}.gpkg.tar
+ -> ${BINPKG}.amd64.gpkg.tar
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.arm64.gpkg.tar
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.ppc64le.gpkg.tar
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.x86.gpkg.tar
+ )
+"
+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
+ app-alternatives/yacc
+"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
+ mv "${BINPKG}"/image/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
+}