summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-30 03:21:35 +0100
committerSam James <sam@gentoo.org>2022-07-30 03:22:19 +0100
commit5d09d9cf43c6549b4d42ad36b77802a71df97344 (patch)
tree6bb731ceae2b3f03d7f095f5ef0cd4725fc32ad2 /sys-kernel
parentdev-libs/icu: enable Python 3.11 (diff)
downloadgentoo-5d09d9cf43c6549b4d42ad36b77802a71df97344.tar.gz
gentoo-5d09d9cf43c6549b4d42ad36b77802a71df97344.tar.bz2
gentoo-5d09d9cf43c6549b4d42ad36b77802a71df97344.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.18.15
Signed-off-by: Sam James <sam@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.18.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 d3fc35b55bff..39a2367007f4 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -34,6 +34,8 @@ DIST genpatches-5.18-17.base.tar.xz 670556 BLAKE2B 9f992048a0a964e6a96b077682d6a
DIST genpatches-5.18-17.extras.tar.xz 3924 BLAKE2B 4d8bb90dc2446493cee33f5db27f46f4a5d6cb60dac8137f5677a133d71bf2feb5db6b9ebbf32fb148c39be3024f5f378ce096fb0c21ea584d3dca01862e160f SHA512 b1ccb518b25c7bea5cccbdec03d0d8d42ab0b048f6f10f2f036871699d5e75e3694ec10922a0e8f01f640cb3710d8e38124e878450842cce060f6202359ca090
DIST genpatches-5.18-18.base.tar.xz 701140 BLAKE2B ee91222d6f6ce56d30cfe02b5546fcf7ee3ba04852c4875e9c98ed4177a7b73311e515e543a20107ddd1542077c9b4e2d13fd9cd0e05d507ade84f8fbb942300 SHA512 57aa8878d165ce05c2981c25e9a381df8ac8004336de88b330f779841683a1998dce79cb0e0c1263c77c81a84f01768630ff5e2385693a79b420b5ba05136a1b
DIST genpatches-5.18-18.extras.tar.xz 3924 BLAKE2B f01ece5d1568a0a760b58108571cfcad343a37be3d344ea728ff89d3fa5c972d7d1c6808ec41ec699ece98a2049ea2c5cc036bae5f44e93cf23528a71e3aa922 SHA512 e810217c00867d3836c4606586e35cc26e8c934382d5927ca188249610b613605437013ca0015217d650e89bede32d67f4daa443bd445dec382832a4e43937ab
+DIST genpatches-5.18-19.base.tar.xz 754304 BLAKE2B 4827ddbf25d32b89c8635f7cbb16bf2ebe3533450d86e358f0f47084a240bcc5faece567f3d8ca943ad980463b324eac184e04c2fee80229f38db8cddf7d25ad SHA512 157d3093573091224d151c930d309fef2160b2d8130ac4d28155d56cde993b6d17ede10fd33d436fa820da5c029bd45021ff393045250e260f7469660305338f
+DIST genpatches-5.18-19.extras.tar.xz 3920 BLAKE2B ba251facf88903832ba28ea4a7619b2ebfdac8b3d507201cad624763523283936c2d8251a715a7e0bd8c72569b55468e2d5c43dc48e6b504cf5d3c024dc840b7 SHA512 40113011145749e3aab4d0ad23ecf2bdaec2eacbe8def70201f13c0208cb0aa142a4e7be8d484e3db3b31142defdea125fbd8f54f4e3220e15a10b4b4f67bbe0
DIST genpatches-5.4-208.base.tar.xz 4869104 BLAKE2B 3e9038248ddcfd22d67248e65199cca89bd2b8b3aa99aafcee63e5c294dc360c01d7d7eda809e1c18b06a9356363c575339197b2425bcafa8676cad68c17f90e SHA512 880fd09492e5cb0fa8a94e2df5fdf912be59210f1f142a456e3f80c31142e92bee3161bd77038b606616442cf3396b3961a24422de3056f72b4556d06262d3a5
DIST genpatches-5.4-208.extras.tar.xz 1812 BLAKE2B 3e5b8cae462a748eb36af66c4ebc393fc09882a1fa23cce6f82a078ea5598c23c2ecbe7029d6e2060735fe342b3a7bb5c235dcf16081bba0f05a6b88501af991 SHA512 b550dce1b6d090959eaacd523ee1be258fbf9db84309054c3cce9beb0bae710ff2e1c23f480310072fb08f7456bdf825b3ba76d57e999fc1597368df93e65677
DIST genpatches-5.4-209.base.tar.xz 4887256 BLAKE2B 56d7ea7975b228df055d1bd4cfc41b49890d815409a159772230c6e9d081061a9b438b525b5e8542eb03feb0bdfc1841e5bc5e14dd1570aff8f964862b192b00 SHA512 5ea69d50d836dad1f68f000c6c1f5bd8459dcbc4d50a4fbd4ba3241c4c87638850215c0207dfea6fe06cc596957e3cfa61a3dfc00f0b60513596da43d286615f
@@ -112,6 +114,10 @@ DIST gentoo-kernel-5.18.14-1.amd64.xpak 72835031 BLAKE2B e1ed21149093f6e0b3101f6
DIST gentoo-kernel-5.18.14-1.arm64.xpak 65244116 BLAKE2B d42100f6dca8b923a32d2c54b8f99422ff9ca3b73744a3b26f9b0201b315784c55fdc9bc05e203287a4cac2f94a9c83b6c1019c95cf4ff2c2059b041de6304a0 SHA512 6ce40b9038a10491bb280654554c77ad71974bfa64aa84748772a403947d7a67a6dbfc8cb594d599a0e5a928ebb6f69f8c756ed7c1ce1a28fb4993a4d5ef7705
DIST gentoo-kernel-5.18.14-1.ppc64le.xpak 59478148 BLAKE2B 35a53913c103962fc5fc6bcd646f088909f052bf39525aeb2c73b7a8d05c815f55861ab39fd5a8d9c493a052aaea855ab20d6fd8922344fadd64465cf8e3b48e SHA512 9d687885a13721b55267868fe467676c157532343e1ca4d6707441e34180843cbf3c55101e32e2f9400f9a9cdd59756f287dd4b5ec52ba8656c0de01bc9d0940
DIST gentoo-kernel-5.18.14-1.x86.xpak 62736300 BLAKE2B 874fd5a934861c6b077c3c29e4cce0a73c040edcec4010477bed38cb81d2a5939afcbe1c0a40fb30781e148cf4dc3c6db8fa18fee3d5cf1dbf880c5bba1df0a0 SHA512 3949a160aa439240282d3763ff6e98040e1b2e44fd89475c66e7d6681f813be5bbffdaf5d2d4188944027a1e04ec13f77ff07c8a20e8d6200a6f1548eaa779cd
+DIST gentoo-kernel-5.18.15-1.amd64.xpak 72935393 BLAKE2B 05eef3933a4d3d6c061b79eaf4da654616fc5012612475f078e33edbc6f448b07f1b3feb294ca9c85bf08003d0d1fb0f6b02f0f3d2e1ff25d517a858285b280f SHA512 608112697e4f6f593022297896c8e22792fb92b08601abb57cd2d977f4c97e26d19bd4c2e7f98fedee9bd6fa5c3d5938704085b737081b345bff587c8b2471e5
+DIST gentoo-kernel-5.18.15-1.arm64.xpak 65247697 BLAKE2B 545902d4d44e4e2ec7fd7040ae155c6bc4123fa099f447703102ffba00f4c39a94c41215e207c58a211a497b00b4b03eee495d53679d1e17aa363cfe2665e706 SHA512 1b8576829432a400cc418dd45041229b377713caccb96012fd2fbad9c898bb95d1fa70bb3a9994821612286cb39c2fe8d405cb16a95737fb81ace80e59976887
+DIST gentoo-kernel-5.18.15-1.ppc64le.xpak 59363169 BLAKE2B ea5af950dfe764441a740337d651cc2551590ceef754162b8985073d0eb813b7f4fb37b104da9b5e43b791493466bd9c2f1c69f46292b31420a1d43ff3e5cc94 SHA512 c8ee366fd027e4577cc9793e4c23da0834ff129faef2e8fc031dde66cac1864ac5ff202076c592823faa9187ba9e7671d80373ade457657fbac500c4014b9ec6
+DIST gentoo-kernel-5.18.15-1.x86.xpak 62832725 BLAKE2B fc315f531e839c90b1ac691e418ef0dd0fda73f217d512fba39e962a7843782a74c07de9425d11d395b18b347496559b58c3b7d61f67db002dba311a05ec8583 SHA512 1fca66ae3322b598dcd58fcac6926769dbefcdd6b412091a4ba9e02cfce058f09502cd5ceddda93711406b123e93d7b2e9568c19077735a4e7dd63224049a666
DIST gentoo-kernel-5.18.9-1.amd64.xpak 71596284 BLAKE2B e9eb499b587770b85cd230bfd5219c246f184addc2e4ff72be07ff8d8899a5532f35d67fd6d6c73289161b5ef5e83d62de8d7e6360a74f7989b16b74ab6122bf SHA512 1ac6bc3f97a9ee754fd9aa6c7360a725d2fc298cecdc28583db3ae8bb80c72d0d593a5c8a85dc868587285541437e1c62deac7baffdbf81aa9dd7f796df71c3c
DIST gentoo-kernel-5.18.9-1.arm64.xpak 65216795 BLAKE2B 1947791701b9ad904633d8e65d97f098be88029a2d716e0e60d91cc02aff9c03eef429a90c8e85a8f1c0f82eaf49a2a03ea342a2b4537da044544523bc6ac2c7 SHA512 6557d0ec1b3072b51bac84dd99adf16cae9eee745a824ab5d39b227298a14ae5f2050aa1079b529593b583bdde0613dfa1fb099dd718d05aa2b3bb4828fc4a8b
DIST gentoo-kernel-5.18.9-1.ppc64le.xpak 59391467 BLAKE2B 3d7aaf36df9ac13388101e16e90304ce4b0756a39f84dca004e0bccf054f34dfec4133e216ce68c640272047ba21a39f7d44761f2ea9e6985c92a6300c0bea61 SHA512 e6ccb620c255c5ba9e28919152fd0174f527a30906e3b0f30925ebfd37b189013a6d41343103eee57dec5f4afa29f9560bfb0e501d183496d2412214e11c919f
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.15.ebuild
new file mode 100644
index 000000000000..cc187009eb97
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.18.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/~sam/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.amd64.xpak
+ )
+ arm64? (
+ https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.arm64.xpak
+ )
+ ppc64? (
+ https://dev.gentoo.org/~sam/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.ppc64le.xpak
+ )
+ x86? (
+ https://dev.gentoo.org/~sam/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
+}