diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-07-25 14:26:08 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-07-25 14:27:12 +0200 |
commit | 906d019b73ba7c374c7640d300b4892a5fca4293 (patch) | |
tree | 4d77cdfe2fd0980b732cde655dda05a60cf41b23 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.10.133 (diff) | |
download | gentoo-906d019b73ba7c374c7640d300b4892a5fca4293.tar.gz gentoo-906d019b73ba7c374c7640d300b4892a5fca4293.tar.bz2 gentoo-906d019b73ba7c374c7640d300b4892a5fca4293.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.133
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 6 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.133.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 2dfd8b93f886..d3fc35b55bff 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -8,6 +8,8 @@ DIST genpatches-5.10-140.base.tar.xz 3775232 BLAKE2B 1ea0b94e5acece92add1bfa728f DIST genpatches-5.10-140.extras.tar.xz 3868 BLAKE2B c5f78c7a2c3eb68695c6e2b0810addf286c66f94f53d1953efce2f12e69b04c4b0a43932d5114dec915342594750f0c40ad74a277f198c91c6ba6e5e5c1a6544 SHA512 98af36f68c8eff7432b4969d06c0a2a0d1ea00a18d18b0dc86f360d69bba2ecb08bf59eddde1534341cfe0a5e0de09fdacfae3816d7df1f431b70fe871eea8f6 DIST genpatches-5.10-141.base.tar.xz 3795548 BLAKE2B 42dcff42a0c56c0a16028e289c134d60b1d16c86468e2d3012a020ffdcff9ab93fc64898390cf224fa335d34e33c15526b21b6a36f756afa32e3399b540f133c SHA512 f9203a6fa905e6d79e1263df70a68cdb9541d2313dd7576eec54ba46f24d0d791639ea7d5b25fadd0d13b63b25ea499270fe84c694ec556ecf9a5e37919f8026 DIST genpatches-5.10-141.extras.tar.xz 3868 BLAKE2B 2f2dc5299a10634e3c011457d1c40c70a8e6ffd64b38e4567193b5be25f66a8687b2fd850192adca24b938b003fe0569c8519eb6e36b557f58b775bf542d311b SHA512 a93b152ecf75984ecf0d0b56e73c19aa11df09a4b27042255c6ce771dabecffc2e3504e394478be6738cd70912f626120bde430af65acd77f17464d2e0b8fb6a +DIST genpatches-5.10-142.base.tar.xz 3863448 BLAKE2B de45611ba9c92f59829a61b84ad0461535ca68fc5efa2418417bd1fe7e1ac643e2b65e0b467414eea90fd034445219c13782b1c99136367247420502289f7523 SHA512 63b835f0006f0e2ec97432cab93f21f47a7a36098f5699305d6ca2d01d2419fe6ac6588e68210d1332b4e1dad8a6fc74ad95034c8be1524601e4c30b447a3634 +DIST genpatches-5.10-142.extras.tar.xz 3868 BLAKE2B fdff4c1e3ac6b09322168d92469bc5220dded731e05250100df2b5a94d90b2c5bd7612e6c32574ae1c67cd59e6f73d348b3f56bb9027ed1ba11427975796f1e4 SHA512 227bba85de2bf1eba0b0c3d4f314ca0f2f5c3c475ba78e5a82fbb3a682fd37bcef80ef1a91f1ee3747bd2a8c639d2f791110ac72c5406243dd2f54c87d846dd4 DIST genpatches-5.15-56.base.tar.xz 2245780 BLAKE2B 0f5e5d7c8a29f590598f4721307e3b1a316342cc31b8e5ab5496ed58b65470d19bed59ff40cf7b26bd4970eee04581ee8ac544eebe63c54063c161a55c828cea SHA512 0a1c4edd8f863f2c77a14cf48d79c35868ba8b2f02fb2436e1913e97c8285046ecbedc33e6faddf02a0c813e677492be0fc972e3731c733e488006602eb6119f DIST genpatches-5.15-56.extras.tar.xz 3932 BLAKE2B 2b167a35d9dfe16a18b22318ac4597147fb25bef53a66108c2f2e4d6e6d3df1c9d4b1fd6d63ba4a8078f94f8cd69d14b359123355ba266ef72b44f7d9addca9b SHA512 ce91556981720f3718921993eb15f5af623cad8dc40a36bec6cbb0d52153fd1288bf97927daab1b1e3ccd1451d4295b109ead0160c657a00c62c2d6f25fbc09f DIST genpatches-5.15-57.base.tar.xz 2275504 BLAKE2B 23dad9d2e9dfc1f77f6e39f8d9e68a6e3168d581136d50d53b3503278bb5e4abfc25e2f9fdab63eeed674e370bee8ae7cc5c54058f6942abaa4eeac49258d765 SHA512 b675437c320b28f4b4ee979fff5c32ea607fd795b090206b49d66fdb95fc2ca1b959fffd33b9e5241a160c2f19902efc8218f2c39eaaa312a5b4149282e08b99 @@ -62,6 +64,10 @@ DIST gentoo-kernel-5.10.132-1.amd64.xpak 65720757 BLAKE2B 8f8830e38f5069364fa9b6 DIST gentoo-kernel-5.10.132-1.arm64.xpak 60975546 BLAKE2B 326afe0051c1baa6cecad2a31e4573cf2b766c9e35ffa06362fec5805a8930e29ae98ed671fa2675d9df0a5db4ae78759209b7fe92cce2bbb44cf355b2df7289 SHA512 c0174ca3880881ec34c94640aa93d574cb424c1e9917071c5c9fea29700e088ea291ea4fbaef8b3734563cb1ae635dd8e31d2ec396a4ecb4c9e2fef328505cb0 DIST gentoo-kernel-5.10.132-1.ppc64le.xpak 55945551 BLAKE2B ade557e831b4ad70a61655266804bb3da06c885f11fa61c77662564f8e3228df5877d7931f625b94bb3953ad4a68ac0714aeeda8b47d16e39c4071b3f1dfa061 SHA512 a0fc484db55bd1a91ea55f39fed363847f8d954b5bf1e4c3d2b6d272a72fe2151dc9ff42bd415b887ad9818f80516d9dc50a851f1de443ca8817a978fabbe0f5 DIST gentoo-kernel-5.10.132-1.x86.xpak 57460765 BLAKE2B 37564772de08a9da8aeb15e4a876da003e01874f6e5ae54d576fff50768ecdd892354ef509e6bc62021fc6c524d04a79183e79396430cc69d16533b2b66957f3 SHA512 bcf8686821b8d2d48042aabc9b8e2367b937077edc718322f4bea3801a4d9f02264b5361dcb006da0b15308d7229b5819619eec4bfbfd5a84840a40c6c1bdd3c +DIST gentoo-kernel-5.10.133-1.amd64.xpak 67472562 BLAKE2B 517890cf35c985ca51c3fbd57009d23bfb1d8a39531644b9570ca8ba7f5dfc60d7f330aee891376ceae7d96d5ac5bb9893270cb24f0b07c8f29176ac7da3a12e SHA512 9196dd11e15db8c7c01ef008e86f01082fd2a619ffb75b9ac1174103f350cb40c170d510d4c211ab6ef26208947e9644aad27b4b8532ee088a9244a65638a69b +DIST gentoo-kernel-5.10.133-1.arm64.xpak 60986275 BLAKE2B 41ba30bcef9eb7666bb6413dabbf1f82976073200a29709d0aeb5852e061ca7bd8b5fc352bd9fdf3dd7f773473481d24356b3f07a6e20b02d96de31f19e5d858 SHA512 6e3331dd667a9b0c405275a8fa35c92aadede045ea7894267e1c8f0233b58643698a71bd32dedbc2871f810058854b4686279defe54c1381a86fd38ad31fa9d5 +DIST gentoo-kernel-5.10.133-1.ppc64le.xpak 55990983 BLAKE2B 4c2f91a461b354a6eb3d6a47493d69c2bf60ce983f35448916093674fd1a3b62901a144928d4e3506a257ef8053c0df568d7d461c71c370cde28a7733995648d SHA512 1d4f37eaa6a228774208c95e02c55209038a8793bb38a2ae5f8dd2e414900925c7385a62b507b318ea64eef6a0019dc1d5c304281b7b7e2244424ac1f3df1476 +DIST gentoo-kernel-5.10.133-1.x86.xpak 58252930 BLAKE2B 769ce7d93a31071b5d1fa6e7f801412224db34afb31d68e8b5de6759bed29887bffd8e97c917d3c2edee2ecb94a8bdee4af23dea980f6a61347e68f10c20f8d4 SHA512 58fcb6355d026d361fb52afc4687aeab31cdf78b91bec315e48d0778e4ed0a1fe9347dd111cf85ab5847ee6d68a20bde5cf4b70e5340741b25ecf68cb3288deb DIST gentoo-kernel-5.15.52-1.amd64.xpak 69378739 BLAKE2B 410ce229e5392547374c5554ae09447869e7101aa4b71d95fe2fee95e4637e529c43c784d35d6e1297d1d8b0a6747f14e977480f907154b1d23ee3f571e4a9d5 SHA512 cf8c27e0ba2d7feeeb20c90f3247ea6334775bff8560c385924b7949d8f34da33d53b35d75b5978515882caea0151a30bbc43c6130320221332103ddddf4e4e7 DIST gentoo-kernel-5.15.52-1.arm64.xpak 64180081 BLAKE2B f0c4f0991e106bd70b81962b3ef2b2e4fb2bce26f80f5cfe3563c2277bb87236e7d4a2eb7685f0cfe4f7400f0e541cc8b86b7d722d5d72e8ee9afad031b36a9c SHA512 a2bc5409f92f7665350f44307c310b03beb0a2928e390d01408708b12802a9833ad7a732874d71114cb50640b31c633ba8a0de030e6ebe205f2f0bd707ad4c90 DIST gentoo-kernel-5.15.52-1.ppc64le.xpak 58183126 BLAKE2B 8fbc979f03617ee0146fd891662d244f109976c2fa142364e6ee48095072c442be2c4f46e859209fe688c6def9f7829884c1ba0db654befc4bc4f78c06771f9d SHA512 7038984aa9d4f556cdf322476b29b61ce497017291789eaf99d8b2f03d95d9c3e0899608dcc93053524f2a9415297ea89c4c6738b6add722eba8e25c375e3893 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.133.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.133.ebuild new file mode 100644 index 000000000000..210ecb4f4f8a --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.133.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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz + https://dev.gentoo.org/~alicef/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 +} |