diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-22 19:36:56 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-22 21:59:02 +0100 |
commit | 0391f2739e5332e63b202127e316996c2a272801 (patch) | |
tree | b1f13cc962905796fec87f652000485739880dd6 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 6.6.63 (diff) | |
download | gentoo-0391f2739e5332e63b202127e316996c2a272801.tar.gz gentoo-0391f2739e5332e63b202127e316996c2a272801.tar.bz2 gentoo-0391f2739e5332e63b202127e316996c2a272801.zip |
sys-kernel/vanilla-kernel: Bump to 6.11.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.11.10.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index a9f7b39254ca..c8c6411a89ec 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -48,6 +48,8 @@ DIST linux-6.1.118.tar.sign 991 BLAKE2B 6221184420f3a933ad4dd5a58b84729639f1e8ab DIST linux-6.1.118.tar.xz 135205608 BLAKE2B ff57e5b4450d6d358f8b28c429465abace96dd4e8f8c9bfa4b5693cebbf388eeee9b0e97afba17af98c0ef5f8d0053cd7157f26e7f560af0f2ab208d6766c2fb SHA512 f2c6f9735e551099538eae410212c10244eac765a5769d7ec4d6b8727137dad09b295a002bdd95afa3da92090374239a502ddfda09feff76c93ff69a0c7bb5ff DIST linux-6.1.119.tar.sign 991 BLAKE2B 2b730bb727466194ea6aa1051a9f85d686876affc651158389c3f144839569d3443f5e939a6123f7fdc9d82e5303267030c84176e858c0001f9b09382af5b397 SHA512 c1f7b23a457ca3934cf743a9dbf9492e54861090ea84e5b15f14aaa2bcf82a416d86b278f816e056633b74f1355308a3ed3f9f58fd2f02a4ab41c22b174b25af DIST linux-6.1.119.tar.xz 135231592 BLAKE2B ffdb7f08bc2e5c6a52889d0813490dd95126dc69baac6237f064b4a43b8d472ed80f0a4db92d0779c565bf3a7d6c4def75749d48687d5e1e4330f776a10a2630 SHA512 4f3556770337b9282211231fbeaf7d695a3312777ee1f8ff93e12c7b5180bf0babdda43132c527f741e88dbde2a0198c63cc5799535d5e23a32c4cbba1e74abd +DIST linux-6.11.10.tar.sign 991 BLAKE2B 7786945a39d02727f9f279d5aac42ec2fa641aa1413c79a1325cd3e3a0bc699db35067d95482dec8d0359d55168658365a13b65fd6ecccb8398c948b98c1ec95 SHA512 89f517764b9396cd2d14c5ee1df27477a9bd8e4111de73dcb1e19bac9a64d71011446b4ce6e246ce88d0a19ebbfd2a3ff6ade8cb3e97a05b63b2469d82888fd7 +DIST linux-6.11.10.tar.xz 147005172 BLAKE2B 7eaa4da44fd0f6cde13c92a8dffcc3e20d96fc9a8dce4502883835f4c2822d181234f7e9bc684a09da4d499d0a7c5ecaecde29e3fa1e6a3562c4da610757d9e7 SHA512 77d739417b3a25b6dead21c5c6d1bd881b714d6f35b9e102f3e0720b897f9c7686d23d1da700a880bdda9a319f71da5a33c68ac118a345d2c054835cc9d3c927 DIST linux-6.11.5.tar.sign 989 BLAKE2B 03ddeca59bb70744cae46abce20dd2b7f35e299aff419476ac657722092f4e35f98bd5aa95a142928ca642a3fc7859fba5e0f70de1c2cbce8015f0df8a78d1d9 SHA512 07bd2b0ff4b3940eb274d6b9e5ab1fb17ec18a2518a336b265fcb20f36d56121a4b03dea497ea86a9009259f73d912a393c71e2641e75ddf1354c9f6862f50df DIST linux-6.11.5.tar.xz 146975304 BLAKE2B 8749d9f78cca3d64e97d081b3ededf506c07c7fe894253e7435afb37eb7c86b690a65293fb4b582ecd951229ca61f13679d10197e4629352262db776352b96dc SHA512 532432967a1b343408be7764be67fd47dea28f41385efb6cba93f7039bf19e75027a59c53eb3752b32863d20f334e25d8dfe68237bc5449682d18eb2b7d0ea86 DIST linux-6.11.6.tar.sign 989 BLAKE2B c40f1cce49b802eff77556649774d4c733ff83dcdf9dd871ab32f599cda7fce8f61e813c7a3aedf35b088facdc938095d89e953642241abae7fdbde82c05d430 SHA512 7b277c22583e8664017f2144e664d7db3eb118143626a0d5d540e870cd713cd125cd77ead60234c761084751d6f7fc2fb911374e71c992b6295ff8f5bf83817e diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild new file mode 100644 index 000000000000..3c2cad2b80b7 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.11.10.ebuild @@ -0,0 +1,137 @@ +# 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.11.5-gentoo +GENTOO_CONFIG_VER=g14 + +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 -xf -)) + 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 + arm | hppa | loong) + > .config || die + ;; + amd64) + cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die + biendian=true + ;; + 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[@]}" +} |