summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-12-01 17:23:12 +0100
committerMichał Górny <mgorny@gentoo.org>2021-12-01 17:33:09 +0100
commita455dc68a320adddeae5056396f0d3cfc897a9f9 (patch)
tree44cb7434fd558bea6f2ffd412a14db3fe07c5897 /sys-kernel
parentvirtual/dist-kernel: Bump to 5.4.163 (diff)
downloadgentoo-a455dc68a320adddeae5056396f0d3cfc897a9f9.tar.gz
gentoo-a455dc68a320adddeae5056396f0d3cfc897a9f9.tar.bz2
gentoo-a455dc68a320adddeae5056396f0d3cfc897a9f9.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.6
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-5.15.6.ebuild125
2 files changed, 131 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 5a2b05d46a11..3383473ce66e 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -18,6 +18,8 @@ DIST genpatches-5.15-6.base.tar.xz 300776 BLAKE2B 1a3abd9e88ee1bbadf68e0a7117737
DIST genpatches-5.15-6.extras.tar.xz 3840 BLAKE2B 0c17070891e0184c34cf4f7c28648e7ffdc56992bd68113735b1f90bf0b46330d37239d4f4a8448de315e1cf2741e3c07a769eb8aad57f1ba9ef107dd8c30241 SHA512 aa484998b7789569896470d1fedd282445aa71a945b1f4d5024acfa80b6c16eb199505eaa089f7c0afd6c26eb3fc5692a890a3c0ffa912e9fa0e2ed5808d3452
DIST genpatches-5.15-7.base.tar.xz 390456 BLAKE2B 57db165ca26013ab19c546231b6ebceccb056d66b5fb3686e21959455464dd1802e51fa5d7c6d179bcdcc6c4e08dff63112d7fe6ffe513bbf7519f51dacceb06 SHA512 aa1dd9e723a275bc73c3efae6b2402515444fa8b15f89b2cd940f50bf7e0603724c6e9f25b9573266a3e7165ac4b8c9fbb40101e08f2b76e80827d60db288455
DIST genpatches-5.15-7.extras.tar.xz 3844 BLAKE2B 76fe168f8b4ef235c0aee9f1fad698e25e2f59a73bdddc04a9d0b1465aa033386052e9669ef7d0948accb8d86cac5c2ad0b6184ce757cd7171452f698ed5c3f3 SHA512 d36687bc6f48adaa584e0d856cf824cbe6284a63bd8475a42a32bd0236660b55a68b40ea25195948e8985376890c9becfc678c02228c111ab32d6d2b6df57f14
+DIST genpatches-5.15-8.base.tar.xz 440264 BLAKE2B 284e426656ce3318a0e8e1c7a05c27f9ccbc27f5fefb8d9835937ae821133757dfa29193c9dc711c6639891a76d159f4a3e42db2a6ee24938005b2bc2143d3ce SHA512 d16462c151c932b68ed71edb2095f590c8c7046200e05c65817de68a48b2b281bd83159720e1d94efe22fa29f83c07ffde46a1c91c39be5ecc7466eee254fa09
+DIST genpatches-5.15-8.extras.tar.xz 3840 BLAKE2B 2e14bbe71b25a68d304965d273923b4be3032e6a03fbb085bce05a7f83ba65f8ab60b4b3661770491b75bbb01e56188252ec3ebc2756a2bc0270ec4c4b54bb25 SHA512 08ece5de15fc1d6bf1af1eecd0f638e7d9831ca646e34f9adb99b0e6da7ff87312f25125da3fac18ed21d05d49b9d6262cb41d7811469657678995f2e5139fc7
DIST genpatches-5.4-162.base.tar.xz 4091668 BLAKE2B d264f2a3cf61b8ed2a297bd8a3fbbc3aa977a6651e42f8d9a8f8773dc9bb6466358fc5d20537b67f826a66a1f1e28912e8454b3cd04dc337e838f18ae28e32e6 SHA512 f90b1d2dd335e25cef4822dd9663d27eb1aa44d780412e703236ced0c0f50b1c4a614eec10134bc6a1a418d19af0abc231764d1fdf9b7f526cd59e10b8b46ef1
DIST genpatches-5.4-162.extras.tar.xz 1784 BLAKE2B af5b67735eaa30c4edc7cd8681846e892b8455890b5677b5cb8b3849383af43614738c80a6a71d15420ab55b156895bb718952508510cc7e3566aef7d025ebe8 SHA512 4083da3dee1d4e243739322393fb6160d6c148f8b8101c518ceb24971c0dca5ef0886e2ea641d3c04be47495d0112b217dd9b7e33bfc1f16e8dae04c87699314
DIST genpatches-5.4-164.base.tar.xz 4167868 BLAKE2B 62abbdb5c0284dbfcb1d6342b81fb1a5e5ee99dca0be41b046a751e28ea64ab76697d44870ae175b6a64ac9fbce592a32755374b1671631f31ca5ff199338b39 SHA512 e9bb5a5fc61f7f72a299bfb5f8ac5949dddf7bbde9fc347f2e64930678cb2bc48074a89a965b0eae61879d297a16fcf027deecc836ed377387f197ec1b1053b5
@@ -54,6 +56,10 @@ DIST gentoo-kernel-5.15.4-1.x86.xpak 59852931 BLAKE2B a1003536287b44381077246b5d
DIST gentoo-kernel-5.15.5-1.amd64.xpak 69012707 BLAKE2B 4942272f991883ef98ce1070d65731f4bd83bd21becb29eddbbe8dceafad7dc15dfdceb3044aed146d9865426e594c2810d683493bf882776eb66399a4b91e15 SHA512 5ae9694e6f3ad9961f9941cbb2701ef943fc1ff7d431e96d6fbc9db62be49dc4e0ca59bb1d9d5a5f6c341e727dc42d4461e12b163e69189d41065b1968ece384
DIST gentoo-kernel-5.15.5-1.arm64.xpak 64064478 BLAKE2B 9f6dfc48f0b022b630fb38ab4adac3df2ac65d4ce6cb1bb84a7cb9fbf4743799c1d07e788413e0ca64a51091ea7f7474a500d914613ea61a21a9bc052f012cbc SHA512 798d295c0293e5a4470e5919c804d93666d729f0d79637409bb1975d9330ae8aa4c2395c4f5f6a76d3f27379e62eee846fb58ff8b562ffa161b58c64b05cba27
DIST gentoo-kernel-5.15.5-1.x86.xpak 59878712 BLAKE2B 720ee31cd33cc32347903db3e2972fab151cfe3449f8f00046a1ca3be9d63b26a956ddf4e90de5a960265f880d84076307d1840fa4d3222f7a85b6b821970722 SHA512 5a5a875f71786ff1bf8d66cdfdb608535ca0736b5588271a425183066de5e7b0cb35a4a1e741d7a856423bff382462e589e974d309b41d685ad076a635a11dce
+DIST gentoo-kernel-5.15.6-1.amd64.xpak 69018354 BLAKE2B a86f1248e5682863046acbbf824047124fff77ba03ee9d51ff57cf848a43bdcda0161a60547df1a71b0b4b01b04316fdb10ad51f4dc854cc505c7d687e378bd9 SHA512 83a1ab23a520cdd8947d950d13a496bef01ce15572545d60cda248b78f7c7c41dd3fd407eac673267481013cb55c4c80868a754ac53ebff7331d38ff58d54760
+DIST gentoo-kernel-5.15.6-1.arm64.xpak 64016881 BLAKE2B 2450d026c89a88204f61b0fe60b1ad0880f1ed4a6c0f0a0617293d7cc139cb33cf64656c909e79916f2bfb266c58aae188f3dae023f3c55f5ed79f4f83ff5efe SHA512 d3df6396918411287304455bd51be5a28e8cdb3319d3123279782a74ec411250d5523fba16e22adc50f6246652c3af9e3ca49afa6af54c02f5fcd43064ed2389
+DIST gentoo-kernel-5.15.6-1.ppc64le.xpak 57811524 BLAKE2B c8d7e4bcb4f30a490e428ed93ab1a8eea1bfbaf4c169ee401de2445e980d49338028d86b4f9d5732cfe30941789110841e456691ab6afc8d0b490116f209e9c0 SHA512 fdafac0273b8f466eebdc3004272a6ce8224199f42bd391ef50d8f41463410bf0a0b3fa06b7a65b85b57b58cdb03c32be8419a1c0d7c15051ffaacf1a9c84095
+DIST gentoo-kernel-5.15.6-1.x86.xpak 59880519 BLAKE2B 03dc5dd152c9740b8c61e36fba61a064fdffcb049675ec6ffeb7701b117d968847f2fcdd758ffc6e19ad4c87495730566f7a18bd54d38ffb2079f9bda5b9225c SHA512 698e173bbba017629466625d614f41d8105a4d3ef967e861314fdc0a2c6432521350ce6d0dc2c224c6e940e00fad19a355ca09201582ac2b45c4d4a079b54ddc
DIST gentoo-kernel-5.4.158-1.amd64.xpak 61365744 BLAKE2B 985463752628a98755f7765199cafc22a742661e2b2b4754b0f0ee4d3d1d96ee890eccf099f26be3e58a3f78fe770080c9dfb83f0fee00c4c79c23717fa021e4 SHA512 3a7a4890768af369d07566fac6e75ff482c3488a246c95911612ece436b0ffb9c26c87ba951dec49fece3d5bef90a238fa984a494dd3dfb7460ccb8f01293ef3
DIST gentoo-kernel-5.4.158-1.arm64.xpak 57629591 BLAKE2B 75bfe916311d6b16bf2b8a8f7a641b359b1f94b24fd35cc728e424f1df4e66579dc614f52b1fddd2cb1c2929b40dec26993fba8933a054a4d412078eca7a8eac SHA512 6b7cf2d6796dcdb567fe2c84a968726145e492799c7f40a92e501a84df385ca7da213ffd72799bae483558e7528029a97fb68757a9685272690dc2c88d70abe0
DIST gentoo-kernel-5.4.158-1.x86.xpak 53194465 BLAKE2B 4419edde2a05c5c375e085026a85b314800cbe571fd0e30f0a2123adb6db1aff60f1c0ed60611ffd756c22a8b42b69382c15c4a59d9046781bf57b9cd83e764e SHA512 c8695b6a312bde4a9f2807f79547d58f678865bf7c18435f1fc98ea285b9428de6e60885b12310d92d2f0f50a694ec583ea42a69956e5d5e1496efb33d7de3d6
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.6.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.6.ebuild
new file mode 100644
index 000000000000..849be5e61578
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.6.ebuild
@@ -0,0 +1,125 @@
+# 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##*.} + 2 ))
+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/~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
+ 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
+}