diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-08 13:29:56 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-08 17:49:22 +0100 |
commit | 2e158734c637ef59b56515c9d6d3d9debaf90ef0 (patch) | |
tree | c1be48938765171c52dc0cd89efea17dee01265c /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.15.142 (diff) | |
download | gentoo-2e158734c637ef59b56515c9d6d3d9debaf90ef0.tar.gz gentoo-2e158734c637ef59b56515c9d6d3d9debaf90ef0.tar.bz2 gentoo-2e158734c637ef59b56515c9d6d3d9debaf90ef0.zip |
sys-kernel/vanilla-kernel: Bump to 5.10.203
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.203.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index f119f8f732c5..058388bc44a5 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -36,6 +36,8 @@ DIST linux-5.10.200.tar.sign 993 BLAKE2B 5716831f1f380571fd256c5623858c21effc05b DIST linux-5.10.200.tar.xz 120637192 BLAKE2B 3bd6cdee5feb9c4f649f391b2b151ac067e3c0d1df0ed2ababa9981c1c874e8a0403050b0fa557edc2f40df41b268e684c9473a870e3f17104397d25bdb017cd SHA512 f591a85cd505acb682771c191d2df34643dd337a3d8b514738af39d5d52db5e6447a39d9b20cca22c0159f9c3cda3b766b5f529ee6eaa4b0e156453f3d54ede6 DIST linux-5.10.202.tar.sign 993 BLAKE2B e81d8135b601917289b9a102174842c7360b0f9c53a0cfcfca5e33c6d440c80f1d51f5dd2b1c010d51590caa684ba7fad670827b9a31eae5302a712f79686854 SHA512 38f02a9c253af8d1a9d8e261e18fc7ac44e8caf107b01fef32f9e816aaf4c81bb0bb27c08e601ca4a1640885d2f418f3d4ac90584deb4937ac16c37769458e6f DIST linux-5.10.202.tar.xz 120612808 BLAKE2B 2f4290fa3cfe7e2e97b62ea074d5a17e8518c576d6ba6bbab92c2a61bfce815d6bf3422a6392c04a6bd281b541100fbc7e1a14a8b1dcc801a5a4c9b4c6b68d7a SHA512 413c540941c06f7d7a9687e8facf71ba62f1337a9c6475fd0979f15f60e3e1ce14e248269ce319ef80b497c8adec5da2b5214a891238d4d4d846123f424515e6 +DIST linux-5.10.203.tar.sign 993 BLAKE2B 469e13a9505793c9e880a4c484c416954accf621fbae1137427e128aaf88294a7f315348bd8c8bad62d90ca103c9572eaa90ab6aa5540853c30a879588f05f80 SHA512 1e103f66444dbcf02df91a787716945e967bd8327293d899cee26fb562aec304b8ca2cd595c7acbac318d1c7b9fa21901fb8653a7eb2bc8f68ed2e3a0d58e0ea +DIST linux-5.10.203.tar.xz 120634508 BLAKE2B 2e37aa708cd941638bc237575824a52f10af50d54ad8402de575e65f76b2bf52aec3175b42f5af3e7600f5565fbdba6716e4f2aeaaf2142b88f7f48f578f9d0d SHA512 294552eae37ed4dc3ae6841feb5053c50c11d07cdee5924125664d313a2dd7335df06f8b94e7917cb3fa1142251eb75dc272edea2f049e32f8f792f059cfd5d0 DIST linux-5.15.137.tar.sign 993 BLAKE2B 68b30e2470b54b36edb92077085c23a5537171c3f1b593dabd648c2e41e57cf0a8929fdcc4ab03fdb070ae4a53752cdaffd83f3657ea1881fcdd2e06e46f913e SHA512 12dad9fa1a1c6fb9248539c099cdf18e672145bdc2383f9c2aea11c5cb02cceccf974ceff8aa552f49081a86180c6617de5359b53862cfe2cf798fd5cb5968f9 DIST linux-5.15.137.tar.xz 126558376 BLAKE2B b10bdd4d9696ee523240d392e8f2386e184d92596e4aac0a784c2e215f92e42294ed9062ee1cede76ea58cca0dd3b50de34a314982f637a0d105f7205891fe33 SHA512 373567253a8e144369bec9349dfb22fff5749666b6a0be741bfc6f50f11869c944343fc5c75a99acc5ad94343750e78b332658e3f0f68e3027e310a375678f12 DIST linux-5.15.138.tar.sign 993 BLAKE2B 578688b615fc67ec50da6c3ea3975851e55480acfaab92b8fa9edc6361b507d0f7a098f530f8b4bf0a6b04fb88962bd6e48ef6e4b563aba14ae54dc6433f2eec SHA512 c6217aa663b3b1ffadfb2972cf114a77a46d9a90294a7bbe87a521bdcaf8ad3d8eaf03bb53ea1f8d72e6181fcf2c2a329b15a7e762f0545d6026aab5c3c3c640 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.203.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.203.ebuild new file mode 100644 index 000000000000..7f46104fa7f5 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.203.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[@]}" +} |