From c10854d60c2f291b6bd9c3ba2abe1d15ef31b731 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 15 Sep 2022 13:00:16 +0200 Subject: sys-kernel/vanilla-kernel: Bump to 5.10.143 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-kernel/vanilla-kernel/Manifest | 2 + .../vanilla-kernel/vanilla-kernel-5.10.143.ebuild | 134 +++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 sys-kernel/vanilla-kernel/vanilla-kernel-5.10.143.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index a95df6ad2996..fc173c1a248d 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -28,6 +28,8 @@ DIST linux-5.10.141.tar.sign 993 BLAKE2B 8012311f8e1cb9e89bca16912b1669cb8ed96a6 DIST linux-5.10.141.tar.xz 120487196 BLAKE2B 72fc10716b42043d8eceef04dcb2d9df94b78514decb237c1e47d1f5679f83079e19e66c57fd5643403e142f2ed6a3ae712fe6940f5d9f9be61771eb431031dc SHA512 e484ee2535732234ad610e49d30d6ec7d5ffdb5c0638cb598607ec488d8d555fcb025782fbf05ee2159a840949b7c070f20b7a393e86b43d1c2af80fd30a179c DIST linux-5.10.142.tar.sign 993 BLAKE2B 7f65b253676cca9b4d88ddf5e2fca6548379252408631fed5a66774c2d988b2febae8efb9e78f3dca721b7c419966087188a011f38b23352030bbeb6a78f1f9b SHA512 00a9709ff49c5ba50c495178c9e0e93c51132cb387534dbd48837bd9e7a8d83baf204621570e5ccfd649da4d3389165a6bbf1487f92072ade644eee23081d798 DIST linux-5.10.142.tar.xz 120490684 BLAKE2B 12819fefca748e8e4e320a3b709f3c1c026d204a728d649cb15a7cc6937d80588c1b114adf242928450cd37d21e869088df846ee4ef5ffd87e56fb60b0f2df8f SHA512 06b8977654a2e2e1109398e617d4f253d204134182f3982e271abfda054805d56cb70ad8b26a3b3b5c821a127990da76529799810a95dbed442b894acedf867a +DIST linux-5.10.143.tar.sign 993 BLAKE2B b6f4528f9f75d3bf8abf118f83a5bb06bd8a7cfba7b3540d63a46bf2814aaa0490f34e2387cc6deae3ef6f28377b5a0a8550452465a2988683f810fb122c992c SHA512 65ce028ed2cb949a9f3dc6eabb2d0ab2e855bb44e364d80e3f03f5797436db56bded47c809ae2b88dc18fad68018a72e6f117c96026f175a418a2a962dc3fab3 +DIST linux-5.10.143.tar.xz 120477964 BLAKE2B 3f31eed64451fafd9e4299c487d508945b0f9c202c2607aa000853520ed746d239ec526c291ea4e2848ec827819e5bb437aaa1c23cf79af78d7ce94389155c6e SHA512 86cf1458ec8c13be56602b563468b4cb1ae796907dbead5a436c67cbe0cf797fc0deab307d5a67d0aa1eba1ce5b0ed7835557551e4ac6319415128aa1f85725f DIST linux-5.15.63.tar.sign 991 BLAKE2B 855d118b3164e1ea14789647f173000eaaee7dfc27f27da497c1b6fb787b35d47269d2c233f0a79aa3560be7a1c9571b2c52a8a78fce1d73f400d9d21a17b7c3 SHA512 99f256fc013ee63c918eb521e741347c958a8ba018d5136e960686952fbb510416a80413d3dacc5a994220e6d8866a427ed8476ec172f48c03f34be4b93f33ac DIST linux-5.15.63.tar.xz 126441480 BLAKE2B 95264d45411bb0ba30b0eadc2847075d0763bdc22aa86b250861ea18066a1b16b88627c61d0829d7b0a21e9e478df064a54b343ecb2065b37a011bc0cad986c6 SHA512 a1b33476484b9ca7a105d07b70835ad7e7e670750e6beb428ce23fe1bd853d66cd8a1ffca9ee736a98a42b98191d290127e628d33118be971c661e2fc6faf8ca DIST linux-5.15.64.tar.sign 991 BLAKE2B 0f6101a3f7d34da6f5bccc3178741089442625a7bc240468b4469510d5a769292928bb6f4d5c9141c81defaf097bedb67e8c110b0a966832b71f20a318e46eac SHA512 84c37bcb8a53f8d1f0e8fc3061efb7ab8e2ef476374bc2fc92985c51876bf5895a18fc67d9e35c32065ef35eca3d4bd120705c647e4f4c41e666a24c602dba30 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.143.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.143.ebuild new file mode 100644 index 000000000000..beb11365e70a --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.143.ebuild @@ -0,0 +1,134 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit kernel-build toolchain-funcs verify-sig + +MY_P=linux-${PV} +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.10.12 +CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530 +GENTOO_CONFIG_VER=g1 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +HOMEPAGE="https://www.kernel.org/" +SRC_URI+=" + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz + https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz + -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz + verify-sig? ( + https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.sign + ) + 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 )" + +BDEPEND=" + debug? ( dev-util/pahole ) + verify-sig? ( sec-keys/openpgp-keys-kernel ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/kernel.org.asc + +src_unpack() { + if use verify-sig; then + einfo "Unpacking linux-${PV}.tar.xz ..." + verify-sig_verify_detached - "${DISTDIR}"/linux-${PV}.tar.sign \ + < <(xz -cd "${DISTDIR}"/linux-${PV}.tar.xz | tee >(tar -x)) + assert "Unpack failed" + unpack "gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz" + else + default + fi +} + +src_prepare() { + 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="-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[@]}" +} -- cgit v1.2.3-65-gdbad