summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-10-30 14:43:48 +0100
committerMichał Górny <mgorny@gentoo.org>2022-10-30 14:43:48 +0100
commit600642e5fa3831363bb477e69365b1522a5233e0 (patch)
treea0d9a4d74ee6ce62d43436510614a31e7b221d5b /sys-kernel
parentvirtual/dist-kernel: Bump to 5.10.152 (diff)
downloadgentoo-600642e5fa3831363bb477e69365b1522a5233e0.tar.gz
gentoo-600642e5fa3831363bb477e69365b1522a5233e0.tar.bz2
gentoo-600642e5fa3831363bb477e69365b1522a5233e0.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.152
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.10.152.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 3e6c6a2e478d..6fb0ac9e036e 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-159.base.tar.xz 4292244 BLAKE2B f2afd1af247c7c7833787f4fcba
DIST genpatches-5.10-159.extras.tar.xz 3868 BLAKE2B 2cd0fc67c5b6f89303e3dcf5492b944eb048623c3ee865521933793af8cc2837d841e5f740035b1ad46a5b2f805f6fa8f1004f824ee3967c545c417e7c3b2513 SHA512 3b5b76c7220c1068ee2d29c48635655af4a227f542a870c3c140f7eea256f3d3e2c3df160c6bf193e595f150c2b51f66818c646af1ba679f94ec0c4086fe8b27
DIST genpatches-5.10-160.base.tar.xz 4292896 BLAKE2B 23f6fc8d45f13b190f6fcf4532c266550dd186d48b67d8d48b839f683d453394b29c8898abbe730699c52385e28815d9353fec8c2efd8fdccb25d4102f5c2f3d SHA512 0f5ad6a3fad45ffc8ec01d43f02caf872d819e7f5e744207b2f6bebab3ec356e83e5208ac08ef23065ace4a67295621d2a5aa74b1c720f1643311b2819ecce08
DIST genpatches-5.10-160.extras.tar.xz 3872 BLAKE2B 4168fd4f59232f91d3f50faff5bdff7da05e6b0decbfe5fa8b0cf7ac21a083eaec162d0be6422667a2e895b0005ea526ff134a4a353f035b442687716033178c SHA512 2876f3dcaee91cd20d5f41f77e0f375c3548b9d0a988ded464c9a39ca53f3b0ab7eb1f9cbe75b6397106fc48a869131724814cd7d01261d5f511dc3e6c00a3e5
+DIST genpatches-5.10-161.base.tar.xz 4314064 BLAKE2B 1f083e3d49ab20680612144efb9bd5202146c7790b572710417df25ce6825f3126e08efc404c3c83d8af5912478da44516112319804a59aed27aaa363c4567f6 SHA512 a18ac16bcc00b19b3803ad731f10a69af2d50f8dedab85e021dd77221840caff81c1c0ed8565b4f0f4ae283eaaf7b2239c12493798cfd7d8ac34dbf245c75bc0
+DIST genpatches-5.10-161.extras.tar.xz 3868 BLAKE2B 4bee960a0372d930fd91c93ef6e25467e814fab8afdcfdb19a5e31b0b900b9189322efa84fa02483a1db2f25477a2b1a3cd2e5ccee50a4db1e068f6a4ceac11a SHA512 fa2eb3d7914620282810ffc65a2ba9287c19c5819e67969d0800e7ebc9e67e9b2b8fc239c913b9b38f28f2ac55fcfb158949b55219f709abbe1b76194a22864a
DIST genpatches-5.15-79.base.tar.xz 3195612 BLAKE2B bf8edc209ecc99da4f4c05b575b095992e64ca421e9848a75ef1ff7bca84377eec93ac3bc7d23bfd4c91d529cbf1693e231b606b27ba2ead46e9c3037db10c21 SHA512 c8cdadb66f904f2083f713a58bce743e56e27440f01fe98b3ddf82aaa43401c2fabad029060e7c01590dc294edcdfa8ec6c784f24ca87a1b9fa8703ed626e4f3
DIST genpatches-5.15-79.extras.tar.xz 3932 BLAKE2B df50c7ce655f1f81d46ab6f077963afb0997ed2f6c0b70aa49c34a445d3f8938cce7201b75221705fe27c0a6f699dc553f932eeee7960a21dd89e3c55dde9306 SHA512 31e8c8aeb98e01dd1e0b25c51cfe48d5b6bc98617833229b283d35da6d7572b95dd8141592a2350ff01554bf80d918d2137ef2eb248c483ab22fc3db20a11fe3
DIST genpatches-5.15-80.base.tar.xz 3218432 BLAKE2B f2478969a4e7a24bd7a30328e2d17d5daafa9fbd741dd7eb295c025f27c08ccf8efbde13003e084c509a8bcf5f1d28f45189a28467b31c48c2a4d344a726ec4f SHA512 60737de4d0f8e3acc02ed07a82853d9226daf54b3b5a1b990d94e78b3dcd9fae26b9e6cf8854e5074b88dd826d286440155b70c4fc19f271ce795b2bbcc61b1a
@@ -24,6 +26,10 @@ DIST gentoo-kernel-5.10.151-1.amd64.gpkg.tar 66478080 BLAKE2B de66ec7f8f6c301bf4
DIST gentoo-kernel-5.10.151-1.arm64.gpkg.tar 59648000 BLAKE2B 76c0de6e34bc1e821aa940d371b7b505ae2ca57cd398ca011d7bb6c2c36bc8a8f76e62b4cccb85f4c65c9d5a2ee08c06f6131124dd0f04e20bfb1a08a69d4aa0 SHA512 46bc4e6ecb6c77e609c27ff6a649678e959ec5fb5d57651099da862e831952ebf727b5d7cf67ad047ce6df8c6fa8af719d63fd8aa2ee0328a6c90b56125fcbbd
DIST gentoo-kernel-5.10.151-1.ppc64le.gpkg.tar 55029760 BLAKE2B df852e64d4ece8d209b7827cd298370b2d18d916e10c286bf7fd038164706a208c16e9cb3617b9e0b186cf6a3374177c8ed0108de54b837223d0d091efa2a7f0 SHA512 d0679b789340622d099a157f53fadc928bf658aaaa78024cb16fd90a0d02b90d4f66adbf137c0ce95bade560f2fd0d1758d8c0345a7df173ef60e7d1569a04b8
DIST gentoo-kernel-5.10.151-1.x86.gpkg.tar 56412160 BLAKE2B a826d5d2e769e65652e5c08458de8b239d752bcf34360e8430ca7eeec44f2e25f4e47b314632d1c03961646ac53ced0daea80b759a0c6897f83f0bc0ee9e20e4 SHA512 5c9fec62d0d84fb0080ef212758231144dd98180eeb573dbff4409071b89418ff6904125a598ae6ca723fdc399041b982a74bb85679b453aacf63a6128f0e7bf
+DIST gentoo-kernel-5.10.152-1.amd64.gpkg.tar 66519040 BLAKE2B d186b850a080206d4ef6ab201ef505b8051dd5250eb2e320fa603bdd78ff71c295c7905a58be9c5aba977c069ffd3dd1cb88a17c0739d2301a8d35fbe90429a4 SHA512 c1312d62d917809cb1758a18bb1dececa8dcb131f0ce71f5b8d65a2bd33d85359d6e8ad306c88a4694c5697d05f3484846ba420ef8ecf04037212b8fed04cbef
+DIST gentoo-kernel-5.10.152-1.arm64.gpkg.tar 59658240 BLAKE2B afeff9e4bda9ac67d1d486fc64891a81ba0f2eeff6f6b988650d92ae8269ec866f70f6685c5c93ab143294d7889f1734312cdec7ed53d5e12c26d42a1d6cf694 SHA512 b5b296767a8f0a21bd5d7777139e9cd0b50b38d76a80ab7b13df7b6d11e64b2327584425c10ad1e19e0c6bd3bbb63f176881812d1ddcb90b70da1db0adda4d69
+DIST gentoo-kernel-5.10.152-1.ppc64le.gpkg.tar 55040000 BLAKE2B c18d8c8218890fce2067f9ae6cb53425d8a100546859dac94c71673a2c95c16f516b42d431ae101e52019ef95035724eb4784c74bf39f40a690f0598a742d35e SHA512 a94bfa9574a1820e8aca6dc09cadf6c52770e922e7e00659e5b7d943e0f2808b49099a2dad7999e9f914df0cc34c7a7ba2238a23bf39c87238c4289824291c91
+DIST gentoo-kernel-5.10.152-1.x86.gpkg.tar 56422400 BLAKE2B c3905cb65af9ee28d1bfbc7de22f3d13c48334c0fd183170fc6e100ddaab800de4d2b9d8171dd34b924c807e249193fe7beace63498793bc81e68cbc12064fb4 SHA512 bdd3eb5b17dfb889ad2cf125c3e4911b4f1e8439cc4302dce8530edd3dd28b3abd3e35a63a4c3cedaa718c5c7172ee67f27fc548b9b692517cbce11f851674d7
DIST gentoo-kernel-5.15.75-1.amd64.gpkg.tar 69816320 BLAKE2B 738b6bc811c9af719007d4333c90751117281d2dc7db5722c289dd5d44ffe52381510e927c6e48e35f6204f67049b0962ffd1e4406401f0d712baaebd8f79511 SHA512 c732f731e0d9438305142ff6f8ca1deb2935ad23b694892e0885ac40a08265e40fc134cf31351fd0602d43276d8d08dda777a6baf2492589fa0ae50b1ebe8070
DIST gentoo-kernel-5.15.75-1.arm64.gpkg.tar 62873600 BLAKE2B 823661948b075c438dff583c5b19602d2a7faa9f1e05bd5d8f036d034d468f91605600c15bbe62970ee436510ac1898afaec6d58461749a5eb34b4175a63f1db SHA512 9e9a19bd2c2120bf77918047a4ae728074a88d29d207628c077b0c4ee425ae0b9c266dfcd22dc1204e7c3871927d797aa7bbfc759fca0efd484edeeee1a2f637
DIST gentoo-kernel-5.15.75-1.ppc64le.gpkg.tar 57241600 BLAKE2B ba82e45ea411b343c92fdc8d9c06565694e12955287451bb148d34a374004f68f9e32cfe1535dcdbc3e574018d8a3119e7d8c97c2d5f2b3ccbd0acf8ce497669 SHA512 c3a6d0a85d227608d5b2416360b9d597176b83643160b6b4a61f8a6bcdbe15c89ac9b6f0aa13cd4edb9100fdb666ddeb09de765b1faf5970360bed2546e93898
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.ebuild
new file mode 100644
index 000000000000..26eed75d6c06
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.152.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##*.} + 9 ))
+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
+}