summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.136.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 698126718321..4cd9884ca8bd 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-208.base.tar.xz 6093152 BLAKE2B 39bf2d32114ec581c28770ebfa3
DIST genpatches-5.10-208.extras.tar.xz 3876 BLAKE2B f288ba384e0871c7ceaca2f20fa324ef69e032e21847770e13b95d85d67f2de40780c5e30a2eb2c75c77f142f8417bef66bc6f82f7dfb46fa4e98555c96cc71b SHA512 adad7c912629058889705cd77f684df2ceba3f02add3aefc3103f44484f996e8b42b320ca8697782fcbab24c00dc712fad0b852b8538f68c3ed258fe90550aa7
DIST genpatches-5.15-141.base.tar.xz 5572792 BLAKE2B e062086d50d08b67c21c785b086c4bc0878f078ac6c10cabace2ebfe388af3497d2b98bb2e5d19d4b5791e78456bdf0e8c479121eb8c41b4ca2fcd362ebffe4f SHA512 1835684a7737d61423ec0778316b46fedea491a8f5254d9a2d630e5a78519d61d22dfa0d9d6ea1ece563f165c0d54c748f23bca5df304ad45338c27327e8b2c3
DIST genpatches-5.15-141.extras.tar.xz 3936 BLAKE2B c51e1f9dcf3995a2e178d8763407dc94595e513f02d96d54dc1b71a34ada0eaf46b6cb1cf4bebd39b4776605532df529cf8ed361480181af516ab889f915ee5b SHA512 5eb1f68368de87df9236bcf10726cd3abcb75a9f59579e9810b9ea53f3ad332d345a3da7c1be61826b6b739aabb11a838d12ba7be3ce2cb890e094433176b02b
+DIST genpatches-5.15-142.base.tar.xz 5603000 BLAKE2B 2c04fd46f173dc82421edddecd0efdd6d6df46534e1d7ceb6d2f34081e3a5d558b8444f92e2f9e14e3836734c32f60413d3777e7f490b06b3cbbb5c1e85c1792 SHA512 c548e4ca832f4a1d90fb639581c382fd16292b5f8b24b1ecd32aef2eb36c79c7f8f4083ae09b1e105be55e406f8b7a09233637a48f493ab139706334b1056ca0
+DIST genpatches-5.15-142.extras.tar.xz 3936 BLAKE2B 76f3aba69251c7c30f2e21b450ae6977c10630448b380552191295d89be761d243b7cdaabf80ae52468327a009d1cb00841e8d15469909363a9683a58126ab30 SHA512 2dce221525460ca2065f102e447672291fed39c21fccefa5d9ca0c2486fd389fe4bce259674ecaa3b6f7dd52d04b677463bbb73543c8ce610b4b729bba55db66
DIST genpatches-6.1-64.base.tar.xz 3729008 BLAKE2B 10f4366a8fe83ca0609c0e2654e6c64ad47f3a3f1744ca637d8801ec9c8a8c541d74e21e020de0a6de18c98de640810d6934092b2b983b332e92514c2b6443a7 SHA512 1dda1ba93fea4c18ecaae6ec5a3cfea1fbe7f89fa9412e793b7cd0beff43894650167c77d1b85eb280f7754c85179dc3c72e32ca18f4d8a95667501c61958656
DIST genpatches-6.1-64.extras.tar.xz 3816 BLAKE2B 315826af9d3e7abbef0314f962e2df50f9d183555ec5fb956fa7c9820435042e3c3a72a5ad766a3441543c54986ffbfdae8ff0a4deecb2a72851237108eaee71 SHA512 5a384aa4f6aff1a3410090873f9321ca1c6bcdb48dfefeaf7c2746b950ad22c7a745c60389ec49b99a249cb62c91d517389d5d91c844509dce5cd45a67b47edb
DIST genpatches-6.1-65.base.tar.xz 3729228 BLAKE2B e2f41ebb95ca74bc5d37f950e088d2d790c09613728d86a58c31867954748d5ce57f484acfde262bb70c2d42538241b6b05cb9befd7efd6ee10a276fa79e4c3b SHA512 815a57b87978d2a0196146ff4e2ff6a7e95d10c74727d458f9cbaeddded3c99c78a24524b8cf1fa0f1297e5bc7f3c9cd743b19f12938478f3f3faa3a68c7e431
@@ -20,6 +22,10 @@ DIST gentoo-kernel-5.15.135-1.amd64.gpkg.tar 66232320 BLAKE2B 84dedba1da241bc168
DIST gentoo-kernel-5.15.135-1.arm64.gpkg.tar 59566080 BLAKE2B 39b213d78c68f96dac90a31ba6cc72d2a7ea5131e63adcc928a695d9e516ac5bb58af043b09043a78f05417f7ec9290b0b9e0e97127ad9713ffe85e8055eeceb SHA512 63b519140ac339702248b9a1a86e9f9e4477c26bb8716cd9a7bb748cc0f974e477d1fab84cdf02025b600a1df44bac438e4321ba577ea7394c991fc424a40437
DIST gentoo-kernel-5.15.135-1.ppc64le.gpkg.tar 54855680 BLAKE2B ceebd35008845871190742af97ffe053c831db5780f76fbc74baa641590fc6a6e618a4fbcf0846f934a1d0406cdff11e52aa3ec872dc2b788e88fa0882d7f133 SHA512 e846b404bcec42b28e401b1db785adc5ff9e500809051533e07c068136c8e76ed0fe172f6612446949f3e5388c372816f06c1a4b70a7ab2f7b70461af3419bc3
DIST gentoo-kernel-5.15.135-1.x86.gpkg.tar 55910400 BLAKE2B 750b67f5deebc1a7f3592eb70a59699dae9ba0d5e8b0b7d3d0821072b4355d35f41abed1ff39ac7637fd339f7aa6b9e90ce7a4eeff9a0d62442fe19e186f20c0 SHA512 da4b66932fa89a91e6855f4f8d283f8c69e73d6482332de67f303576867ba1c304ea9c09585041ffecd8d78a2d17270d13f4e53e2b9b140d27ccee7c51aa7130
+DIST gentoo-kernel-5.15.136-1.amd64.gpkg.tar 66222080 BLAKE2B 8f3a51dd4f4e37744275d9bb59a3d00a42393408fb325c15322f3bbb1750bc3ebb7ced5f30a5ee4f99866c264c295a0fc0e12b2da4500d5ce1264ed228b2dda1 SHA512 f81b725a4bcf1dbd06d35e41ed93dbc8eecc2143a5d767899ce1babcfc310720c0834fccee429d8aa3c6666839790f0305d71b454418920deb430c4947439656
+DIST gentoo-kernel-5.15.136-1.arm64.gpkg.tar 59576320 BLAKE2B 5931953f7aed5f12e91255e24e1671a558e5b7c86ad6fd102e6e6b3182ccb1409bf5807f74da7f8351b7c6567ff1c9016d190447d586cad63c5c17c241a034ce SHA512 bb35236d7a91424aa6213322216f84bdad9bbe2c11af42204e8b4b9557799367de376e188a49be850ede1e39cbf49c00ccfe26a667df5cdb33aa80b4a9cd2d1e
+DIST gentoo-kernel-5.15.136-1.ppc64le.gpkg.tar 54876160 BLAKE2B c6001fe01431c63727a4a7c597c4a24dc80167d7e144726d4780b35cd3b84601aa548b5d4e0748865faeba4c5bfccfc1c804029d5bc1189235a9628f33968dab SHA512 44bbd5e1ef3d0287b1b38aef6dd9d77438c3ae9f6dae510fff21d029371f56d724f5e0187731be83804231cd545ce6aa36a5e08acf11b14d1ab59348d221e01b
+DIST gentoo-kernel-5.15.136-1.x86.gpkg.tar 55910400 BLAKE2B 1b72719392e32366f4a6439b1198418dc9516fe5d2c5aa46123d9c519518eb296f7c8beb439fef5dc208406f90778dce1ed933ab731dfb21a3e5d3e241f2d895 SHA512 77b4111a14233e90aec92886ff872f751626d951545681207a20580c16d3e692aabc716eabd5199d6de3ac92d5383b038a018bc9f1506e1727a55c4be84b93e5
DIST gentoo-kernel-6.1.57-1.amd64.gpkg.tar 72437760 BLAKE2B 40c1640468f10bfd24c68af91ef6b787a68432d7381d7b36331d94a88605b7b2c9c191cfa20cbebd6a4a255b1e0384d9efee6ebb761b2129b2c5f7b73d602938 SHA512 254a591de6913a1cd4c111c36531da0ec5e7eea06c24adbce7bd16c9e58286b0a7d7355b75b99556e0220fb1caf79c2bcd207947582f340a68aa0331a0f52535
DIST gentoo-kernel-6.1.57-1.arm64.gpkg.tar 65402880 BLAKE2B 7c373e287dcbbec86b82b1a225fe8971347708b5c161d266687033bd92e7a331238ec4f6164f18fe69f7138a9021e9c3e831800ea031da29ea8ebde0591a26c8 SHA512 f0ccb7b47f4fc9d86bc540ee754c42db0639710a366a309b448b8b99b4e4aa96a5fe569f412b9b30b51d4ac231b5a97ae7420cf6efbce87ef6190eb9a062d065
DIST gentoo-kernel-6.1.57-1.ppc64le.gpkg.tar 59770880 BLAKE2B b75ef8425ba37ae13d63842535b4477712f96202cdb3898df214a70e436cda0e4a96405a7a1a0ec40a20ed5df976bfa64638af1b0a7eb13ec2133280dd46222b SHA512 60c8ec52d2260144cb8332de2f23d1ec2499fb365e9616fce6f9a8612b4492c670cf4279d69d6d999c223db9e7b9074073b33768d568182a92e84f62bae9a888
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.136.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.136.ebuild
new file mode 100644
index 000000000000..83c6a5e4fa8f
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.136.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##*.} + 6 ))
+BINPKG=${PF/-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
+}