diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-17 14:28:45 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-17 18:21:00 +0200 |
commit | 8b13da69f8dc3ef87bf04fe41221b8e7849cf48d (patch) | |
tree | 3c6ef0a46f61704a5c7e28efae10caa996ef9a7a /sys-kernel | |
parent | sys-libs/glibc: Stabilize 2.39-r6 x86, #932094 (diff) | |
download | gentoo-8b13da69f8dc3ef87bf04fe41221b8e7849cf48d.tar.gz gentoo-8b13da69f8dc3ef87bf04fe41221b8e7849cf48d.tar.bz2 gentoo-8b13da69f8dc3ef87bf04fe41221b8e7849cf48d.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.217
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.217.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 8aeb1ff488ad..73dc38b70565 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -22,6 +22,8 @@ DIST kernel-x86_64-fedora.config.6.6.12-gentoo 243607 BLAKE2B 7e670d37c6471e50aa DIST kernel-x86_64-fedora.config.6.8.7-gentoo 247759 BLAKE2B 1005d5b08b75419ecfcca207b407ec3a80e644d8b8feb03ce70880de79ea4ff17f56175b7c3c4ffa8279ca42edd154161ff10e89fbefc43d71f4c0eb614a094a SHA512 fd2d6ef4d2b426509c6ad42cf29fe1663a95a9ef4277e9cf300c825e58689e2eabd37932c55ebabc11cfc2694423b75cd215f206ee925ae8945ead61266c02cd DIST linux-5.10.216.tar.sign 993 BLAKE2B 7d049ccef5511bf9f57094e768908da7dbc77b8b4d15eaea56610678d4212935f3ac5cc5252983d4d2755d1fc3b7ca46dc4f2705ef60202c478d1f90385615f5 SHA512 54679b6d929c44f96ab2e04ff9753b5512a5f26d9fbcee012dbae47de2eecf2fad44964a2bba7d4db4169563f41f3219713d9fec5cdb6f9b9a0b67feeeee5355 DIST linux-5.10.216.tar.xz 120652008 BLAKE2B 1a16f726d94875479ef76a69a9f1ef8642c1a11bf12d53d527750622571b9a26620e6d01ec42ac29207ebc5025e44fb6dd9e7249f0e89149691cc512a2b85ed9 SHA512 d407add11bca1b41a4dde118c9fef52dc67d2f0aad1cc1ed77143104d7d9b7ce1bcd4661681246c06300e9ff5155fbb8d901428bffc32672b6e531ad10fcad7b +DIST linux-5.10.217.tar.sign 993 BLAKE2B c40c65e9c84c53f7d7b5c09c3c736c06bde13329ce0aca40127ffe20f7499c299abe17a6a154dc656e134a49067b9ef9c57aa47ac0e90be85919fb955f30d5cb SHA512 41f4f3f3e18b68e67134be66eacac1a99275e72e8330fc86943246d79fba11947bd89d703ca304c69ed27bd5022c47ff2794825b3e8aac3f2e7ec61a7504514d +DIST linux-5.10.217.tar.xz 120642580 BLAKE2B 6651773ba1a215401fbda49126ac774a84954f32d4452c61e199d4eb8d12db1eef5c307c7c2c2cf486bce51759141be69aa83c28c0ee593db3658fc7d2d1c69f SHA512 1040f152ab6ec7b485c8e16a77c63330835a0c1bcd5cae60d4806f01e27a896a276517ac038f1fbd3be97bd7c7a8d5d2391ea140fcc278e612fffa6f69a7fc60 DIST linux-5.15.158.tar.sign 993 BLAKE2B 4a9cb5b7eb5213482aba75ead47f0719a0e3d14205549d5f01a1d064835d75f962b98eca5e97a05c802dcf3f2b46a4354cc450e74a248cf71f71f7533d8466ee SHA512 4140c65f25b394b4f044b9d995fb766f82647f1cbe21c707313869caf06c0877db20f4fb1489cfd077b78303c4a2b25b7ffce00885c8ebe0b923b9a641a961a9 DIST linux-5.15.158.tar.xz 126633604 BLAKE2B 920a70642acfa806af9e1e6455aececd0490784990101368b77314082ccd99fe9a426960516f434a214932f01161f44ffb8b10fe5b91822e0213fb3380c0c93f SHA512 e10f8df018a7e5b10a3769befdaeaba21ac8cda1ce278422b7049c5531d985f7f46c85d498a7ca1b45b78dee4a0157a62fba8818f88d45a7551f49f6f6201f8d DIST linux-6.1.90.tar.sign 989 BLAKE2B d053e980ffce442139f6db5151f4c5ffd94bfb70190c6547261a256fb94873712fbba0c0bd6aec6fa5e09c3bc6049f54817ee491e45147a0a9b1bffa18b49e74 SHA512 28c181281c3f9653810c44b6b6e833de3b6c1fc2fec452445a7d8aaf891da62343d2bf8f2802adea6e1fec809417b4df221d30b721ea6adbce9323c9c3ad9d38 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.217.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.217.ebuild new file mode 100644 index 000000000000..900f0cd17578 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.217.ebuild @@ -0,0 +1,137 @@ +# Copyright 2020-2024 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=g13 + +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[@]}" +} |