diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-10-06 14:59:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-10-06 20:11:50 +0200 |
commit | 0a016ff52fb44c3db9eb93ad3c3432ad08d233d8 (patch) | |
tree | 259681b9cdfd2fa679f83969bb7ac59239bfa2bd | |
parent | virtual/dist-kernel: Bump to 5.15.134 (diff) | |
download | gentoo-0a016ff52fb44c3db9eb93ad3c3432ad08d233d8.tar.gz gentoo-0a016ff52fb44c3db9eb93ad3c3432ad08d233d8.tar.bz2 gentoo-0a016ff52fb44c3db9eb93ad3c3432ad08d233d8.zip |
sys-kernel/vanilla-kernel: Bump to 6.5.6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.5.6.ebuild | 140 |
2 files changed, 142 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 3a9f302a5e61..b25139af4624 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -37,3 +37,5 @@ DIST linux-6.1.55.tar.sign 989 BLAKE2B d10c453aea7debd92cc2ff13c70d19dfcea716468 DIST linux-6.1.55.tar.xz 134978840 BLAKE2B 60e806a9bc02c69e60e5ff5fcabf26622054cc48f372c60ad62f5a4e1c67c50632c017037b9d96657d124e9651eb80a367ef8fb85256eb68faad0dfd249bf1da SHA512 047d98b1aed8201d5d0d29228e6cbc0984cfb7b77e6f5584ad94431c644db8ce099445d63e7f5b6b6fd9b031176bf9448c3c99863273c9e178170af7cbe0d20f DIST linux-6.5.5.tar.sign 987 BLAKE2B 24619bb3d949c875a242f3908e9353c82ac936c4f76db320736a215514c52212127aad781393de84f15715da5f7bf5210e2c22343867215fe9774e3fe5cacf8e SHA512 da6406e7ed54cc17ee36c14ea9b09ffd54753625861006fb4ec68cf1b81cc7dd8fbc42890ce98424082dbb4fac2f90aa353bd0b27fe446219e6940d90d03c9c3 DIST linux-6.5.5.tar.xz 138991456 BLAKE2B 2152bdcd8799b89612e76c1b3794313f981e08eda23c0150e56297a07f326c85f2a7a08106eb4e4d502b2134ed69e4344263fe6a2b398af5b5d7ccd018c0899b SHA512 c95ad978847915e044146f254c9cec7d3d32e4afc28a5cbbeec2f0591aef28f584f0a273f7bb5bd8706cd7cc849dfd0cdb764fbc2c84e8b3c1b0f30fb6bfd306 +DIST linux-6.5.6.tar.sign 987 BLAKE2B cf964c7017391eb169141935048572f684e183c4f19c8fa436d3c116b13adf75f5d8d0999df2ff907872de0067fa42267d2ec6f2ca59b386b8e77d85fec2c0ef SHA512 39370699c241d7e5be58fd6b331e8095752046a79362d22b2ae0501dcd3f2a3cc20c47be0d4cd58c56c0bb15eb34400ffed2e5937185e4aebc77caec6f4e3ef3 +DIST linux-6.5.6.tar.xz 138956648 BLAKE2B 6fec33a0ee1700694c43c2271263d23408f3ad53f71200717ebd3843dd0aecb5235a058439e63e304da276978f1e4148ae1aac78a22166b2ca236b137a406c0f SHA512 be7da02f4f4c3dff56b36c4462d0e9208c826a89717bd71876adaabc911e3fbf6b72592da6775d06c92f7ab832e27d5f82a0f8b69f244a764c72925607ef86c4 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.5.6.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.5.6.ebuild new file mode 100644 index 000000000000..4e53cde8ab8c --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.5.6.ebuild @@ -0,0 +1,140 @@ +# Copyright 2020-2023 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.5.4-gentoo +GENTOO_CONFIG_VER=g9 + +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=${BROOT}/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 + + use secureboot && merge_configs+=( "${dist_conf_path}/secureboot.config" ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |