diff options
author | Sam James <sam@gentoo.org> | 2022-07-30 03:22:04 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-30 03:22:21 +0100 |
commit | 006e7d01b0704da6352354ca87a2380a99baec18 (patch) | |
tree | 46bfadc1bf4da3f1a6143f40b934d1de5684d5b9 /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.134 (diff) | |
download | gentoo-006e7d01b0704da6352354ca87a2380a99baec18.tar.gz gentoo-006e7d01b0704da6352354ca87a2380a99baec18.tar.bz2 gentoo-006e7d01b0704da6352354ca87a2380a99baec18.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.4.208
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.208.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index cf2c268d5d33..4aac2c91ad3e 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -50,6 +50,8 @@ DIST genpatches-5.4-211.base.tar.xz 4898356 BLAKE2B be058cf67ca37dd3eecc242039e1 DIST genpatches-5.4-211.extras.tar.xz 1812 BLAKE2B 3edd098fdbae33053dad710c08bafba66b3fff66e2e87935e904c6c5c4ecc2749d8f3135d10ffa6afae15711cdc92c725a08178eae6091355b81e93375d1cbc3 SHA512 264c25cde7a7371726350b0eeab9cc087fb0e0194e92905e1ef2ebe1467ef7ca3a0cd654b65e3fe35f49113882ab9f4041bbbd02095c935baae93b5a37f986cf DIST genpatches-5.4-212.base.tar.xz 4910124 BLAKE2B b09dfb8e041beb3ba5813e3f93ee02ef2fe3a6bb62bc4a9124bb19b74612ddca745e7066d9d11e520b6ab60e4a123428dae8e97ad28323e0d279173654a35f41 SHA512 f13c5f6d38e8b71544ee07dfbd049b611b8228d2eadb26225f0a3cb532c8aab2b321a52c17e11a732c6bbfc71586649850bb4c43b932206d7b5ce4691a0b9e2a DIST genpatches-5.4-212.extras.tar.xz 1812 BLAKE2B 8016640dadf0add8c91a6631fba836b97173243f900abac4c12e5ae19d1c63e19d21f25df2f22b2880d18cfcc83d002fce7014a26d9f4f3a4bd788fc084db403 SHA512 0f5e5f8b6ad6538bf6850c506019fefe4e95a36f7f568b0c5188ad2c0c06fcb904287452e5692bf63480c321b24a6bdb2db9adeecd3a181c7260ca74f34fb5fb +DIST genpatches-5.4-213.base.tar.xz 4933392 BLAKE2B ce7ea84b52c60d4ae9cef1ddc3abd3f37de0ad5d7344645b3e4376db29d45b2acfe7b7b89e557c6265b4abbda9827fc68d4ef7c63eb418d3707166d7ed50586e SHA512 6107308eb5f3a0b1b079297fa7815a335620a2a0023250f1c4a92c84dfcf2ab7afea9388906e93fcc21d9ef85f350d638a8d245c29cca5b38968b71ce1a4d06e +DIST genpatches-5.4-213.extras.tar.xz 1812 BLAKE2B b6812b7e126a55b2079832ddce8c9ba09aee71b8cfcc137c5d0e553a7878e9fdc6e57e64b3670123cb90661d52b3aa0818fbfb7d3d48bd0521c0a0f46ee420e9 SHA512 1deba84aabde4c35213ab38e0f40fe1aa696470bcd5a6f103635d0078726622574ebdbb5caeed7d1516ef45a326052b2ac9d4f6ef2dfb0e0f84f837f9a350927 DIST gentoo-kernel-5.10.128-1.amd64.xpak 65795239 BLAKE2B ccd03c20e469543532c3df43176ab3c1dd84919930586f3e90f2fcddd6fa6b8b19531ac9b94c7f67f55acaf052ae0b11814d93c4eeec7aedb2a13765165d6fa7 SHA512 cb38dacbbe923640bd0ac679a2430d890cf3609c066196c801b562ec55e59491c1549ddab48f00d2c1e4304310fd7d45108eeccea7bf3c2667712ca8545354d5 DIST gentoo-kernel-5.10.128-1.arm64.xpak 60993645 BLAKE2B ab40edf44057745e141504d4043d1702fbdf51d0278dfc3803800632e80e7278c347cdd3d325608e0e948b2de3e4ac0bafa824800ce486f360163e29bc0a3d4c SHA512 da31c3a1c5095f28c4824588aad43d6ccf219b1c249ce0665566f732e8920f052fe916609bfa4dd5cdf1271c601c0ab67f299068da38ca695a4b14757a6d401f DIST gentoo-kernel-5.10.128-1.ppc64le.xpak 56022338 BLAKE2B ac21918bdfdbd968899393e0a323808d0dd7705a7cac07057f76737c794160ea274f78acca2abe5244228f97343f08253c365bdefde74f2e7ca7ba6086e747d5 SHA512 05f3e3a6f20d1dff3fc8c1f12634e417261a55de47df189b3b9cc28ed7ce5f1673b19726d68dd00c1af4980c46769d029d83094efd98cd8865970f00b41d69c6 @@ -154,6 +156,10 @@ DIST gentoo-kernel-5.4.207-1.amd64.xpak 61529662 BLAKE2B 6b7a3c50563eeb61bac94aa DIST gentoo-kernel-5.4.207-1.arm64.xpak 57686064 BLAKE2B 50124d68c7aec46dd61b03070b4f4d327363ec2582446e7b664d9d30a4dcb0155401d588b9465e571bfd1db3a2079e9c1c5d97616006eea07db5f9b69cfc95c2 SHA512 581c0dbdccbcfbde68e1ea02feab1140189711e5f5062fb74173950f26d1b8e13265530b52d26b48a05ca9f06aaf0736cc7f4687570c03b0bb625a6b688f6a3c DIST gentoo-kernel-5.4.207-1.ppc64le.xpak 55240398 BLAKE2B 5ad22d9a5c957620b6cf41fb650dfc7a8962ecb57399de8c7182beae6f0f10d44ddafafbd7c8f4e791078203b46d5c98e12d360e19f57745a4991d4e7ecafac6 SHA512 5fc4c34a44f815f8f980513b685c594e98e053a36aa0c3e899913ef9b98edaf2236d2aa7af856044b86f7919dc447599ca919f034322dbcc2de7d64cf1d046fc DIST gentoo-kernel-5.4.207-1.x86.xpak 53335460 BLAKE2B 2f627cf6844a40a2f3c8f7f0e3e73e7fd1a303a9edc4657b78ebf1e24f51777050141014f5f56c3d144a2528cf27022c1a396899ae0ffbcd58c171ed67a6c359 SHA512 7bb04a8b3af9195f96e7b2d84b065e75d65e113d12a81c0560942f4421fd4a7864c1c44d4a41fdcf764ff06ea3545f195fb72008eccc0a5660a617b40a88173d +DIST gentoo-kernel-5.4.208-1.amd64.xpak 61740219 BLAKE2B dd7a28cbb98f3ad74b15abf14d8cb92f2195dd4a03c3d108c308d37a393429d55d9814bfb8d6527a556b7a86c0478abc13a8d193d3ad4d54ffb3dd14cd3ac942 SHA512 36c9e0cd8097ed051004d9efb3d0609819bb83267b653815330a2b0551421b48da50b9681e3c7c3fc8c712797d1e5548330305a61285e2cea21d15644183322c +DIST gentoo-kernel-5.4.208-1.arm64.xpak 57941209 BLAKE2B c83d98ce2ad183b9346af2263fa357bba4bb5abf8096030624ea94316b9899ac290b4e220f0bd6ec10aaf63a589503c730fef1a0ce0e701f0c59e600cfe04adf SHA512 5880a45f0da6376ac2f02595dd21ffc932febf641d5f66d14adf64d9bf76ff1d510f107a86a80d81bc85806538eaa607afa2d8df42719924afc93d7adce9f6c3 +DIST gentoo-kernel-5.4.208-1.ppc64le.xpak 55204548 BLAKE2B 770b0e1728e0379a1e1281e6757528a8ba83a8161706d90b49052c59757e2c0162793d21cc42ac2b1dc639fa16b16d5a4b21895af9ed2862752ad761098098d9 SHA512 b19fdcf7a00047c911242349f04a345d29a78f11fec914f86ae3f7765643529a314f3e1e1b3cfbc4648fbed338f07e5e4999c98bde866878256aa2f6ebe843af +DIST gentoo-kernel-5.4.208-1.x86.xpak 53382429 BLAKE2B aa1bcf2df9ba30f734e263d443e1de72c7e32bbf8f417f699273d55a05ca77359d01fdb9fa3b1cfb0e2946252591d75e05942e5898246d0953e784412a33292f SHA512 d9907f0fa39b12134515b303df9114dc01f275371abb5c5aa77079ac583a0160e7d1431b46767604ac68bbf8f3fed0b9bc0cc8231264996d20357e287f1cd4b6 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.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.208.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.208.ebuild new file mode 100644 index 000000000000..79b50240fa60 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.208.ebuild @@ -0,0 +1,135 @@ +# 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##*.} + 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/~sam/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.amd64.xpak + ) + arm64? ( + https://dev.gentoo.org/~sam/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + ) + ppc64? ( + https://dev.gentoo.org/~sam/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.ppc64le.xpak + ) + x86? ( + https://dev.gentoo.org/~sam/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 +} |