From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 817701581EE for ; Thu, 10 Apr 2025 18:05:07 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 6EAE63436C6 for ; Thu, 10 Apr 2025 18:05:07 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id D7BD01104C2; Thu, 10 Apr 2025 18:04:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C6B811104C2 for ; Thu, 10 Apr 2025 18:04:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 77AB43436A4 for ; Thu, 10 Apr 2025 18:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE9482848 for ; Thu, 10 Apr 2025 18:04:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1744308267.1a6cd2b9de9723700a15a9f5db95e21d3963e7de.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/gentoo-kernel/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/gentoo-kernel/Manifest sys-kernel/gentoo-kernel/gentoo-kernel-6.13.11.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1a6cd2b9de9723700a15a9f5db95e21d3963e7de X-VCS-Branch: master Date: Thu, 10 Apr 2025 18:04:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3521f064-54df-470d-8669-2f2829928a1a X-Archives-Hash: 9c216dc9efa28ae757900e3f72f21b3a commit: 1a6cd2b9de9723700a15a9f5db95e21d3963e7de Author: Michał Górny gentoo org> AuthorDate: Thu Apr 10 13:58:02 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Apr 10 18:04:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6cd2b9 sys-kernel/gentoo-kernel: Bump to 6.13.11 Signed-off-by: Michał Górny gentoo.org> sys-kernel/gentoo-kernel/Manifest | 3 + .../gentoo-kernel/gentoo-kernel-6.13.11.ebuild | 151 +++++++++++++++++++++ 2 files changed, 154 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index d8566fea4d92..be6360e5fbae 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -31,6 +31,9 @@ DIST genpatches-6.13-11.extras.tar.xz 4052 BLAKE2B a40b3c65ed30aa17797727e8df0ef DIST genpatches-6.13-12.base.tar.xz 703484 BLAKE2B 5b00c4e4f5791de684731bee535312f42c9f7a0ffb57c25c262025542b5380e6c55877526ac71c5d1293831d69f84a74a65c8df47eedfc14b91f166b51d0ddb7 SHA512 cca66b71c217cee7b2723a63e2085fa5e041ed8a226e9563704016e37fb46221a941cea22581652bdeab2333ebe74e6858232283e3071240a9587eb86adc7e1a DIST genpatches-6.13-12.experimental.tar.xz 79160 BLAKE2B 27f6a2ef58a5bdb8c95f2ae71cf9ff55f9d069e4f05c2b572f7854acfa9b23037b86c245adde7d61681ab0dd99b49938c9ef868da063c10318c0026e08cafba9 SHA512 6fb958cc848f6cb06d09656b52f8df801d1ba4f7ee96ff270e3247489e74fdef6b2578b18449ec0aa61cb16deed35ee7de5fd395081caa2bb16776a63e27fec6 DIST genpatches-6.13-12.extras.tar.xz 4056 BLAKE2B 1141e92da31d5a7de405fa789b73a50bcf5c00f4c07a5543ba17171e874373cf50013095dd53ab7b6282240b7291fb62967114020bdb0c2fd6102c93ac37c0ef SHA512 5facffe5dc9b97ac807acf7569a3c0cd2099112bac593fb0d397c6f1648b3c9b2c5699910a6a3361a0b4181c3ed9ab0044a53ec07cf2e748223bb27bccce5ed8 +DIST genpatches-6.13-13.base.tar.xz 849176 BLAKE2B 9882ce3bc3e9ee86e1e855d388920848022927c38c57c3bfa8dab85f9838a20b02defd3ebe10e43bbfb42ac8a93cd7852afba265455ef9c01d4cdd615c741250 SHA512 e21cd005f754bedf3d46c3cfd0c8bc80b565bf7f57fb4a104804423bc42be8fb99c5303950aba810c35a2dfc11b6beebb100687e44b5154ead97f16dbd59f2f1 +DIST genpatches-6.13-13.experimental.tar.xz 79208 BLAKE2B 22592d133249db5a341ed085c8135d7d179e2c864457c94259c0753d6ffb655cc5d82b29e469983f972e87d4b3c0c1c99f587ef9a77e035a5df7291e6061b4f4 SHA512 a37cd867fd5a0ed72ec54e49ba7dd593395bfe615986a297c10f5414b7b45c1ba9fcbfc79e803227bb2d3685fe6532761081ac2f6b4a741706d93ecef5daebcb +DIST genpatches-6.13-13.extras.tar.xz 4056 BLAKE2B 12a4279d4733719cab5e3c80ee940784a0c9cd4efe6e5ae4d6aaeefe119fdc28424c3721e0b376e079d60e8c0d83bf8f13f27e779654d76a55bf0bed62ccc04c SHA512 2bcf95ec8145c617b7b545005e89698ea9ed264eb6a6a3c34d2725d437f198255a447d87355cbbaf4681caa148d63e5d108efea8d42a306c68a182e0b6fad93d DIST genpatches-6.14-2.base.tar.xz 16768 BLAKE2B 95cf49b103512f2a6758a704c88b740e1c0fb5ec48c361cf5c60c03a21aeb01554452effcf9c241a5163a1472bbfa1bb3476ebda784c3152ec3bc7e823889a2f SHA512 4403d071b9d4691c1a07280755d828ff234bb56c9e27d6d3515be2653aefcb25a4e9722c61904de145b96bf20d76d18f7a1f9f83058e30b2485544563779202c DIST genpatches-6.14-2.experimental.tar.xz 6048 BLAKE2B 8dc6d379bc188065c5905ceb339e0e24131c344f5dd86db4a770a761375029285b7f84f6f99f91e7f898ea8f6198bf57b4397a8d9758d5523b5c7d6c7bffab49 SHA512 900862c82c24db0a673bff96365c293af477d13c6a1cd26b16f1ba1c9833146e9992ec229446a6d921c8ac42612db83e7682cd62dd99688e535744622166cf29 DIST genpatches-6.14-2.extras.tar.xz 4052 BLAKE2B 1f50db489f26a2727e46d64aa5fca4fff7fbc59f6093cba8fe91faaded0d38bd1be46a974dd3ece6cfd5bdc18698e11b5413ade535730b99ef22b0135c7c7394 SHA512 3316151a578ccd510534b91e9445441ca6b53822533b60bd516c765b4abfe0ca0575f2a18e31f7a975410bff1fed0892b57643f844757cdd3c976cb759cbe2c2 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-6.13.11.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-6.13.11.ebuild new file mode 100644 index 000000000000..8142c27d61d5 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-6.13.11.ebuild @@ -0,0 +1,151 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_GENERIC_UKI=1 +KERNEL_IUSE_MODULES_SIGN=1 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.13.6-gentoo +GENTOO_CONFIG_VER=g16 + +DESCRIPTION="Linux kernel built with Gentoo patches" +HOMEPAGE=" + https://wiki.gentoo.org/wiki/Project:Distribution_Kernel + 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 + experimental? ( + https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.experimental.tar.xz + ) + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + amd64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + riscv? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-riscv64-fedora.config + -> kernel-riscv64-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="debug experimental hardened" +REQUIRED_USE=" + arm? ( savedconfig ) + hppa? ( savedconfig ) + sparc? ( savedconfig ) +" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +QA_FLAGS_IGNORED=" + usr/src/linux-.*/scripts/gcc-plugins/.*.so + usr/src/linux-.*/vmlinux + usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + arm | hppa | loong | sparc) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + ppc) + # assume powermac/powerbook defconfig + # we still package.use.force savedconfig + cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die + ;; + ppc64) + cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + riscv) + cp "${DISTDIR}/kernel-riscv64-fedora.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + local myversion="-gentoo-dist" + use hardened && myversion+="-hardened" + echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die + local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}" + + local merge_configs=( + "${T}"/version.config + "${dist_conf_path}"/base.config + "${dist_conf_path}"/6.12+.config + ) + use debug || merge_configs+=( + "${dist_conf_path}"/no-debug.config + ) + if use hardened; then + merge_configs+=( "${dist_conf_path}"/hardened-base.config ) + + tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config ) + + if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then + merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" ) + fi + fi + + # this covers ppc64 and aarch64_be only for now + if [[ ${biendian} == true && $(tc-endian) == big ]]; then + merge_configs+=( "${dist_conf_path}/big-endian.config" ) + fi + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +}