diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-11-06 17:51:17 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-11-06 17:51:53 +0100 |
commit | 84954f9ec1bd1871077699e5f2bc0fc521b888fe (patch) | |
tree | 83e47c6642d97e56d08581fe662f604b3c328ca4 /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.14.17 (diff) | |
download | gentoo-84954f9ec1bd1871077699e5f2bc0fc521b888fe.tar.gz gentoo-84954f9ec1bd1871077699e5f2bc0fc521b888fe.tar.bz2 gentoo-84954f9ec1bd1871077699e5f2bc0fc521b888fe.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.78
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 | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.78.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index ae233c4254a3..fa9bcee02d59 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.10-82.base.tar.xz 2436944 BLAKE2B 1ec08fa67b8d075aad46baee204f DIST genpatches-5.10-82.extras.tar.xz 3840 BLAKE2B 013a2c13750a9d235477f5af6f42fb80703590db72ff254d1fec54957dc7a8eea7e1b2ab430c7a375699edb95c1776dd454b42add5d2ed78a65ea90aad58c831 SHA512 6d4eab6d4dfbfaabb1a117b2844b1fc110b4c7ea3178acb114c3ab862765f46d2fff32cacc3cffc50429f926cadfd479abf56332cd3630f734852e66139f5411 DIST genpatches-5.10-84.base.tar.xz 2456624 BLAKE2B 601a384268e27c058a4e7ac17f7d1c29463069b8f1ba37669015170c420605f91b5d9780c308dc5969acf6a619fde60876a7f0f6507906849ab4f2f0916aec7c SHA512 e6fe9a033bb3ec6fc3274b033d8a68fec7dcb1acceec654659a06785f87eadcf8102f1ad2eed00919ffc16b73abd156c845a675d036d9e11b5a7c264766356fe DIST genpatches-5.10-84.extras.tar.xz 3840 BLAKE2B 77bba1e9fad26e7525b6d3ccb27b2aa0a17c08d21e5a05483895b17babd11a17d280a9c32375cd1b8c2ab8b3875dab7b519ac490c1e189d5df05b7b19c3c74a9 SHA512 1c99561593dc8097d7626efe9eaba1712353bc3ac72780edc515833591b02f90034f039e904f2057b7ab56d142c7716aecb56edf0cb656d474246a6ed0438efb +DIST genpatches-5.10-85.base.tar.xz 2458980 BLAKE2B 56a0fe583f9db1bd5d1a051c584d1eedd1ac5fe756aea67b51aaaea798ab10669ed2213f0141e1cfb9ef47b7200e35f266c755dcc164121f5d8e7578a31b7935 SHA512 c213cecaa7f30b2beb000073520e3b2dbdc3f106c01cdf166a77af6d795b9ff77f1a05e0fcb0d3d0855fd46d54a1ca0f2d90d8f6dcd4c763050ab34462199c59 +DIST genpatches-5.10-85.extras.tar.xz 3840 BLAKE2B 42ce8a5ec14ebdb8067853fc388b30e178e705e53d6ca547e21ab76bf94ddad1368000226ab455116758cb6ce01e8a8624332dd217b2d49d6ab3393d6f740966 SHA512 10bb7747d4d23203c39cc0f15abc70e5dbe8f3e390b2c95338982225634b3008e415c372b81029b85e0f6619112c65327e6acac5de0fa3cdf58bd8ac30607803 DIST genpatches-5.13-21.base.tar.xz 951176 BLAKE2B ba681ca3732dd42d0242c2b4e95f90f92bf4737eee326a33297c03d9cefd5da3182262626caf4635a3c66329df5fd0f28d55a963b5fbba110f025e7874f00726 SHA512 55f21fa1711464d686dcac9886ed0420cf48d2ab4e1b98ec1d8ac52c8828d4d8c2d71c4e57df989d23df670d46a00ec2c7dcdd4dfb7f411e904e379f9fb702f1 DIST genpatches-5.13-21.extras.tar.xz 3852 BLAKE2B 5f1b6adf7944a5f8b8394ad651e08647284c685838309f4ae9c58e2fb6ad127ac48e8ba10b65f058793731ae39ea683c290e30425aeb306ee8e6baf7bc7f812a SHA512 397e625d456feb5aa3ee75c18348401c976556a38c401afdf7e242e036fb432c3fafaa6bc8b44d046ccd64be418407927fcd366d172386765832be4877a6d3b3 DIST genpatches-5.14-15.base.tar.xz 544344 BLAKE2B 5315b7c850517e559fda958cb73d9bccd97945fd23833f901f81f21ec0b6a114ecbcdc6188b7283f3daf2c2dbb77b470fe4dbd15e6197dbecf1c026aba0f09b5 SHA512 963eb0f6ee49360b041e748bf096ccb4e92a075de029fa65884553f3372c34181f3cd1b1d10c55893df0efda0d4e265cc410ee2d5bfbb6a4dac0be98dc86a638 @@ -36,6 +38,8 @@ DIST gentoo-kernel-5.10.76-1.x86.xpak 57245227 BLAKE2B b770d80e40e87c8a74f1724a0 DIST gentoo-kernel-5.10.77-1.amd64.xpak 65535606 BLAKE2B f6f9a289e77c9126a7b05cd427d694d798983fca62df11647a67d5caf579147201461e284e3a03d970d27a735cbcafa34101087bf537f3d04ddd0102a5559922 SHA512 c8f75a14ce93ca0edf0381778072d4f76c784b2ee120d621016eb41f61bc25fe7eb388159f371fba8c76d98085c260fba037cc53405b6da673b9f92fa5f6ba27 DIST gentoo-kernel-5.10.77-1.arm64.xpak 60908355 BLAKE2B 99116acdfd9790281f2128d5cf54f97e27e38f7908cc9c1abe1751653e437560e865b89cafe3e292e5761ff3f4aeee95d02695447d0911d0d0491579fb22b8a7 SHA512 54c38926901b24199e90a744c1bd44c587cb6861aeafa787641a87c4382b41936e18e00ae460dd2ec7a3cdf3b13d9df58aed701bad548e5a1429b9c06be1703c DIST gentoo-kernel-5.10.77-1.x86.xpak 57261834 BLAKE2B 2c344b671b51ecff973dbe4fe62db1d541d76744268f867911037de8778af2c213302edf9f714a98eab0956d3031e7c12c4490eaf3a8c37d1b6826d6d14b81d9 SHA512 a6f071d54eefa72c3a6bb67fd09a4f6fe3e96b99fd4ec1d34be45d8eab0f6f690130c0d51c98e9d6b086c3bc8775592ca5e3fc3e993483e39f3562d8234c21cc +DIST gentoo-kernel-5.10.78-1.amd64.xpak 65516317 BLAKE2B 444139b73822a88abf4ff033858cd4514f09c689bf68a24659477f5106b4faf89678ba7ed0b80c831d16456c04309bbfb1593cdcab9979991cf86052ffa9632b SHA512 4034c53b5c8f3dad7f8bcc146d3827978040daad6e05dbdd683202467a8ad62c29fa0d79236b1fdae404993f42ac301088f89605e4f6d32158cf867b498a8e62 +DIST gentoo-kernel-5.10.78-1.x86.xpak 57263133 BLAKE2B d4f3ade0de191584fb2022aadf5223a917d77f8e0aaa885d919d22477230661a47c1e8849d5c78f3fd283097c2f509bf1e7db9e6a02bb8aa745a4a4fb45a1436 SHA512 340d4a59b417e872f0a2aab2b8b0a2ddaefd29abd3c51882f08bce93cfd72e44d2a4798e688a33e36162fb9cfc33b8c173fe0d4551e956ad7d4fec2ae7d2286b DIST gentoo-kernel-5.13.19-1.amd64.xpak 67338326 BLAKE2B d9e718a94bf9a341f5b57063cbde2f3f1f0ea6d03f1805051c084b792388789494a49786d643f1570871ca2b6366a206497aed83f9ed00837c542ac970a71fc6 SHA512 aea74f6f39861752f7a5dae16d955d541f65d3e7b8a0e5fba593011d9ca8583f3dd0964e76aa21daa6583d5d26e3616885aeca8a04dbba222e0aae2a85062b40 DIST gentoo-kernel-5.13.19-1.arm64.xpak 62747957 BLAKE2B 1981ddb4e35d2210e1c678856ac58e088cd100ecbd70d2b5c88ffe8eb25b56f3f0c90e45d12adb74c7a0fb881dfd36b1d46d6fdfb837dbdff1881ded066b906d SHA512 d8c1e524a3e58def5352b3faae07c42074a2d67015cc62b9601e20bb9b7f29d44d2843e7771e0399e9150be1de2be2b28776f96f7fe75ba7ec4e8f2c31e1f715 DIST gentoo-kernel-5.13.19-1.x86.xpak 58517020 BLAKE2B 1dcd347af7693696f93f7a28326aff4c7936c4b71238500b6dd2a4b7cd2b88891436c7c8b7c6a56f638182b722ba5e75f52a1befc74eef4bfe9e6f6fd7d8ef8e SHA512 7bf1cf45d06cf4c6331d8d0c0378d253f6760dbd2f564cac6f7e53d30748ea01ea2d96a6c409a0d653ed74366d319e28ae1e2924b07f4ce7899c5bae121a3630 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.78.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.78.ebuild new file mode 100644 index 000000000000..ee3f48106146 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.78.ebuild @@ -0,0 +1,117 @@ +# Copyright 2020-2021 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##*.} + 7 )) +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 + ) + 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 ~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 + ebegin "Unpacking ${BINPKG}.${ARCH}.xpak" + tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.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 +} |