diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-05 18:25:43 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-05 18:28:17 +0100 |
commit | 1892777df7ccc112c432100f99e3cdae1690d527 (patch) | |
tree | 14ab8870dadf609cf8cb79b5297022db50f4c30b /sys-kernel | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.15.20 (diff) | |
download | gentoo-1892777df7ccc112c432100f99e3cdae1690d527.tar.gz gentoo-1892777df7ccc112c432100f99e3cdae1690d527.tar.bz2 gentoo-1892777df7ccc112c432100f99e3cdae1690d527.zip |
sys-kernel/gentoo-kernel-bin: Bump to 5.10.97
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.97.ebuild | 131 |
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 7195afeab8d3..02d0f69aee26 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.10-102.base.tar.xz 2961600 BLAKE2B cac29a452129492227feca71107 DIST genpatches-5.10-102.extras.tar.xz 3852 BLAKE2B 771f6f91cc36f7c18ece75ea1b5f5bfd47a304ae60b6c1307164e5b96e3cc22eb987733368047d48193bac0b16ca7be9ddb092d8abbe1ea710614ff1bf31dfbe SHA512 8058f4cd33ab70adaebbf0ef6981950c35e7a3f2451c4e7f81ceda786838150d514661d3ac51764e48747e1db14d5d1c03de64798e2003c600dd28ad6a675e5e DIST genpatches-5.10-103.base.tar.xz 2987764 BLAKE2B fab174b3219d24b39f22dc92943af5cf9397b5c7920c082b295ae26fede80be5b6e77c0f3e9265d4f2b37932fa12d61ecf65511c2959874209e80fbf08af7c1b SHA512 1b68470e55e64c9461a2806580fd1732a1bc75d6ae061975d7b75e47acd487cdde0f045d8bd82012681eebc776d1422bfbf5352fba352668967bb5abfe14ae5b 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.15-18.base.tar.xz 697228 BLAKE2B 01a377a9c1f2709ad2cde18e3094d37ba2414c7c3d949f236d41f5d36e8c4513331c4859740ec34bc8418d6fb2457fbb7d9f7c64f6f596795e1abc9a02c9e340 SHA512 14a652cf64e8e22539a61f14af715fd1a59644875a8a61473b5eb66bcc7b5f4bb34602463b208114bb4dbb73f159932983d48c0567a44b5090b9ff8f52920eaf DIST genpatches-5.15-18.extras.tar.xz 3852 BLAKE2B d3521142bf5ece893429ec7e1b6aec724fff15fbba2f80e9fb092af4d40bc258e034226989d2502ee258faa0c7e0aacd885499d22f4317060d61cd916e00e7fa SHA512 f1a98d3875541ec4b8f3461c1af8a9b37fd4f5a64e7d717e906f851bf4e976e4509df4b8cb67b9e210215cc33924d039599cecc8f4892dcbed510e00f8119df8 DIST genpatches-5.15-19.base.tar.xz 925776 BLAKE2B 040a1cabc9217a91e8bae89ef7878e61056f3eccc97472a27dd2b3c695b2bce59c487ff303048d1f98553349c0b6227d0a3dfa837ccfd6cfd7b1147606b4703f SHA512 b2facd0ba66001ce9327ef2d037097e78e4b9c8e02eb5b66f9ab9bacc6af5800ccfe576ca4383c263c597a67e92b96bb0287140396a602f15fbec403a4173a53 @@ -44,6 +46,10 @@ DIST gentoo-kernel-5.10.96-1.amd64.xpak 65578388 BLAKE2B 611a4439152c65792311c62 DIST gentoo-kernel-5.10.96-1.arm64.xpak 60915455 BLAKE2B 536457d961ee6869fab37503691ddf94cbb0f07db981f6f93e19a02f74f6a07a11916efa0a6900cf575921f8d41fa4764ba6c0119f585a904b628f8d916d1b5f SHA512 0a6c4918e478a985299d4b9ad3e8ac7e97cb70ac9fe0860e21fd69f7617255fc4d4214cd3e2b1a4f8a8e93aaae4e814de9e9e8c4302cdacdd3159b370bbecac8 DIST gentoo-kernel-5.10.96-1.ppc64le.xpak 55706221 BLAKE2B 4088b886b980d08cf5d3baae64bd066ff742227d7bc581838bea59af2c35afaa4372dcdaecabc98e697bea5e0e9710be8b457e7d9600254448745c1a93c0010c SHA512 e4987deffd43a78e8ae85b5940e81ebb980dcb552dd929c59a6d7590ba0da40501aaade88addd774a4e3c1b319dc9b466be996d07e487dc6e653304deaa46dc8 DIST gentoo-kernel-5.10.96-1.x86.xpak 57272091 BLAKE2B 8351732d8e962d58ec37e1031e9de4b50164e6de9f9feb8c463600f11deadf47c574adf0caf53dad36f0fa7ad1c70a7393c42dd8265843a635dae6456f335e0d SHA512 3d417b6a7118fed2ad446bf1b8e1b938e8aa05ef116906c8e30c652a0eb98c0b6c4500b2a0ab3c0966b070b7e460ddba6779ad1aeba0b1e946652ee039a646aa +DIST gentoo-kernel-5.10.97-1.amd64.xpak 65601210 BLAKE2B 5d86fc78716607262d595fff0897b2b884b4d3f5ae0ee2a499a6a9315b4a7f3676ec112511cb253abb1026b59bbb1340134611bd54b2e9470e4f20a4d50c9410 SHA512 1bf050807669bf594dbc04c891996b8bf66750303c8e2d48c21aff262e50d54f6be882b7947d912fd717886c95a598154ffcf5c9e5aba4200aac130fde26b14c +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.15.16-1.amd64.xpak 69106038 BLAKE2B 78623923862279db4eaf1561fac7caf5e880a7a76a7abd636b25143f79ab0a1a84efa41bcddd0b85d080be4537d7dbbf7c7e7cee761b25836adbcba90a18846c SHA512 3251b45a41c696c047414d7eef2a3cb694d79b5de677b273ef32e45d785cb64b31a2418a621f1f2c306a9c7df5dab9278323671a6ec454085d1b63fc5cab0136 DIST gentoo-kernel-5.15.16-1.arm64.xpak 64049610 BLAKE2B 0d1ca4fc9a688627ccfcba8c5df1834e3788c321a46d9beb8e03521f786a2b5d8d9c5a5d53b45cae81b50f12d33cfff023ac1dbbbd0267d67ab0cd0cb37c925d SHA512 ce6b3741a01df1fd724d92a1543f71a09564230ada4b552bb05eb7480123db4406e25898566080ce81122fb64e94cf04fd161f1d04788b73a641cb213cf677c7 DIST gentoo-kernel-5.15.16-1.ppc64le.xpak 57775378 BLAKE2B 54cd093059112ef1f92eb813be1717757fc398e6c5e8b5b1e961c43c4f585aa385eddd339c73dea161b623194e66df915d580576cfb52199356c18db7245bebb SHA512 ecf60dd546c5a1a63b2dc66f4e368a7a5797b193f382024c372af0a53fc6d1dce33e9e79023bc593fdfb9d0ecadf1e48765852b790024f3b0ac01e696d8bbdf3 diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.97.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.97.ebuild new file mode 100644 index 000000000000..75080d99ff99 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.97.ebuild @@ -0,0 +1,131 @@ +# 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 + 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 +} |