From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1656678-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E38DD159C96 for <garchives@archives.gentoo.org>; Sat, 27 Jul 2024 12:07:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA7E12BC09B; Sat, 27 Jul 2024 12:07:51 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id BB3E42BC09B for <gentoo-commits@lists.gentoo.org>; Sat, 27 Jul 2024 12:07:51 +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 BC00633EB78 for <gentoo-commits@lists.gentoo.org>; Sat, 27 Jul 2024 12:07:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C1DE1E67 for <gentoo-commits@lists.gentoo.org>; Sat, 27 Jul 2024 12:07:49 +0000 (UTC) From: "Michał Górny" <mgorny@gentoo.org> 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" <mgorny@gentoo.org> Message-ID: <1722082062.42a2298de2e11c8fa65b5c177aaea98b91185d4b.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-5.10.223.ebuild X-VCS-Directories: sys-kernel/gentoo-kernel/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 42a2298de2e11c8fa65b5c177aaea98b91185d4b X-VCS-Branch: master Date: Sat, 27 Jul 2024 12:07:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43e675ea-b235-4cb3-a3f8-06e8d10eea35 X-Archives-Hash: 3ffa4060ea5454b3d6c4deac35b4ef2a commit: 42a2298de2e11c8fa65b5c177aaea98b91185d4b Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jul 27 10:33:51 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Jul 27 12:07:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42a2298d sys-kernel/gentoo-kernel: Bump to 5.10.223 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-kernel/gentoo-kernel/Manifest | 2 + .../gentoo-kernel/gentoo-kernel-5.10.223.ebuild | 134 +++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 18b96f78c321..7ed947e1d019 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -4,6 +4,8 @@ DIST genpatches-5.10-232.base.tar.xz 7140012 BLAKE2B 9052d2ded65b6ea556321b09837 DIST genpatches-5.10-232.extras.tar.xz 4048 BLAKE2B b2eb1785c307710457b9979e1fbb7ae3f6929b4d1ae46863367ebd3c4ca817160c14b42a36018fa29e9b384defabba30f0ee8a0dcb153306bed8d31fb47041d6 SHA512 760817111313bed3dcbe056638c3d1148768811a8221295084111c4deea07d393e7d70e1af6411eab9b4df9d0840fd58616cb78aa91996f2b86ece4cabcb6f7d DIST genpatches-5.10-233.base.tar.xz 7166884 BLAKE2B 5e1b812e33adcc648e6a85d90fffe60e51c6f9e5e501aadfc2ac10450ea15ef2409ee3f20a54c47c0d86f04f04240b76ca0f9605e59f2ee1c1dfe1cf98541cff SHA512 9fc7b0ff029dc29c405eccc5eb550d10e3448bce7213f9ed3f9f646f52d95ae0b39d7648a824594f87c60cf6ce46354c6d4a0045d7d8cf4efa13c417b9e3210b DIST genpatches-5.10-233.extras.tar.xz 4048 BLAKE2B 8f7686f1815ec0bcfe333c237ad1734276a77b169d6d1f5bb235d6164365bee953919f0fc26ccec2954b1d1aaa250ffdffc1da85bbc5559f4e3fc0be6ba2fd8f SHA512 50646414ca3b5990e92da42550a8beb94ba44f428edf92a94286f20421fe396a9d6e53dde8278a64a3c99020c0a217b104bbe527de60d1d5acde362e61765de1 +DIST genpatches-5.10-234.base.tar.xz 7283988 BLAKE2B 7429eee0f5adb684e437369df9483c79d6411a1c102026ad49023b364a66704fc98195da228601748ad2d7a51900e9558bda9af3de716e07a6f1437ba4941626 SHA512 3bb6bb844aa76c14aa3d8cf4b8641f6492df414c12ca4f2900d18de7b818fd6b93f55a83bac5259f6980740cfb820e24db28950083c81e74399d75b033667a62 +DIST genpatches-5.10-234.extras.tar.xz 4056 BLAKE2B 0710e06cd3de7af3bcfc9b93db861bdffe880e427220ca594ea1c5c261f273022086c4202c0a362f46f85da31233e7b24b12c77393a0d0a0f87f553470115578 SHA512 d4a09984b3ea6207e88bdbbdff8c5ebfaa433af7ebbe3650730b1b5f483c4ffa97fd6f8815cf35d3b865140699e9904151712de627c9f6769080eb71a89ca4b7 DIST genpatches-5.15-171.base.tar.xz 6912380 BLAKE2B 3d5572ca2854c0dcaa6000ffc7ccc6921115f95ada5e8902c5681c5e0367f525bc658afd504dfabf25111ad1a9a6f6de1bf90e699fec38be68997f1e780f4715 SHA512 176edf85ec8e212036ce90b83a1a00bae1ea84770d8cf60c4f313498a219644a29774da6be34247ad55e6def08b4fe2f1c4a880c528c1d98e63a65acb0ba5a2c DIST genpatches-5.15-171.extras.tar.xz 4048 BLAKE2B 823bf5a1a62a3a4f97ae296bf78581a3b8ba79134e8ec7098385e23783c317509f8320afb9ff0c25ebfd5b3fb32aa883afa970ac86c550c2d70613d8af7da5e3 SHA512 f2eacb2ebda97e86c20f24a6ab591b6c41fa831947610febce3589d32fb326d9439b63273c2ffe82630157b7559141598e5bb5edbe939e1bed45bca802085f1a DIST genpatches-5.15-172.base.tar.xz 7003732 BLAKE2B 0f9a38b1a0b8d85429b9f66eaf0fdb7f854f62d6e61c556bfc618d551c8497ded8d1413f8f0c9bcc27988faeb718c73646ae1437b14793837d14d5587f69aa2e SHA512 fcff72f4ddbca1c2fbd012e66ab2d1b1c9a666192edeceabe51a99588564a0937d88c62c8bd71c6a701577ead62bd543b77b520e159f2b60764c6ffd3bcd24fa diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.223.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.223.ebuild new file mode 100644 index 000000000000..0845d4e45e94 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.10.223.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 11 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g13 + +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 + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + amd64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config + -> kernel-i686-fedora.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="debug hardened" +REQUIRED_USE="arm? ( 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 +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + local biendian=false + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm) + return + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + hppa) + return + ;; + 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 + ;; + 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 + ) + 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 + + kernel-build_merge_configs "${merge_configs[@]}" +}