diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-20 19:35:31 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-20 21:20:56 +0100 |
commit | c87f4a4c95eaca05b8d7b50a4c2c040340bafc1e (patch) | |
tree | bb65a0fec2503ddbdef6559d0e3aab5098739e92 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 6.6.8 (diff) | |
download | gentoo-c87f4a4c95eaca05b8d7b50a4c2c040340bafc1e.tar.gz gentoo-c87f4a4c95eaca05b8d7b50a4c2c040340bafc1e.tar.bz2 gentoo-c87f4a4c95eaca05b8d7b50a4c2c040340bafc1e.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.205
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-5.10.205.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 4567106f9e7d..bd86bb662539 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -20,6 +20,8 @@ DIST linux-5.10.203.tar.sign 993 BLAKE2B 469e13a9505793c9e880a4c484c416954accf62 DIST linux-5.10.203.tar.xz 120634508 BLAKE2B 2e37aa708cd941638bc237575824a52f10af50d54ad8402de575e65f76b2bf52aec3175b42f5af3e7600f5565fbdba6716e4f2aeaaf2142b88f7f48f578f9d0d SHA512 294552eae37ed4dc3ae6841feb5053c50c11d07cdee5924125664d313a2dd7335df06f8b94e7917cb3fa1142251eb75dc272edea2f049e32f8f792f059cfd5d0 DIST linux-5.10.204.tar.sign 993 BLAKE2B 00a1a1c338c95875d5cffbaf628cb2b9611b6a776011265f96bf805c841d2b5a8bdd08ff7a9f8076aeef1aff681d77bcbd7685d446bc4cfca7523226dc27b9a4 SHA512 fe8d88d33941f225e28e8910c945af8ffc6d9ae0bac298a11b6a62bfa2def7bdea71a1b33123f8fd87c2b61c11b4b725cbd0eee334edb9a722473d7f6973ea7e DIST linux-5.10.204.tar.xz 120618840 BLAKE2B 804a806d9663cac2f2bba12a5bb7e17b6fa3f8afd920b916294ba7179e780b6a1455ae75b535cf66520c5af2f45114bc1f7e8872ea17cd112c8eaac1989f8c44 SHA512 e7a2a2e73c99300c86ee08cffd257261d8316ad223794d0c739e50778e71df7f4835b6244d34911d073ceaa4ad9347b240f3d18ba5bfcf99293f08af212b85d3 +DIST linux-5.10.205.tar.sign 993 BLAKE2B 834896e7c7dc3bb8ee0cb66303956c6955a42a203826d4b4c0a2acfa0388fbbf5780b7c363d6f22e84712a3b63a231c2b69538d463f797343b51816702ace966 SHA512 d71a88170e1ad38956d7f528a8a3d842e4f40c9543c9006da7ab21f6ce5b2a98e12dd2ed18b6c4f6a52812261a601dab18f410bef407a3613670aa9eac4bf7e8 +DIST linux-5.10.205.tar.xz 120632532 BLAKE2B 12f94ecd38282581345a1cd497f1f67b90f68b12bd9a5eb5c920e97114536d8c138154fe4a27634194a75c27539bc04af3674bfe590c8a43cbe211d39148b2c8 SHA512 681aca65c239a3d6020861b399b1a5548bbe832016c40862529e08dc7078c5f709e11811e6d6bcffbbf0a86c7eea2bb911870f899729312e04653f0c235a3b09 DIST linux-5.15.142.tar.sign 993 BLAKE2B a83dca672bbede453afd57d145da6d431a7c2704f1df582b06cc1f47eeecfd0802425a4e83a6333fc30b91182139cebeeb83b451168f24c45cc46fbb64a1c835 SHA512 9f87826f9f734ae60cd2d9e7cd15310040baece0a1f6682ffe5127fbe7ffb4f76b274755ed212ef4dd3174ad3bbbc8a2f10f8a9fb5bc91b0afc6c4fd8f7a0310 DIST linux-5.15.142.tar.xz 126559304 BLAKE2B 1963fa38ec41da53253eca60f0b065a5809a276ac5e8f6cffe83543b4ef6afaf392c02befb781fe083feb77c5811dd49e38371a6bc51b85714457b364ca151e6 SHA512 d6b09bea7d3a5f882c9f1b027119168a1c61447958da6f008a5a95c7504742bc9320c82e0af34d2267ca43af5220ae7331d46c8f46782f6933b8a457f0bd996d DIST linux-5.15.143.tar.sign 993 BLAKE2B 33f613919ec91fd0160598704c8a712e9629e314119a3e7b4d35fe808a1f29e0caa00e66a992bbed199360f17d83d00b044c5d3279b7d25a6a485ec85fb7ffc9 SHA512 0654b319ce52effdb69f01a8f03da70bb545646c3bae8b93ab9955f066a067ae3ecdb7a8e7ca69d0e70a491ae838a33a16f14bf9ed9ef15a39270d88484d8733 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.205.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.205.ebuild new file mode 100644 index 000000000000..7f46104fa7f5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.205.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2023 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=g11 + +DESCRIPTION="Linux kernel built from vanilla upstream sources" +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://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=/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[@]}" +} |