diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-07-18 14:50:24 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-07-18 18:15:29 +0200 |
commit | f722724e2261027a1160163238cce81d05e74780 (patch) | |
tree | 579510a83eeb32a7a93fc6dc9c3a4829078a9891 /sys-kernel | |
parent | gnome-base/gnome-control-center: Fix VariableOrderWrong (diff) | |
download | gentoo-f722724e2261027a1160163238cce81d05e74780.tar.gz gentoo-f722724e2261027a1160163238cce81d05e74780.tar.bz2 gentoo-f722724e2261027a1160163238cce81d05e74780.zip |
sys-kernel/vanilla-kernel: Bump to 6.9.10
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.9.10.ebuild | 143 |
2 files changed, 145 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 323e88ad7bef..37b136646c68 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -46,6 +46,8 @@ DIST linux-6.6.39.tar.sign 989 BLAKE2B 95beab3aec919809a6185822ea669dff9a19b30d5 DIST linux-6.6.39.tar.xz 140291004 BLAKE2B 995aa17bbdc4a15499be6d9527b1df79ea72a8f8074526c06cad04ec7d4d94b7091ce3e1b87b5bbc7c27e9641b4fa1e13b2a7b19afb36f1768233021d26ea270 SHA512 fbf1e27f7fc68ac42dd2cb40f853a77d4b2aeaee0190beededd39d4251b206a0d2f6784b4b5aafbe21bae36669bb00e20235b15ba4dfe84231968334dc65e71c DIST linux-6.6.40.tar.sign 989 BLAKE2B 295980cb36ca4a2d847bd7991fb7ab683f658a5796a67d6198e4eced69624c719b45533d48e73e071f5f3468702ffb10a5b26ab76d69867d9a0b056366daf4a4 SHA512 33c5b20680b08bb7aeb0f5a94d509ab2c45582f2911bc7fed0dfe8ea7aad98a17963d113410ff5f44747221ff91066da07255b39a4b9fe2f55afa0c7413b2018 DIST linux-6.6.40.tar.xz 140299288 BLAKE2B e64e9a6d37076dd565399b40af1977eedfa186a244041fcdfef6cee7b91d6a9e0883c3bfc9a1daa98f1f8cb99a33d5705a5f776cbb82aa95e26dee08228a2c62 SHA512 35509307428059cae4e6c0f0ba78a4423138243b4fcde719da36f5ed58852baa8f7468b3f773f4d11cb314f06d9bdd3ecda432aba31b49bfc61cd40aebefa7f8 +DIST linux-6.9.10.tar.sign 989 BLAKE2B c91b7e7d5d49fb3bc7563bfe302cbd1fef504da6ff151d4d96ce54a7808989c6c3064bf383e579e702c497bbadeb66e9658c18a75edef3382bbf5f2807e5f825 SHA512 95530a66459c94ad50106f0ce15640ce997aba320eb711031aad99c8a9f5a9006052a298fadfacb420550fdafd749e24a8c820d31c7315b65143e82c2d818161 +DIST linux-6.9.10.tar.xz 144133252 BLAKE2B e08cce7f271cfda05c5ad777d06cbb04b57fdb7992d10d24f9e0193cae185d02881cc089bab14639a058cae12d1f89ac79c7d0be528c077d8b09d385dd3fa616 SHA512 043885652363f935049744585d72fd7a1fac30baa6fc222f4ef8ca95b66d0ebf0c9492fdc9208009a849527076d1f6586ea557cde75aaa547e46e624ca759625 DIST linux-6.9.8.tar.sign 987 BLAKE2B bb81040fb2134eb33ff7f0f9d9d18e827d3828d53fffbccdcaecbb22edfef04309a2f42987220552422735af5a6f17aad603d7a5fd4c7dcb9ba2d3659fecfd8d SHA512 7de43543511a017a135c4b33fa511fbca060097da13be2a593f9b912b7388d9e3b025854ddb91518cb5e96bd77befe7ea86f5766db2515db7c39addb0409ad99 DIST linux-6.9.8.tar.xz 144093812 BLAKE2B 3c3874b053d7076564936f2053ef666733d329c402999aac736cf64418cb74e471cf9d7ae62e8fab49e4e916f196c5b8317aa243691b1d18119a25196108dd06 SHA512 e7616207a1f08100cbfd9a3cd08bb0ea6cfd474c3a4cb95b3bf738461b7a8ae128270ba1bbaf512ae9c0eb2a409fa0c1d79317ab6dec9ff317aa9019c86d0c62 DIST linux-6.9.9.tar.sign 987 BLAKE2B a1430dbb6cfd6536c859f5c5fd682b2caf8e940c57ed3d55dc46d67d8851be61dc4215a249aef0b644478622725bd269f814f15f315a5a58a09fa93d20a48094 SHA512 55add916efb2bcc69c294b34a6690dc3b99c7d01f5e4bb53c91f421da4175bd8b7b3ff0df56096f5d6708bb06daf25aecb623364e555276845a38b6d4ffed248 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.10.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.10.ebuild new file mode 100644 index 000000000000..dd693350cdc8 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.9.10.ebuild @@ -0,0 +1,143 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KERNEL_IUSE_MODULES_SIGN=1 +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.9.3-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 ~loong ~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 + ;; + loong) + 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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |