summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-06-15 16:12:42 +0200
committerMichał Górny <mgorny@gentoo.org>2022-06-15 16:14:06 +0200
commit9620cafc9699b63daae66a74368c4b62011ba50e (patch)
tree03cf897e9451cc7b1b0d2bdeda3bc3c4f6cbdc3c
parentsys-kernel/gentoo-kernel-bin: Bump to 5.15.47 (diff)
downloadgentoo-9620cafc9699b63daae66a74368c4b62011ba50e.tar.gz
gentoo-9620cafc9699b63daae66a74368c4b62011ba50e.tar.bz2
gentoo-9620cafc9699b63daae66a74368c4b62011ba50e.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.17.15
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.15.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 230f4c4dc9cc..adcac00c60ff 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -32,6 +32,8 @@ DIST genpatches-5.17-17.base.tar.xz 823112 BLAKE2B de53871be24c0c7257de3b2ac384b
DIST genpatches-5.17-17.extras.tar.xz 3932 BLAKE2B 8c858ea2d37aa0a60752e051af6a400253e79ad69eb186b5b358ef398992ee62bbd9896c68db0c5e16981ad020f24718f584e5765c6f16d4eab3dd6651940404 SHA512 1a032cbde503850d3ad3a81b8f4fe845d8cd2bb7da6979a676a4c4ed641ad9bffed6cf89aa870fd3f1e0cb9569668a431d7d30ff049ec7c669a06a11896f6c10
DIST genpatches-5.17-18.base.tar.xz 1040972 BLAKE2B 71575497161db10073de3d7db41a8cb82a063ba8e175016e411f3f6bf822b810c1de4172a47acadced51ac750aa90f41aaee040f85e214b7f92d95b3054e660d SHA512 fe5f8ef1e5e7c662d0c7a6836a195bb07dcb616bfe6417c8226825a0db6c9727ca323840edb8c969480fe967e5f7ef9244ce14df14f369b620e4a2e60742dafd
DIST genpatches-5.17-18.extras.tar.xz 3932 BLAKE2B 754c044fcf38d26a062d977505b3a25f663b90f1cadfa1aee524946aab3b84fc08463602bb8d5681b3303f459d6180e43bd1ac25b0c830f3163a9b8cce5029a1 SHA512 f135e3724cd1ff190d3d117c4afb5559a8908e1483e6be3cd783c42c05b8c4ae5b37c0a1537fddb88ed800d9faf4fa8996641201cf0a6891e31be2a3dda2c558
+DIST genpatches-5.17-19.base.tar.xz 1122576 BLAKE2B 62a8ef6da90d967676754daec496101b7638c1301ab5bbde5d94f8186d66f7f5672c55b8f97ca64cef9a83da00a46db7ab804cadff62d3137ecdd2bd41885be1 SHA512 b5aaa9013bf2372a658e885ce37e3171077002881e95bd81da87ff1a69645d4daed0f7717b4d35441f25ad647dcbbe92ecbd01318eb449101bdc415409c60e41
+DIST genpatches-5.17-19.extras.tar.xz 3932 BLAKE2B 87ea5b908c969c61d8da8067f13f0b674a4f72c4614b576a5b7648cf6d6880e88735931314faa43a3f4907c4d75baa3f705908bb609b95af3d9de582dfc7989a SHA512 191eed3aa27c2a2dff28b79a45db4d2c703bc45f5f63eaafbc6229541138601b6462df8262d808fcb5155eb7d632aed85e26d06e13a4095e305a493345dd02e3
DIST genpatches-5.4-199.base.tar.xz 4683396 BLAKE2B e1e66ce10c436bb196a5890e08d5beb8d0a1ece7f19f8fb3b1027747509cc7b6102ace634abdbd299dd48fbc8750f3bc127abe55014410b1d558b4aec497f475 SHA512 8a16d67794e864749fdcdbf413ec0fe996d3c4fb5f04f8c8a2d3001377c8b5d4d7007a96efaa3590fd4b595cccdea36d83c6dc292629566e5398f322658d80f4
DIST genpatches-5.4-199.extras.tar.xz 1812 BLAKE2B 03b9ebf9d306256e58c895006038f4bb3d908590ef2f603487d9b970963c24acfbe78fbe862b2b493ab477e6e901aba332dc69916eb881fc42a79a62d7f81da4 SHA512 d100e876a9b64d662331d4a78b8531a71144bb70b789e0ab0b76e6957c368ee3a88025e040cd622dd4cf6e4da358a3636571ddf55b94e42dbc250a62a629baee
DIST genpatches-5.4-200.base.tar.xz 4700404 BLAKE2B 8420d667947cf912a8d6419581377b5d7daea5a3c03e333403a4c0d0d55200afe4bd7f379c786ff5904c8f1cd1d7735cb7df95a5a5aad93fcb8b90a8750683d3 SHA512 771883d2b15e92dd5e2ea31e9566d3e1d210389323521be5af32fbea75c168d17e947bf004eb515c54f7b0880fa12fde236045bdeb35e08aec8b54465cb253d9
@@ -104,6 +106,10 @@ DIST gentoo-kernel-5.17.14-1.amd64.xpak 70828706 BLAKE2B f53df519ffc6ec7962c36a4
DIST gentoo-kernel-5.17.14-1.arm64.xpak 65859553 BLAKE2B c643d487b09c26ee3da7930b0c3e290e82417206eb3aea0c0ea35191cbc1582097fd2139d66746f522b69320c9ec0bb09ceb001d11e17af31aba1a69654501c1 SHA512 edb66cc71e8c2b2555024153fdc09be0de08665511f77f0f7f452b6f4fdb208b09fcf810a238a832b1c9876431a9fe4d292a4c2d5074dae65e81f83ee68aec1f
DIST gentoo-kernel-5.17.14-1.ppc64le.xpak 58914466 BLAKE2B 70ecdf00b2efce7f555f903a17cdab45b53d6908d0841ddbf980f66281816d9d4c278ffe1c91e39cd14bcde159fed74899f9fb969f307fa6d968ea94c859440c SHA512 c631d8d0ed01f75660bbd15c0636f786deed018d4cf20921ee6a95aa0cef97e568c0490a7bc9749c864b252a458121f379f6d58bc49953d0282e60348a74dc0d
DIST gentoo-kernel-5.17.14-1.x86.xpak 61133322 BLAKE2B 509dfbad966841b7c76a179297642580cbfb7b61b245258629d3af7f7bc6df49c86755368d024ad7207cbf3bdafcf1332081bc92011f62afd60cd62049dc6d98 SHA512 d4a060fa5f4dd257e0168aef29bd865ac544064655edb6c1254613075cb7a480297aeff4ab03d5978d5a832d1949ab7976867371fa986769ea6e1bf75cfc5392
+DIST gentoo-kernel-5.17.15-1.amd64.xpak 70817881 BLAKE2B 71015d24f6577fee0f3d6596a2fbc46b0eb79e34c2806f2a9214d58c751ccf7d9381d57377279677eb61eaf4dc7448547fc6316fcc8b25279e27e2332a671aa0 SHA512 8c01b5dd56ffe038ea2241a00ba4d826698a67ae45b9301631e6d6483cd86509be2de707aa38ea5cde7a95d33db60cb5cf9b5dbc1f124e66c1c89fe5f9ebea80
+DIST gentoo-kernel-5.17.15-1.arm64.xpak 65922409 BLAKE2B 1c31628fa3b7088f200ad162472a1941f22079b4a8ec1e635f9ccb298b2902dbc2a7036178c714b8dfc5588bc102e474c37115c98d5c9c077fb6ed94c2f1318e SHA512 1194a254f202f6417fc9d94159df0270de1d16b8a214ed2fb7383f9c288a65af5ec6e4b148f01cb5a7452eedad931507c9baedee24882500c71c89608b190b43
+DIST gentoo-kernel-5.17.15-1.ppc64le.xpak 58700395 BLAKE2B 67827ed6116cc3a5c7b5c6d1130edf764b16f22f020b4b66c90fb3494a6eb3dede8a2802b956dfd58b3429e38e17c1e79afa440c844da595ba9863abe956d69a SHA512 c3d959d626fe5f7b1c077aa9e5e5721324cd5f8044fb9bcceb6c67b4cdc98bdc98f953abff1a14ea5068a77a0390b2c92be677b28aac9d9bb11780532d633cfe
+DIST gentoo-kernel-5.17.15-1.x86.xpak 61236477 BLAKE2B f2e19e0a087f866aed20e8f56f940c1a3489cde99be1a47ebed5397fd40cc8aae186688d6be77649d62a588e489b4edce828158e0e5c326056711017e8ba71cd SHA512 4d9905d7d289d2ac47dd887c54aeb3da7c975c76cd9e0e4dcb43ae824bfafc7a36935568f706863f444077d54f03c394aa47f872a6da70dcc6a0b9435ef9f64e
DIST gentoo-kernel-5.17.9-1.amd64.xpak 70359753 BLAKE2B 42994479de1aa72a97f73207406cd47986c7d0c545d681b00ab3edb380fda1d34fe032360868dea6099eb69507ea4ee9a4401e37139460ce4859359372627c62 SHA512 3521ee3fc95d7ce6e6cfc1f68bd46956df598b416be176d97b01f914843f9071635e21cb7e7b3d29fe29426aa5ee50ee124430830e64b6f670ecadaf8f58b957
DIST gentoo-kernel-5.17.9-1.arm64.xpak 65823951 BLAKE2B 648ca1341d90acecc50e1d021df9665a8ade52e6f77e8480638c9b411e835f3a2c5c50089d42cb560a19e2c3f0777097330867a6f15e21aa8a282669895e8ad9 SHA512 d36d663220171939fbc6eb25b99375c2ae8bfeb06ab3dd8f61ad864591a555f287e687261e9b31c6d180399ea5fbec6ca5690f8d894bc0f8266ed7cfc9b192e2
DIST gentoo-kernel-5.17.9-1.ppc64le.xpak 58892612 BLAKE2B 0d64511f201af38dea549e22526f9cc87069dd6e2d32be5153bb258cbc3d71bdc8b399e73367070c046c33a6ed6636ff89822b0e7ecbb2f97a7541370a7eb4c3 SHA512 4e8e1f35828d44dea9bd93b46b923137bf61049454720f8778ccb9d0d8495f14806738591b7765ff4c0b033f94e9b866ab91f845c91cfe9c414d235eae306b99
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.15.ebuild
new file mode 100644
index 000000000000..0787e9b25ee5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.17.15.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##*.} + 4 ))
+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
+}