diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-03-16 19:39:01 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-03-16 20:16:59 +0100 |
commit | 00652747459d06a2a8ab5e01059e2805e10d6293 (patch) | |
tree | e160dd9e051e2408252abf4d0f2ab2b4d5ad0dfe /sys-kernel/gentoo-kernel-bin | |
parent | dev-lang/python: Bump to 3.9.11 (diff) | |
download | gentoo-00652747459d06a2a8ab5e01059e2805e10d6293.tar.gz gentoo-00652747459d06a2a8ab5e01059e2805e10d6293.tar.bz2 gentoo-00652747459d06a2a8ab5e01059e2805e10d6293.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.16.15
Signed-off-by: Michał Górny <mgorny@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.16.15.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 a35e97138f60..59e7c1ed418a 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,6 +16,8 @@ DIST genpatches-5.16-14.base.tar.xz 685420 BLAKE2B 2d2152d6bd21f08de875946418c52 DIST genpatches-5.16-14.extras.tar.xz 3804 BLAKE2B a455d4e9617f4cc34381c48d1aa7a6517fc398e5fd1a311d9938467c4033a51e8e7ee3af040c930fffee667910e6708ef2a2fd336ef88da29683c2ee19a77434 SHA512 469373191455c88169d7fe31deb63df07e0f65ab8676e3899e803f5d83d180b9cacae193eec642bcb01162d2fa4b1daac62835ca1b6a0fd738bc80818c33f5fd DIST genpatches-5.16-15.base.tar.xz 709572 BLAKE2B bb6e5656cee01af674e30c5dbf66d6d538122161c69a21951f5b514c9d372a7ba40d653ee8c25358875fe4feaaea272cc849b6d07ede548d912b8672531e2815 SHA512 ad2daebb4d7602c8426b9990c9a2148715247917bf32a0310676b02f38f82b306b4469660836718747705074c8616fc2b083e9c6fdcb982a94be3bb06c7c05a4 DIST genpatches-5.16-15.extras.tar.xz 3800 BLAKE2B b4142537d04eed518b9a7e827879b7e427d8c0a06710dd72f9f84e1990db72dd48382c67a9e0cf24f9b104b8cddf4d28739fd93e705b97952e364b3693ff1671 SHA512 773543f9989255ce2fb3f6f32aa546f2109eb52e2e816572e027a8428f93bb9c72baadc59ee3019edd03fc97339d30c34c2d8b50b2e1d0e5383b1633b2c0e169 +DIST genpatches-5.16-16.base.tar.xz 747884 BLAKE2B 753592e7d39dc64cd8567df14449bdc7bcea37a2d7ff6b508d6f5a22053bdb7e1a80f3ec0a2aea7560191a239bc93d94db4618e3d4e43b4a2537b2cbf92aab3a SHA512 8f184d6e708f7a8828fe0e7c9ff249293158047fb38bd8ebdc2eeb76388bfb370f0ea832ce19352e3180d6bae624fed97bcc6e3abc3492fa5e4a0a55159a4ba8 +DIST genpatches-5.16-16.extras.tar.xz 3800 BLAKE2B 05b8ec6533b54f39ebb66402d88dba619601f9edf73a769f765c3acbccf88513fb8a17dfe58e490762013543fcc980e2ca285f23d6c0a71cf871941d523bcc76 SHA512 e0acbf026bbe216bbe3856b7f99fd391b7a2a856ab2e6cf7b3fbc91811a8c1d622dec2d2e2ced5790d388fb17dadbd086a074f814af59b69c7287024c604bb50 DIST genpatches-5.4-185.base.tar.xz 4446400 BLAKE2B 543f3c223d01c6a42fd2a5a8c2d35856ebea1567ad9bc0e6dfb4781e1cb7335f90ac63987ca614c3995121f39478575cd144f720561ea8e19efd1f8b1a353d7c SHA512 43eefa02743e516ab37effe13c89246679c4247314aaafa407d796489383cf730531f50a1b49b185bc8bdddbe62b7c47c36e7a10102fd5da7f8023bcd032165c DIST genpatches-5.4-185.extras.tar.xz 1816 BLAKE2B 20364d1e6bca36b5335f6c0e0f63780b939668159207be2f4211da56525720963d432e90930151491962dc0353e48dca713a80e498f2da69912b709efca5bf6a SHA512 c80111e1c03629106a3f0839df80c12bb8cb6027d21cd98e7ce023f1d0eb8f188adb319d2c25cee9e2ca8c1b03f92bc0f69d02b23ad56c4eace4b5d5fd87927e DIST genpatches-5.4-187.base.tar.xz 4470704 BLAKE2B e2f4b367d5f0e1987f8b1f5bc19756f8170a998d428d6f47b43282058e6378cb76688b20791f3aa970fd488fec62c06cb432f43fd5a287e83f0d55e6e04816b3 SHA512 ae7cde7aa973b4237961114501014983636c6e340a7b624c6a963a45e21cd99ee91b637e796d203485f88fa7e028ed939779e83975b60a55ef9bf5b8a0b5495d @@ -58,6 +60,10 @@ DIST gentoo-kernel-5.16.14-1.amd64.xpak 69820861 BLAKE2B ac5a0bab71b1551b3f3ef80 DIST gentoo-kernel-5.16.14-1.arm64.xpak 65070916 BLAKE2B fb24ea75db2670b3c655c3b424f2e1914c2dc3a8c4caa7257ff9e0941c9d3ceffc2bfcc5960e9df4b7288491494cd45eae2cf9849e01b94876b89cba98803bac SHA512 62fb64c91b246f7327a21e5ab2ff7773544e7a17ef6c018ac56187562d5c3e1a77c4060bef2f008d4eb02e80c2b5c2faf41177ac2acf9e7d585167ca3938296f DIST gentoo-kernel-5.16.14-1.ppc64le.xpak 58391077 BLAKE2B ba51a591e3040f6a170db91c0e5afdb5c1cd446115ebefacff8d4e389537ebf5a8dd3134eeff93eea313f88dc86a06265e200185b84a257e89691b4c9e0243d2 SHA512 b6e8367cd2c767bae6f8c54941574ef7595690db7bc1d64033583051acd394522d8ec19b7692c7425b315596a7a8ae29769d7ab867b11a605f0bb6d30114169d DIST gentoo-kernel-5.16.14-1.x86.xpak 60603730 BLAKE2B 171e7f7a1a875ab7fdb9d54bb19e98bcbd39e4c29a3115f1f17ed0dc4ac9e7a24f142ecf1890833bf7b4390f3567c9e18230da6547729e6a1f12fb1312caf960 SHA512 df50b3a52925cd0035fe2f44a35525698f93f12b70143c05cff85af8dae1efe35cbfbfeb5a4e176e1236837d84a34cf33589eba85f25db73151965ad40c476e9 +DIST gentoo-kernel-5.16.15-1.amd64.xpak 69640016 BLAKE2B 78afcbb297dbc24e819c4e43ed3698a10cd040521a58fb67e1c7d59985d4254d4e8c798767930f31a7094f7272525daf948b413cac8753e7cba71d3a299f5b39 SHA512 ff704a5c5b94325f4ed4a924ac73ce3a5e5e72a2ca50bd1690924bf1a40c8ecd455bb3c939eba67006dda9ae05143c7d5a57fddc338b651b447f790b256f9031 +DIST gentoo-kernel-5.16.15-1.arm64.xpak 65065511 BLAKE2B 747e12ef11a3211dc71799e6708af44eadcbb0fe29839f44b0af94f70ec12a1675fa3554e8a08257004b7e24e06807a0fda473a859e350ae1c9479aeb6a767aa SHA512 a85562a4f2632aab52b3abd66f239f279f97bcde46010a82b16d5becd4073be00d846d219a80afc51b1fa41599f447fbebb6aced8dadb66717d760748b9cc8af +DIST gentoo-kernel-5.16.15-1.ppc64le.xpak 58307090 BLAKE2B ed709973c90ee37f3fd90e361b326b9a88273cb8f5b5dae3af519f3045ee896041902b53d3a90958b14e81eaf589bebe8e0c0eacf8d239a222b932f0d4b68fa5 SHA512 b9d15fac2ba52df8cc30e5a19d64c6f268b52ffd0f36cf07336f61913ed3b734864bb64e41fd2cdf314d51a2dd74b044da034560f1559cea8405842c472cdd55 +DIST gentoo-kernel-5.16.15-1.x86.xpak 60442690 BLAKE2B ccaa37499523d7e848ee201244e7d6110f160db07383242b5a2ccbd87eb73ee2a43e53aea845e4d09bdff709aba511218d6b51b7bc0e17daafe5ab88d08b496f SHA512 dee4cd444d4bcf989fc02e0a125ccc5c658dcd35b724ae8d8637e06b33a3d1e1f1e1ff20be7e20f809ee4d2a12f74fb2441f89ac5dc112e853e58310f189606e DIST gentoo-kernel-5.4.181-1.amd64.xpak 61463455 BLAKE2B 6b5b930434cb3f2f00b77006cc71f9ff12ba0f334246d38753abcdae340dfefe9992dc3943ecf849fc52b181931d0cc6165501eb8ba8b57508ed75ae7323908c SHA512 84b4b2051aadf17c09607d9f2fb4fb3ba3a5bf7c9fcc7ac3384f372e0ecb68f6d3b30b36e1a622addddc3867f61b0d91189631877e7a3a578270d91534076c1c DIST gentoo-kernel-5.4.181-1.arm64.xpak 57648476 BLAKE2B ecde63fbc07cf0142fb1446a6642ca03f14c4851a3790857ca1d3d587b75f9add3f6f9d6712e4b23c1bce7dcc802da88025750acde338190cd18808213045da9 SHA512 2ae605d01f951af96f5f7bc86d386fb9b19d738719875ddd88e52414552d0a42f92cebb403fe00676334d5eb48b0013a44f1c239d126bf169a8a815f70bbcf95 DIST gentoo-kernel-5.4.181-1.ppc64le.xpak 54963672 BLAKE2B 402df95856810f6119e5fd8ede93183e0e8d1162b6b833de1d5b99b22f8ac1e7787732c8ff82bc43a2f90d6505483947960276982ac75af2c9f555560d7f0274 SHA512 741c4b5e09a56a07de9b7189119a778122ebdd279e6e7fdb6a0c77615dcf6e8c7f4f89df47222824733a0db10f01e9dc771eb94945887c7d4ea3cdbc72f23b5b diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.15.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.15.ebuild new file mode 100644 index 000000000000..15a17aff0944 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.16.15.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##*.} + 1 )) +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 +} |