commit: b8de14530528db74599b2b492f998139b644d0c3 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Jan 24 15:16:10 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Jan 24 15:30:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8de1453
sys-kernel/gentoo-kernel-bin: Bump to 5.10.165 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel-bin/Manifest | 6 + .../gentoo-kernel-bin-5.10.165.ebuild | 127 +++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 79fd28be33f4..d5cf3eccbb0e 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -2,6 +2,8 @@ DIST genpatches-5.10-172.base.tar.xz 4831748 BLAKE2B 46acfe58044df90c98057fc2590 DIST genpatches-5.10-172.extras.tar.xz 3868 BLAKE2B 32ee2c036c224c800ce53fa94d8f6676c70023bb733cef143355ed5907a4815cb252bc43d1660bedd841dffc814c15a9016d8c0d43b80ece58c9f4bf77c472eb SHA512 10372d1ab1d8bd73dc1c7412498cfb5ce91dc74d5e40c6497aeac24fb71d9c007d03cdbe58b2b7d6304af11816a4981cfc4bdefcd39da19009cb2f0bef9ba5ea DIST genpatches-5.10-173.base.tar.xz 4855856 BLAKE2B 12e85119807c228eecd2101a94430915ba9c1a3bd2163cffc821b899709a474643096eebb1f9b0d8b926d11d022e45164f8df4d1f45c5cc43cb2cab5801082c7 SHA512 8f1e1d8bb5c33f19737cfac49710707c10347ffe567c5c7939eebd384f7e37cf8bddcd0bab331fdd6f25ef6be02787acdda86193339d689aad32fe80f4aac519 DIST genpatches-5.10-173.extras.tar.xz 3868 BLAKE2B e407ab499bdb66025b6a970de3866c2dc6f7c275757a0a11c48c598780d195f85a65c9557b3a4e44533d8731bd34450e6701cf5590b975816d435223097dc4df SHA512 f8465734661ef15423b6f1de05e47df8ba9cf8a00eb1dd805b30e87b98fd51cd067db15a54b681827d94982f02a2fef641998b8529a9b59435d8bf49e6af44b9 +DIST genpatches-5.10-174.base.tar.xz 4872732 BLAKE2B 7198a28cd63f3a68899f39cdb8aabcd03dd7a5b6eec14d03135a18c04dc1412064544b6f20b62c19f6c86a247fba0ed64630c4718cd725015243272412c71ed4 SHA512 bbf400aaad4b3e817d530a5d732d9e601d92e4058359f48c6f522fa266026e20554610673c513b5d9d895f158146ea2b046517e26ac872d39c6975e7c1e57bb5 +DIST genpatches-5.10-174.extras.tar.xz 3868 BLAKE2B 8a54440259b9dc9fbf8e7bf61c2193829e1c916e029b3a9fca7678698e17b4a71aca2fd3615e5f8f6466530f41cb0e6f09aea9d062b5c8d027aaf2deb6d7d51e SHA512 db3d0513ac2b249d44eb0b69710643ae7c2edaf0f6161347d827f90e7f4f7946bd7307c1857aa813359c17902da72d586666231deb210becf040df644029d3ff DIST genpatches-5.15-92.base.tar.xz 3843196 BLAKE2B 1a70c672f4ceda221611ba1bad20fc4e791a51e27f412995308cb7f39962c6e237efc1bb7912c67b8e3dabaffce3bb6ceb55d62f4f12b79671910b70c1e7a8dd SHA512 33390b3e24783405971f2eacb24e715faf841a66e477a03d4055d61694fa72694d7563d799b95d47037ad0d7e7c234e56c894ddd7cd1dba59077efb901bbba26 DIST genpatches-5.15-92.extras.tar.xz 3932 BLAKE2B 12936d0ac139d69f2e5947436ffd34add80625aa383aa23e51b4419a5e2ad3c38ace4d69c9e7066bfeae32ab727013e602c3a1c3424e128562597c517c7e5903 SHA512 6595eca7525db97672a15275228dbb9b14e7e234514b549e0fc17daeda4b48d298f6dbcde46e5862fe02bac9f50ffd7b05d82a174541469456289bdc6eb7f4b1 DIST genpatches-5.15-93.base.tar.xz 3874100 BLAKE2B 3f9bd1a90de22824db823bead22ae777ebea551ebd183184ecd039f33def8db603694acbe3757352cff228eb2a28a8c31d362f2185b32f88edd19c4de6eedad1 SHA512 1d5c83f5f44ccee701755dc7732f80baa00e5b3f4137c9da8d81cd7fad0055df6b09dddb1cdd6287db6a43cd1b673aef3a543086138af72cad5218d2fef31860 @@ -24,6 +26,10 @@ DIST gentoo-kernel-5.10.164-1.amd64.gpkg.tar 66549760 BLAKE2B 91c42844ebd9d68fe1 DIST gentoo-kernel-5.10.164-1.arm64.gpkg.tar 59422720 BLAKE2B 2957257c042518169a6c4f2365e13b5873692413100f8b9c9f81cad5609ee5c64da487f8fd3a6e8f9d3a15ee76a2004ce085446b7053997a461c2b8ae8a50c74 SHA512 b2c2934d8d65651ac28efaa447a9a4d5d82df461044a1a42398eedeec84d426ab4dc8b4ef2ddc6b2c7b6f7046e013f8ff580c72c416d61ee8fb436f77e4f0a63 DIST gentoo-kernel-5.10.164-1.ppc64le.gpkg.tar 55050240 BLAKE2B 3cd96b8ef192b836a36ee0322a73ec180a501db8c3ec8a4a7a482da276bfafd9de9581eab940dbc4181b73e576b1e53917fa48c4a91efdfbcf113492e8a84353 SHA512 5522fd934cdbf51c9f076af8de13eb113cde6cdad715c00511150f0d0f1b6e034d73990c8810ba87f1e2c73aba5a48232b9ca2a47763133a5d678a70e6bd2563 DIST gentoo-kernel-5.10.164-1.x86.gpkg.tar 56473600 BLAKE2B 91990265c7e4bb433201bcb919684e3b556e906e014a0ee927921ed6d70f08d730a2d93ebcad2baa5e1e72f345c980303ca0fb272cbe54d09bdde00795ac5928 SHA512 f292eef3f4b6f9132c2a80cde5bcaae15236511766966c9c8fbd7d4ebb7676a3ff78e52a2dd185f8e5b8fab2e9c4b1afb5af6744ec1d637b963a023e4b839253 +DIST gentoo-kernel-5.10.165-1.amd64.gpkg.tar 66457600 BLAKE2B 80499005ebb3b535ee46b0cb38cebc3cbc059f560f8ff4dcfb18a2ae8a6215b1fd1f4aa82f5a00ae2a79ab9927a259e098cd01d113a9433ad39d593af4f6afd8 SHA512 f8446e7e6a7e62c5114259175b1d504d9d43c5fa606dc1ede2ca0b6a4bca8c13fac96f5683ea90f8cf327d92fc5bb75f3e10c7aba089c369db778e0e401aee76 +DIST gentoo-kernel-5.10.165-1.arm64.gpkg.tar 59422720 BLAKE2B 1ba723eab46564964a9952406bdc12d80bf9e4298d4f6579c96945a9a989ea6b683458392ca05f9d72bd0760559166a22acfbfd02a8da4b0f7247710cfb9f4f5 SHA512 641dd01be4d6dcaceef1f753109e6ac483ef39399c44de50cfb65e3e85e638076f6737524c4201270d3b799d8ecb150ecc460a9145c3ddc320f60ce765916707 +DIST gentoo-kernel-5.10.165-1.ppc64le.gpkg.tar 55050240 BLAKE2B 62c05c138c44d040a0f4f4bfe5536b051481402af272d113d054cc49c5c951c397a8625347d10855b8aeadf1445c4b414653d1b27a45d8aa9080b0a483073b13 SHA512 70f316b6d0e0d2bd2f658d95a2297f6aa76a6d4ed2d479156401d0c33f5eff9cf6772564cc1598f6b68588db77a14edd07275e47ef05818358aaa6e784b9b59b +DIST gentoo-kernel-5.10.165-1.x86.gpkg.tar 56442880 BLAKE2B 6dbaef92ff3387417c1816470715fc218681b71bdb541ba15f9bc2bccf10b9785a37956b7ee823529a59c17db09bdceb10729dbc0882ab730292583b4e7b2c68 SHA512 9bf57574b14e7ce9fa8e593dad09e6b04bcd50409e5236c43c5d4209e14ca796aeeeb21211d7d310053004a92f1aa0abb05444af9199b7fd135bce6b1e967072 DIST gentoo-kernel-5.15.88-1.amd64.gpkg.tar 69826560 BLAKE2B 9c32c9a590770f2b15e67e62066265cbbf82d09ce9daef7af5522be320eb98eb13714425f842c6de038fee83f7a2166c2113c77acfb6044c201b39e26d36f1e4 SHA512 9143d0393203eb00249916b84b0699aadbd8af5dd5e4376ce251ef77a1018ab647ccd7a370e2724b6b2f72d077ba9fc3f2000ecc8518295e975cfc8f464d9df2 DIST gentoo-kernel-5.15.88-1.arm64.gpkg.tar 62904320 BLAKE2B 8edaa87b1d574787913d9f0e935d3f79505aaa507069ba8bfdf4acd894582adecacbbd429554e02c569aeef975eabeb3285f9cabb1e9ca5aea4d32487a5f298a SHA512 6f41644cbc0442f39d79c54aef05d64fed2da2f8dff1f906cd109470a7c12d2b67732fb5b68959e3393db99972185fdb960dfc22c153992da3632ed2bf9f382e DIST gentoo-kernel-5.15.88-1.ppc64le.gpkg.tar 57251840 BLAKE2B 361eb1433ee75820bdd85ed39960681b091c42d7cc7004540e4a6f60e8636569463e18d9de785f98d4015463f24dd58b1da368ad97a431e9fc5f13e9d2a98194 SHA512 c9ebe0f7a184a7fba4bc8532e7b66ad652b2cf9f1754d6267c9534673a62940c8adefbd50184655920a6518634bee9b97f1ae3037b39862ada64344ef62f090d diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.165.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.165.ebuild new file mode 100644 index 000000000000..140d99c64a55 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.165.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##*.} + 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}.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 +}