diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-05-17 14:33:14 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-05-17 18:21:05 +0200 |
commit | 96de1916ce922c90689c9f3eb73b2a17df9e3458 (patch) | |
tree | 80052c0d6f8e056e4de2f86406688ce0851e5cd5 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 5.15.159 (diff) | |
download | gentoo-96de1916ce922c90689c9f3eb73b2a17df9e3458.tar.gz gentoo-96de1916ce922c90689c9f3eb73b2a17df9e3458.tar.bz2 gentoo-96de1916ce922c90689c9f3eb73b2a17df9e3458.zip |
sys-kernel/vanilla-kernel: Bump to 6.1.91
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-6.1.91.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 52122ec84b36..1db00a5235b3 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -30,6 +30,8 @@ DIST linux-5.15.159.tar.sign 993 BLAKE2B 0c91a1a79f12ab1bc9dc4c43ce51b0db3c94ca9 DIST linux-5.15.159.tar.xz 126638716 BLAKE2B 72a6d23d69effd78f01e5809260e2f9449c8eba81e3721e4362496a4683d23a3a29596b8e0e1021940304bdb92d8538b78dcd3981ecd4aed5305cfbdfa774f93 SHA512 612ed225a3a58e87d8d561384d914f362fa3e3b8c2a8e3eda4a170882a3e80135aa77d444a44556ab1964cadc2d6b8b3b651f17a1f51d664ef3a24e535aeb60b DIST linux-6.1.90.tar.sign 989 BLAKE2B d053e980ffce442139f6db5151f4c5ffd94bfb70190c6547261a256fb94873712fbba0c0bd6aec6fa5e09c3bc6049f54817ee491e45147a0a9b1bffa18b49e74 SHA512 28c181281c3f9653810c44b6b6e833de3b6c1fc2fec452445a7d8aaf891da62343d2bf8f2802adea6e1fec809417b4df221d30b721ea6adbce9323c9c3ad9d38 DIST linux-6.1.90.tar.xz 135133180 BLAKE2B 839f183a9b4bac9f12a17d23d888856160acf7fff289dee53be4676fb77c2a5fc21a3fdfe9160e221690f3ea51bde60b54b9109ed457428f2fbc5e139df4985f SHA512 0f16edca9dfa35830820c17508a87abf550bb1b1bbfeed78a7537b3c6c10e890b82524f3deb059f7fddc41d77e07a4c143c59fdeebd875e6795353f5cedccb41 +DIST linux-6.1.91.tar.sign 989 BLAKE2B 2a6c93fa9a8e14dd41ef12e64eb735cd87cf27cfa7cb8d8f3d1a3340f5f3a7609820363d94b4a928a1db0054b3f2195d584b01e5c9326909941c6f71c169b65b SHA512 88353a7089688d0a7b112f4836e500b0b934a2402139d33c99efec3fcbafc37666d97a89235449d82c9b25ff59a5b281045ba1bfcf67f73f474f6b89fe87d3ea +DIST linux-6.1.91.tar.xz 135135820 BLAKE2B 1bb497a5c95baf9385639c822ac9696f05d573e226ccbe8047fed20def6776e8e64aba5187b44fd41cd86ebe0645b7770f3148632d07c36183b038d6fd50e699 SHA512 aa5349cc8b826d1110b31fc7d6e55c8c09d717c0ec0a7bf10de1586e294951cc724403b22f298a1ac73c9f1535b94c2d87ad6eae21ce5d4cad91e419e2d3fbfc DIST linux-6.6.30.tar.sign 989 BLAKE2B a85b3b764503aad276019a702282ae29b3f84ea579b25be1ad0b4c41a3fbd46b356c4185a996f8a0ba80ea2fcf347adafcbd60907ea826855267fdfab73273d4 SHA512 d6ae1fb54e38ddcdffd6ada80602334a296d064b968e1ba4245c40ab703ad2a9c9e9531c6c3ee64091fcdbc927657014005d8690bc1e0f1a6b4038a0f24d5bd5 DIST linux-6.6.30.tar.xz 140183976 BLAKE2B 815c85dae71784bc1eb722fc7651abebf344a960f51c473daa50f51f9097b8d64c68c033a3d488f7780cebd29e360c6df6ceff255a1a07d18533d7d950e77db8 SHA512 1c1cb9449686fc334385e9997073503ac6312d6855e8ef26bb1e73267447cce14f1f0a22b5c585a0a3c6c8dd1ed0e3c246671773ab8990fdf3c2f081219a9212 DIST linux-6.8.9.tar.sign 987 BLAKE2B 0fc69e60bae77731897380cf929ae43785e0b7db7e68e761e53894b288a6a80fbf5ad888b5c0312f601a56984ec0b9206901d7c02b202e73dc0d19e17212c81d SHA512 18730f08135b06018d1f7757e1332dd0f20761363aa8bea7d49734a22a9cb27067b8052849cd2180299a4323786f7dc0bcd598536e8ce5e5042f2f841589daf0 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.91.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.91.ebuild new file mode 100644 index 000000000000..2a01b55657d3 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.1.91.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 +# forked to https://github.com/projg2/fedora-kernel-config-for-gentoo +CONFIG_VER=6.1.7-gentoo +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://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-x86_64-fedora.config + -> kernel-x86_64-fedora.config.${CONFIG_VER} + ) + arm64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-aarch64-fedora.config + -> kernel-aarch64-fedora.config.${CONFIG_VER} + ) + ppc64? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/kernel-ppc64le-fedora.config + -> kernel-ppc64le-fedora.config.${CONFIG_VER} + ) + x86? ( + https://raw.githubusercontent.com/projg2/fedora-kernel-config-for-gentoo/${CONFIG_VER}/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[@]}" +} |