summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-01-06 01:07:40 +0100
committerMichał Górny <mgorny@gentoo.org>2022-01-06 01:12:54 +0100
commita8524b68905892d2b703ace24cb4af3ab5d64ce7 (patch)
tree2bd58e443fbcf53bb52bf45ce21cecea6341b1cf /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.90 (diff)
downloadgentoo-a8524b68905892d2b703ace24cb4af3ab5d64ce7.tar.gz
gentoo-a8524b68905892d2b703ace24cb4af3ab5d64ce7.tar.bz2
gentoo-a8524b68905892d2b703ace24cb4af3ab5d64ce7.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.170
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.4.170.ebuild126
2 files changed, 132 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 012a5676fa72..393f2dcf8078 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-5.4-172.base.tar.xz 4281140 BLAKE2B 438ad10331e709a85f1ee2a8907a
DIST genpatches-5.4-172.extras.tar.xz 1784 BLAKE2B 9d185d1ff33c56417bf9cfbe33efc6ce4b743a0ab9bdf419dbee14cde34d7c2d6d17884ace56880f75cc28a16b7e18a5e7b87f110c64bc7c84ceb81c7df85831 SHA512 cee6e49804ebc200dd7e308d2a59bfa0e381428caf69678bb6d406357a86398327a354bc2900096f82a77b47beea7fca7e5709cb390fbc1e0b7575c01d062024
DIST genpatches-5.4-173.base.tar.xz 4294304 BLAKE2B 7622b34b82e901d2823f84ef4ccf282a9224dadf5a5248bbdc9b1328aaf476b50df5ea6d359af64507c30623d57a0a61f9205b5d48eb1137a404ef2ca4ec31c4 SHA512 34ce4139ccc9119546a88efb71f46b1172039f536e5072337270ab93b83429b2975a3c9cf4f112f280e62eaf506e62b48f775a4fb772a1a4de8681333be76a02
DIST genpatches-5.4-173.extras.tar.xz 1784 BLAKE2B f01c9772a351ca0db5a44f8f13c80e30b73c546151ae543635a9d33a132f771133c6b8e1349971ab25a972e859a46e79cd64a07c7b4e1335544d7509690530cd SHA512 6b26c1e2025aa4952d23330a8b3878a11aab77e8451c2af728f2d98ab2ef64e415c6293179ace1cf08d91b887309eca9341870416c0fe2e901a397d29f035212
+DIST genpatches-5.4-174.base.tar.xz 4301872 BLAKE2B 0fba459073a7132ce714ba48a9e96a7eed25a6e5ad9f6ed37ff20de503f8bbc8368684febe1d93989de1c2fc98c233d0a675eaeaeff714ab71722aa881e549b8 SHA512 a91b906d4bc21fe3a8ddac50c613b1d8ec7ec9861f3e5c0b581fcffa68057f5c515066d5d15cc042a5412a9f0fb9980c4159792f925f29beac7c02fb98190285
+DIST genpatches-5.4-174.extras.tar.xz 1788 BLAKE2B cef1df26cc9c64dd12eb4f034a6e860d37bb1bbd7e1fb7b4f5c0be86f0415d7f3613a33e159ae742174bf947896024a119055b5713211ddcbda3efd8bd902417 SHA512 87f287fce0d40450efa306f3b44c5fcf1257aa6825b6f9894c29bef23791326666af38f561dd197e0c5c0511ac28297b3a5c0e976296fde13eb0bf99ddf3a3ec
DIST gentoo-kernel-5.10.88-1.amd64.xpak 65533790 BLAKE2B c0b944c638ea7a45846f679147918ea6252f8945021f4dfc4a4c656d3f2ce46c2e8727f7d4a5ace57726df88d23067d21210cb9b1a059ee6893d95dbafde90aa SHA512 f347e3b0a5be1110635ccd995a2c8f142e379c11a26a1901c988a86f57c8c50db285d3445321b38f11945585b6bcfbaafdaff6c0092f6ee189616a141eb65040
DIST gentoo-kernel-5.10.88-1.arm64.xpak 60908835 BLAKE2B 56dcaa2323a559a8c431fddc9889065f6f036b244dd29f203c7095d3e19939f8586c7e26d2f1ec215c8ea1e971c64ec7066c231f967a39b205b55575107ffea2 SHA512 0f96759440f48e895f015ae456a7d62f3a4d531d23557c461a05d176e7866fae189d47f9e300441987cddf7b88b2bf0ebcf8588fdb21d8b980b742fbba73f664
DIST gentoo-kernel-5.10.88-1.ppc64le.xpak 55791954 BLAKE2B ea69c83ece3d9bf6a96efe0b168bdd91a7f55e5887f2e8dc2af2f0db4e01499ece76f474d4877f2971905ba0c7ee47fd0ea6a3cc5bd0b9b802a8b0a240a85a51 SHA512 9552ed2e9c4a88c846b272817660e5844b1cfc5b5c81c7abcffa3bdc401bf8f93c4b4906b0a414a75685062001469de013fa43282e5fa88e82d84edcd348f2f7
@@ -51,6 +53,10 @@ DIST gentoo-kernel-5.4.169-1.amd64.xpak 61393601 BLAKE2B 332199b6b964cbbadb9cedc
DIST gentoo-kernel-5.4.169-1.arm64.xpak 57638451 BLAKE2B 8c2a318df34212b864b19b9880bad0394c1ca67cc354baa88718a013b677c4093aae04df603d214e6cededf724047bfd63f0fcfc292b4dc66da67cb44e58f8bf SHA512 05e6049c26044a985f8eaee4b6342d6c679efdf848c26e42deb84375676f4c42a42005bb3c7ffe5c9c6d489e45acbbc21df3494111e260ba4d1f3efc2994d746
DIST gentoo-kernel-5.4.169-1.ppc64le.xpak 54983821 BLAKE2B 4f8b82bbb73a2379925627c8d6f316c1d58f7645247ba72d0ef18b0106eae0d517a109fb9e3cf7fd4708566f603b9a3d42c5e0993a9885dc5832df4bf0d6819e SHA512 546f2f96d28b55c6a994166fbcbd94a12c6b02ff0481f54d52d62eab0ff7fde353c9c65919c13b6225b7e114ce7dafc0de025e688361d09e1b896e7cc1717ea6
DIST gentoo-kernel-5.4.169-1.x86.xpak 53198116 BLAKE2B 89249b6cef130adb45090796f3500ed09b919f71b9e10bf639427d240f5b0d6169d904fb78f2ab788695b41c16ce963404675e5bc58882a0a5e2d3ec68f942da SHA512 a6e06fb1dc1fa18042943a61cb864c85ebdccf80a3a326e6d0e8bb1b0435d76535ca05f24b69ac4e2f4cd76063c76351eace2007be40f1844cedf5c5ae71b9fd
+DIST gentoo-kernel-5.4.170-1.amd64.xpak 61437451 BLAKE2B 5e01e8ec1c919a633211c5a7262e3972939e700ca0f432874e61390d518d3c468fb0e075fbe33f899fbca48eb4590a531b26b87698f9a59a0fc3af45b50b1a6e SHA512 817dd3638aec7f96101f55e62bbe4cdd44dab1e013f025ff006c195fa31b2a4a2504ddead47aeddf1ca947e926ca80859524a8136fcf92cec25179a609f0f48c
+DIST gentoo-kernel-5.4.170-1.arm64.xpak 57645414 BLAKE2B c45e223add4e984cb5c2ac9d5d7056f80d3b29b642036fcc6bae96e24183c39162f289904afa7c144465592ff8bf054ebeb0b5c539d9b7b4b2b4186c2c2c3568 SHA512 691284686ed9c4d1dc789db4d17d034b0de6c95f986ee623c861622d462bdc5cca29eaf044ea9ba86a60f45c078df1841f06842b861d61136ee7cdfb638f9c94
+DIST gentoo-kernel-5.4.170-1.ppc64le.xpak 55003202 BLAKE2B 172dcda8825d0ee532c909fbc9ca85dc4f593f0626bfedd1d843ab7c26a2c2b6a0eb9812336ee5d526db266de9b158c629cf32056e62585ac16ca1d76cc393fc SHA512 9551f23f5d0b0df0aea3bd09237aed422b89bffc270e8749f2daf4b495158379f16b3908b58f340b98d91b493b9b4699fea173c8ea9358f351fa20c43cfc2fda
+DIST gentoo-kernel-5.4.170-1.x86.xpak 53169209 BLAKE2B fd0abbd6b9160f1f5b147b9226070733bdf1e9c411872f9e9f33301b1d59138cbe067384f1789fc27494f8173ae2c5dbe0ae598d26ce775563e3ad98984d7163 SHA512 f182aa6c0fb0fab3987cdcf8e58aef7a0953673d52bee53ed4c05b3be86b138d44822e715e20d7964408d5067d4e56b7840da7c83a5f296d206872ee12290b94
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.14.tar.xz 120669872 BLAKE2B 0047f5aaa3940dff97f4055ef544faafbbb5282128e6afe21d2f47d8dc8c395806a17016febfa050117d16f59e74b882cb8b9c5011d68f119c230d0a4d120524 SHA512 8e4f3ec3d36f774280f75dc7b004a43e09417af58f12e9c9f8348976659d4cfda7ad905f306f43fed66a27922e5c45db22e46bbfa7a0b9f365012380de3b6f64
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.170.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.170.ebuild
new file mode 100644
index 000000000000..5c7e8978af15
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.170.ebuild
@@ -0,0 +1,126 @@
+# 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 genpatches"
+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
+
+ # 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
+}