commit: 95d1abb1f11965f5f48a49766e8fe729c925f605 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed May 18 14:30:06 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed May 18 14:43:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95d1abb1
sys-kernel/gentoo-kernel-bin: Bump to 5.10.117 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.10.117.ebuild | 135 +++++++++++++++++++++ 2 files changed, 141 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 079c7bf63c7e..0cb1d4ea602c 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-124.base.tar.xz 3428172 BLAKE2B e1393b6b91c0a5ae3cf1ef74ed5 DIST genpatches-5.10-124.extras.tar.xz 3868 BLAKE2B eee2a113c7def23275fedd1125da016cfdd468683ecbaf187f79bbae29ed9d8b1c93d36d93c4e97aa4a8f2735dad29ad4cf75447cd5e5908dc0cf19661a18358 SHA512 83612ba5da23b29037f6fc24949e7ddf9169cf4ff444f2d3110ad7da09780932cf50a763d5bd6bf02e318233f4d245dea835cd25cee954fe77bccef43432dc56 DIST genpatches-5.10-125.base.tar.xz 3432388 BLAKE2B ee59bacf1a5393e048ff955ac339e87e70f4a176ba97afb47cc22f25338893af63b5710e7efc755c47794db36f6c5e1f6c08b6514203d34d40cfc4950c5c2767 SHA512 2105b342869256ff9bec49b567ae252e1349b39e8a818178a7824638b06db569a21b4a39d0626849f6e4dd2a62e1dae4defbc3e642ff3d6200d609010ae301e5 DIST genpatches-5.10-125.extras.tar.xz 3868 BLAKE2B 5d2c0d1197b3387f5c4b90e5e5e2a480e7b762fdb2f58fa3a2732a2c00f55033611868b01915a5a27bee67e83c3a959bcf3f1a943df8ad0cf11b6a3ffad02ae3 SHA512 0607da11b9b0d10f792f71c455b2fb77155af3b4a456668b5750eea96e9464ff83d1d8d0b7a81065101a77ac33b2e37ac3a0a3458261b797c29b3a19ee0dd540 +DIST genpatches-5.10-126.base.tar.xz 3445148 BLAKE2B f21381f177a1c3de8e9be21c3fbf2b5ffd43dd12a7726fbcbec2e259a44e353fe63a98cc29b3e207d67cdf2642aaf142a69f438c395b0e928b13159e8fcc9fa0 SHA512 fce3451abb11c22afc8ab0ccfa6483ef2ba23916e2ebcd3191af775f1286716f90167a0bb835ecc0738d4e8a13326bd0644f46fbff19edbaa9df6c33fa5bafd0 +DIST genpatches-5.10-126.extras.tar.xz 3868 BLAKE2B b08b05b945fef23421cf8a0f18c7b6c23e86edd4717ad80b24f4109d199373477c0bb16cb2a370a540c2d97bc99c1bb4d9feb7a9c964e9e80b9505cf51ae0ab6 SHA512 57e81535f7cbbeba031c03d0bf634035789266d1be7c7254d44a6777e554b5b6b14649c04e2a910ecc16f8e53f122b6bd0c9657cb5c9bb1fca56ab4d73f1f259 DIST genpatches-5.15-41.base.tar.xz 1716640 BLAKE2B d2a37f5bdbb541bad670240ee6fbbe9bbf87d9041e86ff6683c92ba2566b2dc9dafbad7e254146f8ecb23e3ba32e0c0d6f2e5955ea4ea6bbdff4d7b8b74f1e66 SHA512 b9a3557fd641adad0fe875382082a8cb44f7b879d19acc57fefdfe78cc66f8d3d2ec7ca7fcdd125edb56a4915f63922ed2f7e3ff006017bbf6318a6eb0f06ea4 DIST genpatches-5.15-41.extras.tar.xz 3868 BLAKE2B 11487f062c49431af029fadde1f01a95386d42e1349a658bca314bd26d356eb82d0292ca68ac34d4ba4593a25d7422458a7dcf306431dbe46e68c9306bd8ec82 SHA512 3153848739687683f02c65d1dc87b4aa27d0fead27ac9fee28acd2f8d0fdc118473445059bf756650512c5f3fa79b8a4a70882c2ab2d4329c4d7aef982e5e4d6 DIST genpatches-5.15-43.base.tar.xz 1785824 BLAKE2B 435e3a48c6d8b01d71f203e7373ca44b03794f7ec5dcb84cf919b0b0cea0fb06edadc4228b0c53cd71ec6b80f7a0b2040e60a3223dbad0d9fd444e4980528ad5 SHA512 b78e665d7e43f5de92f83e9d464da953aad3136dc35a63cbe1a5f098cc8133162cb5d47a7e9cd323d86f5835194c27daa48a648bef4e6fce29d706e5be33a0c8 @@ -34,6 +36,10 @@ DIST gentoo-kernel-5.10.116-1.amd64.xpak 65806435 BLAKE2B 81baafd6f8136201ddd964 DIST gentoo-kernel-5.10.116-1.arm64.xpak 61055175 BLAKE2B 50aea3a9f4e2c0a37ca94a8268524a3398f62d937facc4929e66428c035be9e2f48292c61ca447c4598b6f67a4ce96d6186188ab28a6303f5e6aa0fbb0ddf40f SHA512 b2495e2ba4cb6070ae5e43a803e8e4f30c4d0227fe941cfce1829884759d308ef13bd80d8b4022f018006921df1a6e9b8340b150a0a1f8c799f978e07fe20a5f DIST gentoo-kernel-5.10.116-1.ppc64le.xpak 55912261 BLAKE2B ccfa1fff8bd27e4ed9f9754abd9b00fe10852b495ea1f34054e80ab6f93680053a22f85ee5aaf34c60afded3d9fc426bdef75ff877aef1f42f2063c3ec92ca69 SHA512 b82496d4dda4005a1e6e851b242d2ac03f389f096f1baa2029fc097c469bdc8089a6ca101f5da1a288249ff8069b90fb5ff6c51f04fcc5d5343da74f29e55f43 DIST gentoo-kernel-5.10.116-1.x86.xpak 57508236 BLAKE2B e5da689cbb605451c8c73479d9252d010ca56d105bc9793415070a8dcc32b4fbb56d048d42027c2557f0a9ca41856f42ed874c85e1b74d5d4a982dd9e4065f89 SHA512 a4954041cb00679cf6e4ba8e825f250559dfd4bafe28b84e646abb9071a58323b3a288709aa71933a78bf79a0dec3d06521ed04708c8016c01667f13eef87bba +DIST gentoo-kernel-5.10.117-1.amd64.xpak 65753983 BLAKE2B 1545c71484a187bc84f8bc14e8d572b614355d5aff1cdd8552575090deccc8e30024ab45c1a0592d34956cec402a527b41963b9bd9645b84a2ba3760b53d44c6 SHA512 536a8d9370eb97e68d1d3f0f632addfa7dcdb48dd8bc2dbd76a00d44f1456343b1a4c9646f4b5733e3583efda04b75f2b19a165c4aeff327b72201101e6ac618 +DIST gentoo-kernel-5.10.117-1.arm64.xpak 61048114 BLAKE2B 08e37c8b83d635b1ae888545a461ea594e2c3dddb41749b6c5a95712908900a09ba882ed6fd4c506cbffe144d14b8aad31f8e3875fd425cac28bc82b55548cac SHA512 a5b3f6fd37d3ae286fb352b125589c56dd2cc32eb92c8e4898189a717fad72725c625ae8eaf17c256fe1bfcce2243687c71f65eb5504853045be4486980cb00f +DIST gentoo-kernel-5.10.117-1.ppc64le.xpak 55790781 BLAKE2B 6ca8b20f665b9d459524ac468fdde6f270d51c0148765d4adf194529323254e3813a9914bed797e6c4e33f110682f9a65bb3eb353dc391e4d8b23c49c71858a1 SHA512 db9e26a582bb14611b19aa867cfbbfe974df076107a11833e72a9c2c4ad6e3fe33c32d5b4d26c823a1ff4fe42382c5b4e0f139341b6d3fc030d048d8cdd39c8c +DIST gentoo-kernel-5.10.117-1.x86.xpak 57398780 BLAKE2B 68ae90f9354cc4e4c3aab93a9df55b2abfc239cd8fce4f345584b2784e57d8d1fa43560eb6f4e25fc7c51750dc3eff5f7a4e95cc974f8bbf01d15ee3f7d9892a SHA512 a2c1610acbb1346cb69bac9119400f8d45a1d84b5c12c68134bb5277fc67f9a100ba6e45ddf8a28335a9177f6141120c57a9e3d409adf9f3b3260c3ca18ee291 DIST gentoo-kernel-5.15.37-1.amd64.xpak 69301827 BLAKE2B c329019b0ac8a4d9630863931149d7a68388fa0292ff4a6ad774edd59db0f404e5b4fa20ff6142ed18a12843e81a1d3be1ba3be8b5c7cc5594f6d4c9594ff992 SHA512 56f7bdbf71ee84c3ee937b6b6d5e1f2dcb8d38329f33deb9c57663e7853d7a0d27c97c67a3a32355cc640925a980fd442fcf59e3268c7e5ce98e401e698ad42c DIST gentoo-kernel-5.15.37-1.arm64.xpak 64205021 BLAKE2B 8f2e9392108ffbd9e792901b0c038af2cd538fac50de145b065d0623664980b811b0f52918c1fc6188cd5e00c26d19fa68a1ae8a12f0ecb2aba475f61862ac08 SHA512 d7dcbcee057a5f482e1b7f8894b5ee822464c507c5445b4d55a49224f4119b9c7b66d9a065b934fc5ce22a8bbc998219d1e8aaa29bfddfd5f530548629357448 DIST gentoo-kernel-5.15.37-1.ppc64le.xpak 57946205 BLAKE2B e82c51fed277b1296cebb6a42f938178edfaf212e861dc40b8d1371648abb74fd3cf667461eee1484db4357dda3e42539cd27069dc21c5b02bead6fb50945c99 SHA512 4c93455e2526e5258800965f3338f13fac1d72fdccee19a714c05242358cc07d24d256c340961540a80814be0f2667359d53765cb358ee741d81229370defac5 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.117.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.117.ebuild new file mode 100644 index 000000000000..da84e07f808e --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.117.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##*.} + 9 )) +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/~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 +}