summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-15 16:52:10 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-15 16:56:49 +0200
commit0e3cf91572c99a04d866d4d106ad8485c77770c5 (patch)
tree1bdce9599a6e7d302741386a8f9d1a27cd1a5f2b
parentvirtual/dist-kernel: Bump to 5.19.9 (diff)
downloadgentoo-0e3cf91572c99a04d866d4d106ad8485c77770c5.tar.gz
gentoo-0e3cf91572c99a04d866d4d106ad8485c77770c5.tar.bz2
gentoo-0e3cf91572c99a04d866d4d106ad8485c77770c5.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.213
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.213.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 a646c4c72211..2a7cb592b950 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -24,6 +24,8 @@ DIST genpatches-5.4-216.base.tar.xz 5015752 BLAKE2B fd736588b9cbf9ba0a48ad838a17
DIST genpatches-5.4-216.extras.tar.xz 1812 BLAKE2B 7dfc1025fc395883debc819c3fd5840c423d8b3f1973104906545086d35a966551fec967da9ec976257e231c4270c7b091e7641353f89c254c974b848607e5fa SHA512 aaa70a72cfe0989f5ebf2e3f57cf55c6faec4e2c605fef7ecfd425c47574765fc0a2ad5a7b9fcfe33dd70060b52d4dcd44d2849fa0fe203612c0ebacd2b171a6
DIST genpatches-5.4-217.base.tar.xz 5035852 BLAKE2B 45b15e86b35e7f669a4f009261f0f2c0b174579850f8b99be07e60ab7561a1f35ecc48be927621f31a9f97ecf08256af784650b0991aac7d35fe7fcc8ff19afe SHA512 c8f898cb5178e67bda970c273ac1e18a37f8dedc1e813fe8429546eb83ac808ef40e008935c726924557e9669888a9571a162d75965d6c8b11d052ed1c66d482
DIST genpatches-5.4-217.extras.tar.xz 1812 BLAKE2B 5d8cdb3ee45a1180bc94540338f3dafc08da96a849e818ee54be9cfeea59e5fdca2946cebcf2211c256978242d337671398cbaba38581f5d66e7c0f1f692fecb SHA512 55b4465034fbfbefcb0e22e782dbf7f7e3c9d74975cbe737fb0e2c57ed116d84857970074507dd449d55e8b8eb61e4dde725f5fa9e24c6dbbf83c57570007b33
+DIST genpatches-5.4-218.base.tar.xz 5055868 BLAKE2B 2dde93f13540d5268d3855b6c4b57f3746badb0db68564bd9f0a5b80cf63138dfb77a1d60be7c9256a36a7685e90299a8e28690debe2e8bad9e23e2d31dbe470 SHA512 884f469ef288aedaa2e9271fce5cbce8254247b64cc4e4594fd176b62f65133910f8e50d2458f8c822db5683beb02316b71c71e69c71ae2331baafe1d421f347
+DIST genpatches-5.4-218.extras.tar.xz 1812 BLAKE2B 3d98f3ae24c5612a9427c88943474b1ca8efbba31bf5e0c0f012b4bc41d1ed980042221a77374a19813d2ba02eab944343aebe2b45aac893352a27e6330dd74f SHA512 31a3790fc98eadb717e9dd9ae9a3c0f4d8d36a2fd9023f407c6c5cc8e4018f89c74535c44f7fda34e3f7b48a0116c4bd1a4770bb98bc60a264e9c541cb767d8b
DIST gentoo-kernel-5.10.138-1.amd64.xpak 67522997 BLAKE2B 16679700f076e28ace346487f411c653cab4e11b391a32982b8165239121430335acfeb089f40a16261999ab36147fe259025edd063935ae9c036d38130e705a SHA512 3f967bbb188cb178301d22573e73a9791d569caf5f5452a518ab639d83dca5e8992eabf2756513aa92075b70992c7de92b0de773dc674f26387b57160d386b38
DIST gentoo-kernel-5.10.138-1.arm64.xpak 60960935 BLAKE2B f194c6e204b9efb8bf882681aed20519d3cef06dd91fc24d805fffa00e8508d0f39f244b10b896bf153a00b885e518fe766654f8d450ccd4f6d6715fcc12b210 SHA512 49dc2766fd8dbf7d77d93321e1ecffdae6217f95b7ba780de961fbb11030c16060e3a611cf85f7266e92b6bef7a55c96d22bc4460f2c441afa29809615311a35
DIST gentoo-kernel-5.10.138-1.ppc64le.xpak 56016873 BLAKE2B ccb39d42bbb9aab883ee9ed5c318d4ea1770ff969028a2e18b99bab07521309beff55c30b36eb189dcdc4259a5d8b9e083b37018481f501bef781ca0b080a818 SHA512 e148844d86e8a9bf9158c39067620226dfc5727acf7c8f21d7cd85b7c3b2123ec4d6ff727ce2c2890ef400b0b2fce0aedcb2dbe0b6fa5b140d6e2959a10a29ba
@@ -76,6 +78,10 @@ DIST gentoo-kernel-5.4.212-1.amd64.xpak 61563567 BLAKE2B 40256b6cf9e5fcb5eb47cc2
DIST gentoo-kernel-5.4.212-1.arm64.xpak 57951450 BLAKE2B aa70739485b180cccd07459035fcadde0231e35eddbe047adba8320d8aed1aa8c76f8a6966cda2bbd2d59874a47e79bfd34d28e83db0678c30ac5815f54e9e51 SHA512 2f052552925ae58e6ebb0ba12cf421454c9bb5022e8b21aece343ba124873e1aeb81e02248dab57d9c5f959c672c81df21a5a41007d0c71cf94afd30a76e5388
DIST gentoo-kernel-5.4.212-1.ppc64le.xpak 55173525 BLAKE2B 400db8d4bc7ee75af18744a8659292e220b94439136a3652061966ba07222af23c631bd7f6e138a8eec1855cd603fad1ce6b0827716fbaf914a8e60d10c5712f SHA512 0aaa4caa3dcd5999af5b22211ffdbe3f3dfdf2485788507d6a11179c71bbd7fc6d1f150f4e25ff240f735c46227bed513cbbf74c17bf6ec962eb2f382ef3fca2
DIST gentoo-kernel-5.4.212-1.x86.xpak 53385866 BLAKE2B 481bd43cdd5d186adabced6caa356bba08d928f5620bfab96261d04c1e669fec3a7a3b9fb0564d9257c876b254567dd329a0976ecd29f61767c4e3f1b749a976 SHA512 0f66b827d7cf3a9063d731779d42ca496360328f1f787291874f5710d72473beac09973112d677ffbfc4d87b8ef81a1f9fdf25e693fe3fd0cf23d110da09c665
+DIST gentoo-kernel-5.4.213-1.amd64.xpak 61554615 BLAKE2B 0253ca29ffc7c3cece1c87b0c0f3f5655d49436082d0ee5981b2fdd9739fb8f7020f51119403d330f95ff6071d4508e6a54037a466d1fad5ee9e2baa1d7b7185 SHA512 63e89927a405482bcb6db08eaeb037821c603b6f5a6b941871d11ef1f3a955436f65c815e0a5b90386ac8b24ba3e88827e96466b061318c03c4681a1fb4b74c0
+DIST gentoo-kernel-5.4.213-1.arm64.xpak 57931798 BLAKE2B e002752c67b0c12427d7052368c98032e697624803f0b2c7fcea1de67c4141d844532de21e6723ce2f0b198a422316753421b7ec388c138a19487745ce584216 SHA512 942ff596e291730807c9089a5afa3d925de2a7e958cf472b2193f8b292be26c9262c2702fe2781e4cba7b7ac9a87fb4d3d6b7dc4ff7cf1922987b86d0d0c8eb9
+DIST gentoo-kernel-5.4.213-1.ppc64le.xpak 55244333 BLAKE2B 9c77493c9699c9e38f0d42f4e1fad22ea6859a34b11237fd96ca3659def732080b598d6d081b75da98974957c59b74340c131e8206997ca521c6dac021a82f25 SHA512 4a684547ab747274ced5594b23ee6cfc51dc3d70ff5cc5fbb2f02316915f421d2420d4fdd285c2a5bac57610fcda1c1b1352b912242e8a551f0063a9ebd5b10e
+DIST gentoo-kernel-5.4.213-1.x86.xpak 53370815 BLAKE2B 530232ce8119cc11d3fc944e39992c002012a7e3d465f79816932c7b7874286073a8215c542257149c99d9973dfc77c508590d1db852a48ecc0983c984dd7c03 SHA512 08669d5dfdedcec6e308ce92a088fe6a1b41fb46007c3c1136f11411bb7bcbc8686cf7da3fda8ecefa36c2bf6c803d1ebc9ae1bfec30c6e6769e44d0785ceb2a
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
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.213.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.213.ebuild
new file mode 100644
index 000000000000..f69958baf0a6
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.213.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs
+
+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}.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
+}