summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-05 18:25:47 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-05 18:28:18 +0100
commit3e0f20ab0e5e24a0296647e87d151f473482690a (patch)
tree0f50c56acc2d08fc70752c30c5b2d9b0ba823fba /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.97 (diff)
downloadgentoo-3e0f20ab0e5e24a0296647e87d151f473482690a.tar.gz
gentoo-3e0f20ab0e5e24a0296647e87d151f473482690a.tar.bz2
gentoo-3e0f20ab0e5e24a0296647e87d151f473482690a.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.177
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.177.ebuild131
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 02d0f69aee26..e5152a7e2c71 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -30,6 +30,8 @@ DIST genpatches-5.4-179.base.tar.xz 4388128 BLAKE2B 3620d9964110c1da10d01520e830
DIST genpatches-5.4-179.extras.tar.xz 1784 BLAKE2B 308033aec35fab42e5ec7fbaee2d20a1897c73b270678de252ca363a6b371c6f64d465fb5386451fcd3af64f2f3afa0a1be39f90ebb85ac2dace76349b67813f SHA512 9e22e6dc2bfae27f8fea851698feec4fdd7141b0c1ba8f2cbc3e4361cdf397376cb52553de744e016cf58c5122a940fd31b6b143d355c03c374cb83388032746
DIST genpatches-5.4-180.base.tar.xz 4403360 BLAKE2B 3e153a25dcbce57a218800df3da5315a808a08469dbc1cf05a7924b27af33d3d8f92926ef77f055f5853f3fb1bf2e78fd1724df21e62aa04fbc7736b26490ddc SHA512 2b6f816d1d0f3c61ae2660ef9dca958bb61ee46e8918cb6f5763e7d9aad898ec07a89eb221267307388bde61822a8698567af764159cdeff76655ca28a55ca27
DIST genpatches-5.4-180.extras.tar.xz 1812 BLAKE2B d633acaa2c422e7611a8df1d8fdb15a0ec303f6bcd707ea54dd7d373a49b1bb6ecadfb02804909ef8931c8c6e96077a6d2904f294ae1169896b6c1613af48b68 SHA512 9f673d8f284cd3d6bd6ec73f7eb7a5f1a3e85017f21dbb278d015e7151774be10b78b7a0102547fa30aadd906f5f2298749ac0d64385f833a6b9f44045426ba0
+DIST genpatches-5.4-181.base.tar.xz 4404096 BLAKE2B 22087f6ae44e18ed7555b5ed18fa673f0db1da6ac80e8fcb8c9ff32b73395cfba9dd6a3f4a4a1c5ab6e43692c34de41e69f5f64a63b9a237659aff95b0dd88be SHA512 d041f79cc2dc8be90f1cea603d73b48bcd1286ec9ef8ad2a9dff15a0217e845d2e6d56e31b2c8ba840afb3855ff8e5732bd1eecb30066e07877944f24581a6d0
+DIST genpatches-5.4-181.extras.tar.xz 1812 BLAKE2B 650428f80f683d7d82faf85deb63bf4c9a9d9dda3e85a0965550626f665817f3b331b65a7e740864a95fb2b68691349e70a709b9b0e91604bcb8b6c82e3d1460 SHA512 b92b43858fa4873d65ca494b57886eebdf09cdb78a01a5947adf29ced735628a5de9daeab884e73789c973e3c632d6a02aa3d5f072e326cfcb0ef14c62e4141a
DIST gentoo-kernel-5.10.93-1.amd64.xpak 65587762 BLAKE2B bd99d1842a244a3424b835106e6478a7e010ec07bbb801126f3492f8300438885b2ce141b08e79e89329140a606e27afb6ae8d5f19c8f22526bd31a76b9933c2 SHA512 19c3063f034b6c4265a7a821116d5ba01c26975863b9205181eef6c8ff189ca5dd2199452f24b9d6dec8f88deeac788095f9138f69e30511252cc35e7a807d00
DIST gentoo-kernel-5.10.93-1.arm64.xpak 60910039 BLAKE2B 362765c54257379558cfdae5ed7603646e693c239147ac33f4994da8cbd3e0525fb4f859838ba60dd55eb7df4ba6cf2f8d7d660e6acdc995d9983bb9725c298a SHA512 39a7f6e4b9fbbe8188c8dbfbfd7d141e0d87eba038c9766874cfe37c202d87fcbfe7c44aea1c7edf100852c4859d1c9891ed1018ec8bcd8e45ced8c5b2032e7c
DIST gentoo-kernel-5.10.93-1.ppc64le.xpak 55673233 BLAKE2B 1058a631e87d651ff9f3514595e93af6b796819d508730c6357ce7db701c1dcc9a27f05a6179183cd1679e71ca7eaac4bc335e40869efbd8dab2f94cf5ddfc12 SHA512 0653cb1877b7f1988964c310703462dc010213a1d63641f6c9ea7dc7e3eeb3686baff88f765ee431bb4d6865b12fed92fae26cda46b5c61ec9a100750a57a7b8
@@ -94,6 +96,10 @@ DIST gentoo-kernel-5.4.176-1.amd64.xpak 61451582 BLAKE2B 878e0fbe7a669e1378b9517
DIST gentoo-kernel-5.4.176-1.arm64.xpak 57649598 BLAKE2B ee34341d81464f1ecc23be6ac27a5c888ecff7ad0e361e1bd1d36121b5005992e9b435cc17c37aa3525bb4189ccd0683623a3b198c5fa3b424132a0aad76f09c SHA512 0290e6a07ea09880fba3057704c368f581b0114ca6bb794fd72f3624b54ff35e2527ca935b7087902ab30c3c15c7c9e78917f9bc22978acf51c675b8efd59238
DIST gentoo-kernel-5.4.176-1.ppc64le.xpak 54874773 BLAKE2B f17db10e4f00af5eddece5f66b01a4e3b2234e1f4b393d69f711f645971b0799ffbdc0b0d83341ca75fe12c5b8d79f3b845c400fed070215e2d0e36ef436f3f0 SHA512 36d988fad3bfd68f0da1cf48e0e742e66026b0950d0a81909e5840b19d68cef18bd3d17037bbe5789a0fbc669f4f32e6a6e3b9aeb39e686bc98049870ca1cc20
DIST gentoo-kernel-5.4.176-1.x86.xpak 53177360 BLAKE2B e9df6e7a60c9d8abbd7d003f7efa1fada638fa019a381813aaed17926f647b2862e0b6fe2f4a8dc54eb36521cb244ebc5936eaf60a6bbdf2fb349a002b89c130 SHA512 3e6d8e2224431431ffc601550fd6a4084f3ac8a014a3ea43ee1ff0ec98366fc4d1c77cea72c3edf8d0cbec42d9d4a59c1c1218bf9931d47d631519ba4bf52a6d
+DIST gentoo-kernel-5.4.177-1.amd64.xpak 61427131 BLAKE2B 35b2375d31f1b82d14e3e96a0cbf892263d7707fb80baa4b9da3dbe0df390ac0baff726220c915bb17660a49b5adb97c6d69a4ac4cba53a2174108ac17c76768 SHA512 2cae2a4822a4e96ffdf6a404b56bff8a970f7585066f3cdd4ffbe9cd2e8b0ecde8c9e60eaba5c54c76df5710d6d59c6f0409bf0185dd9ff0c8c647339d5edd31
+DIST gentoo-kernel-5.4.177-1.arm64.xpak 57653422 BLAKE2B 99b6b5682845660eca2cc39c393393d9cf20595f56a8a0673b47bf95a8f4ed08a0073f1cea91ac25cd086a84fefd78a6076f3dfb6c9104430827a6414d568be1 SHA512 9a8b00700d1d39642845f1a55a3250f3610aa1cd72c9c61d3afc53fbfe5af0c533c7dab70757869b4cfb36068a1e133f4a90edcb03343665ecc5a425affe5c3d
+DIST gentoo-kernel-5.4.177-1.ppc64le.xpak 54917399 BLAKE2B 10db348f6ceb885061bb681f5a6fb4167ad796f8f72fe1d03ff0f19d77905c77e9126381ec6ac7798fa34c0241315de5b927175e993315b0e3153778edb4cdd4 SHA512 3a5269c6847bd214940b6f68717a40c85cdeeac01a7e317d415a0fdd0a87fb416a09c59ca51fe0f46bbaa715ed24fba1f82c9cc67b131d2c08459c51e3fea87f
+DIST gentoo-kernel-5.4.177-1.x86.xpak 53173153 BLAKE2B a66d3b5f4537b6d98f8e0d17ce62195fd2c16733bf2c5bfb18f024cc6a953b382af0fb748f81f378ed8dfafdfee355b3ae4299de152fee51f1afbddbf5cb5194 SHA512 5aafab774c14f54f65245db724b0b6db47dc5384f3b8db3824fabea1d9751322c801ac85538da7c92d1749663feb51c98f1049429f76d952502ac32b35d5390f
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.16.tar.xz 123114100 BLAKE2B 07a90cc640ff89e1359c06cee8c38abd33e51f9b9a89833e31a1d2750526fda4a59e8884db3c1ea63df0a37f0d3de6b5a922b014b7313d8abce20d90ac08adcb SHA512 7a257dd576bc8493595ec7d6f3c9cb6e22c772a8b2dbe735d2485c4f5c56e26a08695546e7e0f1f1cd04a533f25e829361958d4da0b98bf0ba8094dd57a85aaf
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.177.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.177.ebuild
new file mode 100644
index 000000000000..5bdada88d281
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.177.ebuild
@@ -0,0 +1,131 @@
+# 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
+
+ # 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
+}