summaryrefslogtreecommitdiff
path: root/sys-kernel/gentoo-kernel-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-07 19:24:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-07 19:24:36 +0100
commit7b5e4e1f63da7fb63fba5f1a9fc41866c8ae5b2f (patch)
treec9aa002e33c61cd30a2a1615be86cd9961239b0b /sys-kernel/gentoo-kernel-bin
parent27a61babf89122aeb64d52f4ea8f6f068b928da4 (diff)
gentoo auto-resync : 07:10:2022 - 19:24:35
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest7
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.217.ebuild127
2 files changed, 134 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index d75ae4563d40..38d36b79586d 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -38,6 +38,8 @@ DIST genpatches-5.4-220.base.tar.xz 5083772 BLAKE2B 643bbad38a1dc2d6140db59f2e74
DIST genpatches-5.4-220.extras.tar.xz 1812 BLAKE2B 59356642113a6ea0d2756a317a1a02fe375ca4bd1efd70ae0ca5093eea05bb00af062f945db1719be3eba11b358e80fe7764aa8e62df1d3259d6ac1ea2b95152 SHA512 b9ba7d70b577367316f0c9721e0783798f5c2c023eb3ccb9f95907963c79963b72a65338674bed7ddba3fc75cf10e330a4ae6a90f0ea788aa15f3ec1a042850f
DIST genpatches-5.4-221.base.tar.xz 5091000 BLAKE2B ec89ca0a2c657c41784df399249da24f09a3aa08592815e17750365e09e49a7980163f27e2364f49edf35be7ccb80ec123d99693e1207f9d1561ae54687a1daa SHA512 0abb4f2fdb5e9211b83d5658fb55b62b3fd9dd93adc2c38e158c3edb6018f5daa0fe7fff3ef60b971d3307c4f1954d50c03172cfeff90643caab051863a58b74
DIST genpatches-5.4-221.extras.tar.xz 1812 BLAKE2B cf6270b24135f9b56a82547584a500d360cf0574030028f25af975951e5e3c991700977029d2a83190465e797eb27763885f3a0101483e3ac504927346cbf040 SHA512 b5925915b82583eb384a716d486dc5bf1562a08c7ddea932a583d69714a9c359d868993b564c0a98a0ed472c761449fba2e54cf7c4e84f250e55bdb07da4c1a4
+DIST genpatches-5.4-222.base.tar.xz 5109388 BLAKE2B 7897cb44b41e0b360d17b9a7cf3295682fc6c2c6173cea8b08814b6ded54d7c6aec24b51f01912769f35774176d5a89b2fe401bbb09e92890e28e491027f9426 SHA512 e4a4dd2a5f045c0ba56168deb4e557788a42f0db3420790b5103b074d297fdbb417251d6c1eafb0e30eca1b143b2391ab091f6fc5973c4a592a832c4eb338149
+DIST genpatches-5.4-222.extras.tar.xz 1812 BLAKE2B 4c5cff34d2bd8efafaaaedfe875efbda02af2903eaef2d536cd34ae953332da58944d39aa18f7d241479e93c202f9260d3a285ffafde05674709ce9c3d2f91e0 SHA512 338a0654961366814e2c6615b963fa9cbe83e71e01ca92744497997b41edb71d5a1c849be16e18d45b69d71a86f9b4cb53cbcc6af3d70b52ba29982e047a7d28
DIST gentoo-kernel-5.10.143-1.amd64.xpak 67552763 BLAKE2B 372669a3357d82120996ada13a80bc0d5e82f9449554e8f59b7cc15015606da057ebf1cdebd47aa71916a01f8ea0b2ac51cd1e6e3ec59022b6a977b943205ebb SHA512 b95525319247dab78af7561a087619e32f20457136fb75082c2053c675c2f9972967830a8f06cd5ef5878bcc450ff54e56eca9f9784c64f54f9ec7dcf452dc62
DIST gentoo-kernel-5.10.143-1.arm64.xpak 60975781 BLAKE2B 611cdeac6eca2c34a2535c4516be7d585a780571a0cae4f4e23bbc5cbaf3b3dfec37b6c416d6edeb88c219ff3610127323d8b42923b8b3a9835f1f84224aaaaf SHA512 36c4d474d4af8b36f2b3c9f2995621bee4defcd550cdcb64420a7fd02a2864ddfd18962c081abe2892885ef0915a1c36fb729a2dc3f397d1deae3846d6c3c056
DIST gentoo-kernel-5.10.143-1.ppc64le.xpak 55999532 BLAKE2B 5ad3e1bdfe807c5cd792d35722346c811613bd164616ad338996e5303f61ac65e94eac1752efa47fa7f42795879c4a230c2f0e4ee13f49803a83a9a636376b9d SHA512 0327bc9fb10f191ff7da798d549ad9e3b364102530cae53f85aec6eb2b14d0a7ec68444a481f329658bd6e5cf507db965fd5598490a40871a674f2e763f057a1
@@ -118,6 +120,10 @@ DIST gentoo-kernel-5.4.216-1.amd64.gpkg.tar 60600320 BLAKE2B a9957adad42e97025c1
DIST gentoo-kernel-5.4.216-1.arm64.gpkg.tar 56801280 BLAKE2B b1dceb6a1833f9f9a1a6a8f36eb1cb974a9e31ecff1c181cf73d790d1419af410643bc75f0e1035aa37758e6f822b66990732910825ecda999c045224bacd15a SHA512 9519cfcfbd1b860049b646c8a9d90709874dee63870d2f83d47692b6cde84de2ff1e22ad468e4746b30276df37dde02cb4533e7887047334064015166d85ff27
DIST gentoo-kernel-5.4.216-1.ppc64le.gpkg.tar 54323200 BLAKE2B 76f3a502249eb6fb9148a1eabfe2336c950ed71a2cb9ddadb4c44e1844c87874e2955da413e030d296d71fa5af0d2c277c28fc247d9d6b69adbc2444d6e0e310 SHA512 23201b50d239be7705ca3add3ba7e1363efd1a04e3d2c2f499d9d0144ac22499251a34c2c8b36f54b94809a49361730136bfa75f58c581b0a4f3ac0f1bafe3b9
DIST gentoo-kernel-5.4.216-1.x86.gpkg.tar 52367360 BLAKE2B a1165e37ec924441449d24496c1bb1a456cad7113afdf5e77fe4a5927e446d140aed999b029353d217859e0bb7018ede1a215b6b3cccc31182e61b450b908d8f SHA512 709c4ead340bf9f767268870c25e78bb99f1857d906ce9ae2a614716a4dea8b8b4f1e588b3a352d179e9fe145b18a2677c4223d2d374ca75139682c71b5d008a
+DIST gentoo-kernel-5.4.217-1.amd64.gpkg.tar 60569600 BLAKE2B 88fab71286addfb98202e2faa8ac97061ee99c8c3d41234ccc03a671e1e14aa571cc64a7c789463d849b0860709d353582037d476d35897884c867a6e3741ea0 SHA512 13f4d13bffdfa684108bdf7240b61877e31d33cda53f4467e97a5320eb6558f5ee5a71ba42585025bc822f1278c882dfbaf49c29d995a5973d00fb4b00d5548e
+DIST gentoo-kernel-5.4.217-1.arm64.gpkg.tar 56801280 BLAKE2B a45bc6ef4e93ea72fa11b5d608219550e3f0b9121602b43fbf994cbc3163baa5482db73bf11dcd88800b179134d54be0fe66dae0f3710e859d0953425320563c SHA512 328cbc57374b39dfec097248591bf570be64bde3334c8577f15c13585f73459b4e326b6fe9978f4cc3fb2c4825a22245d48b68b7d56fbd3473d42f9501f378f4
+DIST gentoo-kernel-5.4.217-1.ppc64le.gpkg.tar 54343680 BLAKE2B 7d8d824fe09df2cf0fcb58690369a6b846d606a450771796d3e6eed487e806f511faed8d4194100543524d170f2bb7601a0fab6ed919cbca5f3b1c43bdf2fe81 SHA512 698a1248318adc9c4b7284b5273aefef884c42306b410a56904bb7780fe3190368c81111f3c66bb82418bcfb6da48bba527d5d12ee08725c5a2b3c304dedf58f
+DIST gentoo-kernel-5.4.217-1.x86.gpkg.tar 52367360 BLAKE2B 16b5c321d2c2263b34e700fd5272d50039999b3bd79194e15c38f5e28110ae6e19c73c96cf0c5fbd8405ead11fb0515f6bbb984515e67835462c7a0fd391ef4d SHA512 0f839a3fe918f68b9fa9b9f8384c4a083d20d3339d821c36ce217dfd904755ab9144c974dc05e25ce08129610c79c06cfc0d9d0b13533c0cdd604c65711f267e
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.19.tar.xz 131581464 BLAKE2B 4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a SHA512 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
@@ -142,4 +148,5 @@ EBUILD gentoo-kernel-bin-5.4.213.ebuild 3177 BLAKE2B f350a93f053d7b61eecfd1a796a
EBUILD gentoo-kernel-bin-5.4.214.ebuild 2999 BLAKE2B be5c5e139ee4da605dd15cf02c6251a762426d0da46ac2b75d46b79226e7c41c57429ed847e2e646735545fee33cb7ac45d62039158c0004380197255477be12 SHA512 b0ee61606614ca61b655b50a578efefd7fb49437014df935c4ea312ab1257dc415425684a05c6dac1e5dbeac5b1eac81071bf7cae4fec7bd68f8cae985b1c969
EBUILD gentoo-kernel-bin-5.4.215.ebuild 3003 BLAKE2B 1f0a5c41743dd23f46541394f5afa07a6cbb1c212f0fd8ef0a04ee69133fedd983513683c8668cf04e100d91907f994df1e2b132dfb13e6f9d610f52ab5afd8c SHA512 8e0a773951040347aa49a20ae9f8b3df4b6cf3cddbb01e31ce7dc256f6ebcddeae63413b9114f568ea96cac023d2f5af627b0a0360fa1037cdb011df52ae2233
EBUILD gentoo-kernel-bin-5.4.216.ebuild 3003 BLAKE2B 1f0a5c41743dd23f46541394f5afa07a6cbb1c212f0fd8ef0a04ee69133fedd983513683c8668cf04e100d91907f994df1e2b132dfb13e6f9d610f52ab5afd8c SHA512 8e0a773951040347aa49a20ae9f8b3df4b6cf3cddbb01e31ce7dc256f6ebcddeae63413b9114f568ea96cac023d2f5af627b0a0360fa1037cdb011df52ae2233
+EBUILD gentoo-kernel-bin-5.4.217.ebuild 3003 BLAKE2B 1f0a5c41743dd23f46541394f5afa07a6cbb1c212f0fd8ef0a04ee69133fedd983513683c8668cf04e100d91907f994df1e2b132dfb13e6f9d610f52ab5afd8c SHA512 8e0a773951040347aa49a20ae9f8b3df4b6cf3cddbb01e31ce7dc256f6ebcddeae63413b9114f568ea96cac023d2f5af627b0a0360fa1037cdb011df52ae2233
MISC metadata.xml 353 BLAKE2B cd022bd01b289ae703ae6ef6c2539fcfce833206c55e328ba02fc42b360d60f76b1920927b259dbb199724e6d3e7b0f68ba2044680d962d3cd03a973475582ff SHA512 10b10fd24801843108a71ca7d0c27514965b0a15a60da4d9b521fc41493448a1b1685ae3278dbd46cede0d069e51dede402d2c1448c8ae6a7fcfce8acf415bf3
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.217.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.217.ebuild
new file mode 100644
index 000000000000..7c3bf64cd0e3
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.217.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2020-2022 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##*.} + 5 ))
+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}.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
+ virtual/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 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
+}