diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-05 23:17:18 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-05 23:17:44 +0100 |
commit | 8c12cd334c4de6bf0b00a31f76027acb14b5a65a (patch) | |
tree | 615e68d09d4072dcc623f2db4dcb4ba286aa9a3b /sys-kernel/gentoo-kernel-bin | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.15.21 (diff) | |
download | gentoo-8c12cd334c4de6bf0b00a31f76027acb14b5a65a.tar.gz gentoo-8c12cd334c4de6bf0b00a31f76027acb14b5a65a.tar.bz2 gentoo-8c12cd334c4de6bf0b00a31f76027acb14b5a65a.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.98
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 | 3 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.98.ebuild | 119 |
2 files changed, 122 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 26c77f03ff2c..fc74b1231b04 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-103.base.tar.xz 2987764 BLAKE2B fab174b3219d24b39f22dc92943 DIST genpatches-5.10-103.extras.tar.xz 3876 BLAKE2B 8f8a1ec8ccb9874660ab1a357a28bd48f622affd173c459e7014a737435c8ddaed5ea086adef4306298f3ff1779b497832804fc914c895d74b750e147d99969b SHA512 656cd727882aa8eb4b86690fbcb6c56a20de2aabd2d7de0e29ce2807b12e738a085537cd94cd37020b1d7c95469ac1566c4e2b7a3ec67ab7b88f8cf98de66a9f DIST genpatches-5.10-104.base.tar.xz 2993596 BLAKE2B 76aa47af46b4ab39bb19e89151c85064f5f530365196a1cf068cb055ecc26178974eaea4ca35328d1818f90c4e6d4d2b3bc2549f98b6c3f0a47071419e0d2d84 SHA512 b3fa1e616d2beccf73b1adea6f86203d1f19f4cf0492d529bf683e126d90dc74dd33abbb67bf3d86f855148aceced7d1e565475f05b19d520f45193c77dd6850 DIST genpatches-5.10-104.extras.tar.xz 3876 BLAKE2B 6e245a2360aa73d3cf99d4439556a5057a3705e6d04d541888fdb07b648a8f0ec5d87c86cb08d85e1e7945ec086ad1ee373470271985cd4b5e85612895d1928b SHA512 643fe234bd05fa86b4161d78a6ea901623c459ae0205972fc0fa11db4c07ecc3691552c77e14cf6f02eac9c6fba16656ff40f4027411a54a6cbe205a7c0a5cc3 +DIST genpatches-5.10-105.base.tar.xz 2993776 BLAKE2B 6087b0ca5ea7150567bb23d43f83a02e653e1e1ca068e55951db43b3fbb3cb18b84fdad9c9b5ecfe77938b1192fd3260a6d241e3f840a7b09dd83449a2389ff0 SHA512 c74695b8d4b4c0205c0287840abcfa5a6e06d88cda53898e1f1a4bc67f4c264d5ca6c0c197ef5ae6d6e3627227e276865566d5dbb6a096c4bf21f569fde178a4 +DIST genpatches-5.10-105.extras.tar.xz 3872 BLAKE2B ff451545dc2cadfa871ffa39b689dc2effdecbe09a84338b82231fbc5886ac546c60cb71deeac0391d6e4a783ced9b17d56f79fb72a480e815e1ed1d6e463cc1 SHA512 b041afab67f32b35a68621f8bf34a5656f61aa3143bc75cbb4ea5df3775513afbd3adf312858b7468aee3bdb0587cbdb7eb7a9958cb590864b13ac969ecd6a2b DIST genpatches-5.15-21.base.tar.xz 979868 BLAKE2B 217af3325d15020a43cc661746272b7756aa030d7e4e66d014f68e421b83f20fd6ad16cc036cf676b3719c118d4532b174a9f7b05aad730f22a13803fd621702 SHA512 5946fa7783d48d25b4f350815e645078e1629d3678aab048de1ec5c62066180de8db940b1b0e8db2062838fc2e06820a354278c20f60ec8da71f2ea686255c58 DIST genpatches-5.15-21.extras.tar.xz 3876 BLAKE2B 4c07b166a474bc11502de000f1bb00d8f0c25914a7877b2a94db844c694e0e7a4c757e8a10880eff40438b97214326ba50e716070d79ce1ef7f68c65d876da39 SHA512 384a2111655d8fd78a2f6165e99be0c74b36cf90333a465a4bb4cb6cda5ba32e1d435958987094a2d1407f02df7331ff2bd4fccace4f0a6ebe0c300692598f41 DIST genpatches-5.15-22.base.tar.xz 986832 BLAKE2B 48fcd267e6e28850d226693b902fd66696024e75db6a75bb78ec79c7ac8afdac62643c4113ff205c301024d245f075716e0bf8083f97917dcfc8b1fcd71b674e SHA512 e8c64bd91caedc3dcd98301dbcbd2003b4aceb5a9713bd908a69448eaa2aea945fa8162e57442862b03daa0e1a4e7642e4504701b1f34a6edb127692e582e0e0 @@ -26,6 +28,7 @@ DIST gentoo-kernel-5.10.97-1.amd64.xpak 65601210 BLAKE2B 5d86fc78716607262d595ff DIST gentoo-kernel-5.10.97-1.arm64.xpak 60942589 BLAKE2B 737483d551e4d9ee2deb583d3239d3b3b1d4394ec50ffc78edb32eaad7792c9c46200b597752262558d258d5b974481ac4dc54fe09f9912bc5c44d5945544f84 SHA512 36d8f93a80ecd5d56b582a1948b4d3f4a7e110dec9cff48fde4ff81b496a599725213ecb0e3405601d9c108f3406bab14dcab2a1ac6e6c34ed6dc02a598019fe DIST gentoo-kernel-5.10.97-1.ppc64le.xpak 55697054 BLAKE2B 06ba886ee8932f7a7d4dcc3c1d452633b314a3776e5cead15fe8398e8a6ce4ad4b2f0994a46fc0350ac9878849ceba50dedcbabc936c1a4be4a70ca6415dd813 SHA512 1ce33c16c51ced5a37106b1f3e4a75a7936e03613cdfdc7b8f16f8bc210f5df35ed02754ba27882931b619e3375a8e3bdaf111e587767a8f24b817f77e45dd14 DIST gentoo-kernel-5.10.97-1.x86.xpak 57312301 BLAKE2B ba049f09332100ecb5090c79e8b429513bbca0f599422e18cb012c4fb41964c8349b0db6aa64907453f07b8b1722fbf603a78419305aa282ee956d720a60871b SHA512 915edb7dd918eb2548193974ec43a462f67de93dc859dc6c9d0236f6a2421935b2d9bd20827570c936498d729b98304b8d09488697b3a82de7ddb6504db1fabd +DIST gentoo-kernel-5.10.98-1.arm64.xpak 60933641 BLAKE2B ebed181da9ccc7eb441464fad70dba91b95a4c0714feaaa93c87a444af27f28b13ba8b045bfad375b6f3ae7b4adbf955e619994013b722740ef38237009f2e3e SHA512 b3b3a132e43ddd39fcbdb7e55e9ffef90a371d2e926b3d61a905c2debd6d858326e6db4eeca31e83c56cc76c10a48e646d063e083387c5d9f0491a191d5c4371 DIST gentoo-kernel-5.15.19-1.amd64.xpak 69117444 BLAKE2B d9ad649c62d485451faa472fcbf6f85c50af457e269cefe84d2cedc4419f0cc9582d0f538388b3653e8ea048000e8f606fc18da23ccabce34f178bf534aa5723 SHA512 2e88f25fbd8839a08df0c4c4299f24ae441783a00b2021913345fa4a04bb3888d19c4ee374a8ac6b3cf86b7c0d83a716ee52fbbf9065c168e9e98b63d61cc66e DIST gentoo-kernel-5.15.19-1.arm64.xpak 64076344 BLAKE2B 5778bb6d94f2f92d11c94fc5334e4150442fd52e76a3d4aba89dbfe987a8f9da9300a8e496721a922e6cfa08d5365b78586cd9a41da482bb1cb422e2f5833252 SHA512 d43c6e92a0828b15d780cfb721b52a4c767e896bfe1d8129b7fe7912cb46b14b2c8483b555771f396f6f4942cff7c980e968ee011367b2966876ea01080a4342 DIST gentoo-kernel-5.15.19-1.ppc64le.xpak 57741601 BLAKE2B 8f1c6eddc18d0dd95bbdf81510bb15e6613b68c0e8dcdd8f77348e84a2934daed0a41ac015d6cceb2c102d0a94a57ba2a062c712a1aa69dd02ca379267f0da96 SHA512 c15b3d2feed720bde8f65d6ea58d78499618704b1e222d506eca5ff3c28ab664927ce121de4cb3b82fad862416d1c75f99b929d4f0052bec9cb39f07bfcd35a3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.98.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.98.ebuild new file mode 100644 index 000000000000..097cf7cc304d --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.98.ebuild @@ -0,0 +1,119 @@ +# 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##*.} + 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 + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak + -> ${BINPKG}.arm64.xpak + )" +S=${WORKDIR} + +LICENSE="GPL-2" +KEYWORDS="~arm64" + +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 +} |