commit: 782683d80f10c1d0755e60f0b2338fde0794b48a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Jan 24 15:16:24 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Jan 24 15:30:57 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=782683d8
sys-kernel/gentoo-kernel-bin: Bump to 6.1.8 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-6.1.8.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 51dabc213fde..2d4c5c543070 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -16,6 +16,8 @@ DIST genpatches-5.4-234.base.tar.xz 5429360 BLAKE2B 48e1199775c5174a4e25f9611f41 DIST genpatches-5.4-234.extras.tar.xz 1812 BLAKE2B 7f95873ce78883b4bb1e4d7769688565c5b5574e86417a8f11d822fe5d971f7e0948a08e83af6a35c0cd8d52cdd5fbfb5fa3abf03c233fa3711b3fdf19fa3dda SHA512 2e49f3f75089ed6ff55c007529218b5b68712e64785cb06dcd5b0f1276a3fe3b6a2ebe2f807b586f954698bfd2c73554a462ee592e89b234e6d25c614ecfcf49 DIST genpatches-5.4-235.base.tar.xz 5437324 BLAKE2B 16a5f67224b3bc10792945ef379825c96a2e97faa48444b047da90e36a341b1b04930e64b8e4bd457d3ab9ef842aec1e2334dee273c4279f72eb6745b2dc4b83 SHA512 461ecc356eaeca967112e69d8cbadbe8d84ede7b2a3d199ba11620f9b405d5fa0506c133d15599713b74b3b5bcb000f7cca27351b8ad628c81ceae64d339d385 DIST genpatches-5.4-235.extras.tar.xz 1812 BLAKE2B bc1b83082a60463da80236c4eb42590981905e35f653ab2976c9f31f4879446f65d0f123f11e45bd583fc0ef788898f38a6534e66d1a028716954020427736f4 SHA512 515331c1ce6d7ce76f946ab6b8443afdf47f829bdf8e486ca733854d5c984c0c99a36611cc82418b0155f9ce1276b702affec04b65c4699cd4bf796d3ef6a7d9 +DIST genpatches-6.1-10.base.tar.xz 591388 BLAKE2B 5352d923a1df59c38cd1061ea9454041143a9786e4c81c195edb0e50ae9490f9629f2806482246c417db294a2ad9b643c9a6b38403c46c1b135c73a94506e6f2 SHA512 5ed3ea65e2ad63f4d59241b8e11f4de068564e5079c7fd6d511e9636867843e517b662f744577b615cbd572fa7313af260fb07c5c4e39e0cd114e4f315d3d777 +DIST genpatches-6.1-10.extras.tar.xz 3804 BLAKE2B 2a713dcd63d5946368d0bf88fee904b05f3fceac266173aa3016c528cfb40eff98f7aeaca2fd67e52a02a39b80b430fd55c8abd65ff5e61dbb6e6cd6ee757282 SHA512 152c134efcd7ceeb233bd7d9211a871d6b4f633e4782ac73657d583e4f149763e37ad7cf0f19efbf1c4c25fc50f3c67167b15f024eabfcfcb016b1cb23c36ae0 DIST genpatches-6.1-8.base.tar.xz 477364 BLAKE2B 29fa8d45feed6333883e1f4733ace6ed52b5424aeeada3e71917a0e3d85f87a7b99f0863ff468e678ee5631c6e0f0dd7c3a0115a58d80512ac1a27d58a2df149 SHA512 d1f32215ced0ed39cc1c6d224b1a12ae3f80bcc19f1ea23189e853367ebc661c74d17d335bd615c2fc1f3c21271f6f170a35caa38194b2dfd09f78e405739ae0 DIST genpatches-6.1-8.extras.tar.xz 3808 BLAKE2B af83b01895f1b3af4c0220a89b0dabc3642e578920475402c02dbe0300c520dbc621a2245eb66842addac48565c8b612198138c49491dca7909d594a9d2ef818 SHA512 22f9378bc7b4413d60672656c2e73bfbcc6debd10179a0eb2b523bceb5f3adeacecbd433ede3aa057143163a9cc2971d5023d73ac8187eaad59508dd229feba7 DIST genpatches-6.1-9.base.tar.xz 544936 BLAKE2B 9152c33c4145f99daff4f436afcb621883d21fb05be5821a045b47be2880250d3ccf1210f3ecec0241ac41f57581da737053b86852760cd11efc524719fd0f6b SHA512 88b6bd131dfe53a51a9a0dab13ef2bfaa4818d4b0ab93e485346f96fe58a64b7338d9aa4483c751d9d1886818ee8700918721037b03f868a3b2cd9d5ecdd7799 @@ -64,6 +66,10 @@ DIST gentoo-kernel-6.1.7-1.amd64.gpkg.tar 76738560 BLAKE2B d7a4b75443ba3c93ca390 DIST gentoo-kernel-6.1.7-1.arm64.gpkg.tar 69324800 BLAKE2B 56bcfa90284dba80f6a3680c84d0eaf7435e9df7aee6aec742f5da8451c815c1c4ecc129806b242be7890433cc6ed13fd43376d75e20f04b983c881347d895b0 SHA512 86896c3f753e95fb85f79ff9889c03130e159d45aab0d2b07493ed72fc3cd128d5cdcb09523213e34088ffe15acb04519ec14fe8860825197deae6af13764927 DIST gentoo-kernel-6.1.7-1.ppc64le.gpkg.tar 62730240 BLAKE2B bb32818d7444c4deae906c20ecb1dd07fffbd87b1f4cb3a4a91fedd0b092ee0f1ef8abab7699de8ac7ac4a9d95ab3f2cccd5cbfe09d2cfd96270d57120e4c12b SHA512 5e51cda5c7c9955cc686db2c698d4e2d02721c8c6f3b5c4310e6956d826397885bd0dde817fdc29c8fa0971105cb8fbe04c0746dda9dc28c68e20b5a340d85d4 DIST gentoo-kernel-6.1.7-1.x86.gpkg.tar 65976320 BLAKE2B e55d1acd0eca8133df63cac4b0bb5da24b9d2ed5de642197a830289f8158c464663003d6a98c4da40063af422ac23b3cf328ac29835865b663d8ffdfaa696f56 SHA512 2bca652e54f6ed44ecebc896ab5e05f325187b3cdd796be08c41e3b7f8b36450039bb9d67e0dc41015a8ec4b244e19ea6ffa660ac1a59cea31b93abda8b53e67 +DIST gentoo-kernel-6.1.8-1.amd64.gpkg.tar 76718080 BLAKE2B 713e821d591d8cc2fe31415a8bef1e877d3b7ccd813cac943308be35dbf27a618521328383cc63e848fb785ec1799807b915e66575c1098a2447b9178dc60c21 SHA512 c853df469ed48ffd6afe82ae3d0fc9fa9499c1cf481efb1167f6ba3818fe82e3b2cd41e6cd7159e76f942492a7bab0c91e761263397d311691cc7eebb0a83889 +DIST gentoo-kernel-6.1.8-1.arm64.gpkg.tar 69416960 BLAKE2B ca6850fdec6fad8721dbb452e526873afb71f3fcdb8aa5806ab893b7c3b1b1a7bef0e3316f0b78d93d1e5824c84280fd8d66e815853cee4f9c3b775c57b6e1cb SHA512 00f265f601e687ba3575ed55bb01a146ac68d1828b98636644cd23bb78f21d969112ace0194d62aeb518aad505eb7b4a7f6674d1ccc6549a58f3a11c8ff5b780 +DIST gentoo-kernel-6.1.8-1.ppc64le.gpkg.tar 62730240 BLAKE2B ad80f22360c5d40f9d880e20317957e868928f46fd8c0f3370b96523947fb4db7382b5e252ab3ac32e4e3284fdb114a0a2591d69b756ddf2da478b7c428345e4 SHA512 f9bda97985408478b632b934b10f5ab1c770a0fe62a46fd18b3969a9266091d2b5883e0efbd08da58d1046aa26d0a6f6b1dc800516eb77fc1114f4f6419c964b +DIST gentoo-kernel-6.1.8-1.x86.gpkg.tar 65945600 BLAKE2B cbc615a39aa48fcf60cb9f424c5d842dd1123d53884f064ca49e5ae3f6034797a17adeada0b544924843d7aff20fff09dee7fb44629b8a13190fb0c2d7252503 SHA512 f9e554ecacb469d41bba1d6f19be5f18b44f3a5b6bb836e5a8b30343d4771a4b08b6320bf31ff6378d838480034cbcd1d012da87e007864f5d50c3c98a1e5a5a DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.8.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.8.ebuild new file mode 100644 index 000000000000..b4281d75894e --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.1.8.ebuild @@ -0,0 +1,127 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-install toolchain-funcs unpacker + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +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}.gpkg.tar + -> ${BINPKG}.amd64.gpkg.tar + ) + arm64? ( + https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.arm64.gpkg.tar + ) + ppc64? ( + https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.ppc64le.gpkg.tar + ) + x86? ( + https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar + -> ${BINPKG}.x86.gpkg.tar + ) +" +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 + app-alternatives/yacc +" + +QA_PREBUILT='*' + +KV_LOCALVERSION='-gentoo-dist' +KPV=${PV}${KV_LOCALVERSION} + +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 "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die + emake -C "${MY_P}" "${makeargs[@]}" modules_prepare +} + +src_test() { + kernel-install_test "${KPV}" \ + "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \ + "${BINPKG}/image/lib/modules/${KPV}" +} + +src_install() { + mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die + + # FIXME: requires proper mount-boot + if [[ -d ${BINPKG}/image/boot/dtbs ]]; then + mv "${BINPKG}"/image/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 +}