summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-11 17:51:02 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-11 17:57:08 +0100
commitdd504ca083083edb4bf0203d32e41c430bd34fb3 (patch)
tree44b3e2e5fe89729d34cd76a6c49cbb41825cfc3f /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.16.9 (diff)
downloadgentoo-dd504ca083083edb4bf0203d32e41c430bd34fb3.tar.gz
gentoo-dd504ca083083edb4bf0203d32e41c430bd34fb3.tar.bz2
gentoo-dd504ca083083edb4bf0203d32e41c430bd34fb3.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.23
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.23.ebuild131
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 3633467c9f9a..e03791ccd76f 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.15-23.base.tar.xz 986960 BLAKE2B 8c64fb7038c358c4249af8d9274bf
DIST genpatches-5.15-23.extras.tar.xz 3876 BLAKE2B d41bee55c7c742a138bacfb45459f6449a80521b6857fdc55f675cf2434102176c493b9239ba73ab2d07df3062d995f9cfa76a168ad4913e5623453496519464 SHA512 3171e72c60211f2c331959851d85954ad94c947884408934375a4b495fe82c35f66c7408e6b3edff18ceb6888819c9f64b13a8b7c9433c80c802cf0316bf222e
DIST genpatches-5.15-24.base.tar.xz 1017424 BLAKE2B 97132a2c8902493e4ce76861880f580ee6b37f4cd3facd1296a3d7b207c7a7ba014bb3903465e16e8cae3cfa6341f15aedccd0a72eb8017320ca91b5b7d4ac63 SHA512 b88f25da20d309e16c13adca272114237f1082d2272631d960e1b5ec54e8675b1f3c32725e336556b6d23748e8da9668989cbdb5ad9d0e0ad1253f442de92891
DIST genpatches-5.15-24.extras.tar.xz 3876 BLAKE2B daa2d5da1a55e035909da862f247e79e67ca6d514aec1b7aa4862f3f88508a0a6b1efa5dc21c70b8f79ca29cd88d7b7012ea380dd0a56931b82065ba4358c81c SHA512 9cee406769c914080f8e68c42441c8235767f9247d9b5222dee661df6570923872022076d174f9d5dad2bf2b4f2871d266bc907e35c0b7f423a9322d9fa096d7
+DIST genpatches-5.15-25.base.tar.xz 1018612 BLAKE2B 493b8c695f2bfcdfa36712143ffad423883273b48e0ae45db226d9e12b809764538716fa8dc257d0cb211f9db50f6af437cc8d19dde0e8af5a10accf85a3b4be SHA512 f268ace309d283079e0f491a3a77de56d4a18fa31bba643be4d215f931baf6a251d1e28c358d4b606b0ea15fc34e71f6b13901f5eb95f18ebad79f384bb6e5a9
+DIST genpatches-5.15-25.extras.tar.xz 3876 BLAKE2B 17a20913e907e6b6a87afdd7775b7f9811bc3eed5374b957244242fdbc655519606063656bb8e5f51ded3168f73e99832d0cdf66e830811dc1e5ea0c0b8a2582 SHA512 1b8f4424996351a70c26f5a90c2490078c1a8daa80da578e2e3b3d1c4be6a4474d40cbd2e6fae8b1f1b9389cdaf2257e01a14ac6c2f7ece8a883d745555a686e
DIST genpatches-5.16-10.base.tar.xz 464508 BLAKE2B d590a7041f6309674e8000c735a232bb2f70d872863e4122fa5a8cc8bc0e68b641685b4bfb10c81d286124084eba2f6815e9d650978b52fa2fff70508ee361bd SHA512 cb591c67a3253b35d2d8dcbd229231507d28cbf2c1dbc2f734ba7e0fbfbeba6ca400f99bee6c9b94c90fad5facc9ee46c85fa4178087865d2e942a0717878a60
DIST genpatches-5.16-10.extras.tar.xz 3800 BLAKE2B 79c288854d58ee20f8377be8bb15ecdca30b27fbfbbe314c2db7260576036258202f620d2ea2c2a6725fca1fe68fa1a158b207d36ae13630b3116397c3868cc4 SHA512 34069ffcf17636489af7d6df3e322926f566f43396297867c2b1a512fa884062bf86d50675c313ff29ed68f6fdb9039748fcd14c9395e29e9beeb166f45eb25d
DIST genpatches-5.16-6.base.tar.xz 410464 BLAKE2B 19e5c3718dc8bd9b10f42b4448da16717f95da8a5ca33145bec2703c850ecfe4978144530823319bce945287642a44d368eef24448b45b12d28f5fe450325e99 SHA512 80c38fece09b566dbb65b02beeba3b895c41f18fec08ab9b09a6200450a88be8fb10c04dd80c88dadb13e3aff56f2e5983063cd2d852d9f1fd7ed92113e74887
@@ -56,6 +58,10 @@ DIST gentoo-kernel-5.15.22-1.amd64.xpak 69092606 BLAKE2B c642b3c66773abba0b53a17
DIST gentoo-kernel-5.15.22-1.arm64.xpak 64061332 BLAKE2B 26e77ded161d0b26c3ceb61bdea110436751d570d9fdf0a9337e145413fb4e94e47ecd9fc95807e659e82e6affeef3b7755448180757662e83797cd114cbe493 SHA512 54f2ebc4d27eb24280120ba236dfe07cf1926fc8d3e1c2cf19df4cc73d073284b921f940635ef9660bdc33848b2ff7330149f1cdbb055e85b66ae5b5e347d2a2
DIST gentoo-kernel-5.15.22-1.ppc64le.xpak 57814487 BLAKE2B c5b241c8679d3817a309f0dd9f7bf64176860a7fc5fe51fba212f4c3fac5c3f53a5ad70ae9b9af4959ab421f7b0da9c18b7201ae778f255947096dab8e49a7ca SHA512 506431b16914679a4dd0f5da10aeaab6aa1b76cfaf8996a594b3a050d3bf0d0a51a5818e5b026bcf34a95a604c9e7b2f2a7e71efa3ffdc68abfdb65331938336
DIST gentoo-kernel-5.15.22-1.x86.xpak 59910367 BLAKE2B 1047514a2635df82670bde5198d2c05b79c6f2682354121ee5df2d68d9a6078faf75e73ebeada744e3ca817c2b205e1d918c26ccf0d95bec5359c4cb3b84f864 SHA512 11b11b96f48dcf42b2265b8abd7347f6561010e7f6053e3385c0f054c52cde2ab4f1bf272197da4e68198afa2f2290fc5ae09d0f39c369738b8b050a17166744
+DIST gentoo-kernel-5.15.23-1.amd64.xpak 69156149 BLAKE2B d44b2969462458282bbea66c2cd7e2cb7c9b603be520d77bd0b9e39b43ed182bc6a5a61185d40d015369c4a377d130267b93c108a2373518113f6faaa00ed3ba SHA512 067589d15c75311adef79c454ec68516076d891cf2d94569881c5b5dcbafc8a1cf229a62dc4810df4b68f8f1eeb0424db3036509f6e4189c76c49ae3c2449621
+DIST gentoo-kernel-5.15.23-1.arm64.xpak 64071650 BLAKE2B 51d83f9ae6593e93c73b7f9dd575d4200804d3df7d3c1d0a52098d69a7a277d1ea5682bccfdadf769f319527ed7b41ce216aaebe75559fbaa4cde956b63cf66e SHA512 3e149646a757163bb6205ac7ce0e19b1d3812d160d8874a120c8eafeb2d3552c34f56a33f31d417ddeed2adbcdec37eed492f6a2b7b384729462cd6861a70fe1
+DIST gentoo-kernel-5.15.23-1.ppc64le.xpak 57841330 BLAKE2B 92ea96a25fb0bfcfac67bbed26bcb3aef78b253007c890045936c304223652751846d76ba5e963e3979c753f5f7cf6a680f6a7f2b20a1f25fca6c3443ddc107d SHA512 daa756525faf67274dcdd780b501e70e4b326466fb563637fb9e9ffa6d65eec9b3f3f37721b855ff640368c81a8a7ae553f7c3a76072bbd779226bf41e54a8d4
+DIST gentoo-kernel-5.15.23-1.x86.xpak 59903031 BLAKE2B 9b60e9e59130e6c2fb5f1a117af132483334cd656daed1d41922f7966273970fa37f3e9d073f07bc12264427acab1f503ec1a8a42fbe7aea1a6813702ba5e826 SHA512 5b818d66a84ac32768294b629790add4c6b0544c49f7f46f2115d8e7863669515bf87883a37b600456b65528091f4dd3ba50bd123d2e005aac1899f830882e01
DIST gentoo-kernel-5.16.5-1.amd64.xpak 69620204 BLAKE2B 3a97499960be60fba4927ee160ef508363cd8efebddb0b6a4f7fae1f865d47ea7f5167ac862c4e2a7d1b2117412ec0c5914b19216e933ed2a72e24240289dece SHA512 19d15ed4e39ca8d0ece619712774460b62db6f286222fde4e0b99dd73ec2a65acb9e5454d4ea4a99ed22f22ecfd437d00a66e78e561e91bc87e4b207cba94519
DIST gentoo-kernel-5.16.5-1.arm64.xpak 65025315 BLAKE2B 17e0ab2a7047e968b06fb254926d55c7f52a019773393504e64d993a30804d918153eaa448aa60799a7fa667ac2dff493b5737f0be5b4ef703326fc2caf3916a SHA512 332fa02243573285c70644158b2fa44dd787bdaf445883107782cf17f30a72636c7039a8e96f6237ea7fde0a64e496d681ecba7fdea6c281ba1f9ecfabefec01
DIST gentoo-kernel-5.16.5-1.ppc64le.xpak 58365242 BLAKE2B 764b8fe708d33fb4680c7159b3a0963da59942b2ab94a01ab566cf429b887f087c76cb2fd7421ab7d6f94c0e93f63047d28c2b76014feb549ae9cc00f3c2f3ca SHA512 ae57f6a0470a7b89defed02307e68169c01f493ef230283619e9a0795b0788b4faa776880905e5880d967e3b78ea0a6d97947be485a1d53c573e5b9250649a50
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.23.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.23.ebuild
new file mode 100644
index 000000000000..160680cc17a7
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.23.ebuild
@@ -0,0 +1,131 @@
+# 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##*.} + 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
+ # 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
+}