diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-04-03 16:24:02 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-04-03 19:44:05 +0200 |
commit | 4e328336903a582a656b045c9c59dbbff93a3008 (patch) | |
tree | f3f4e4a049b5c84c0e9c1553b2afd523a15d12e2 /sys-kernel | |
parent | virtual/dist-kernel: Bump to 6.7.12 (diff) | |
download | gentoo-4e328336903a582a656b045c9c59dbbff93a3008.tar.gz gentoo-4e328336903a582a656b045c9c59dbbff93a3008.tar.bz2 gentoo-4e328336903a582a656b045c9c59dbbff93a3008.zip |
sys-kernel/vanilla-kernel: Bump to 6.8.3
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.8.3.ebuild | 143 |
2 files changed, 145 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 2eb51e232199..62e2dc35cd1b 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -63,3 +63,5 @@ DIST linux-6.7.12.tar.sign 989 BLAKE2B c58b501dd528f809373935fedf235e98c9dc1f648 DIST linux-6.7.12.tar.xz 141495752 BLAKE2B b2d8949eee0fc5df782f619f4518d3860d0e06b2233cadcccc7a93e8b48f649e671df523cd9d1bb4d18ceb2d3847fc3ca1044a4170be71b2c76357a405ecb875 SHA512 6375c0acbfd1452b3208273d47af4f0501c3953371ec335701662f619da2acac1f9b7d9ff7dfb5123a3867edd5765ba03428d3c018d9bd52b1f0d01dbd26d751 DIST linux-6.8.2.tar.sign 987 BLAKE2B 2b86ff751315994febb29d9b30f7d227a477d652b10173cd44ce36cdcf7259ed6b9bfbfb5453956dbdd222c893d5141cc4538c9041f15d4cefb0f2a1af9f0329 SHA512 ffea592db7611c0767f0ad24b651f2ffda35d6fd065dd566e0afa4991020be79243a527e01afbaba08eee82129504848a2e669ac0e3d93e571535c647629b634 DIST linux-6.8.2.tar.xz 142512348 BLAKE2B f057c2512040600fbf0df67cf9c7200aee0c06b82b3cf749be8c5685844d2662a585ce17685c7af880c0d9dbbbd81302e5a1fa41c3dbd39869123121a0e82dc2 SHA512 6d23c2891d9e2512adfcc9882f01b4177942cca2a101860b7f6df7c608c645b6269e42afa85783f0c2897e414dbc2fd38af65c3bd9f60a3f71105cc2f6c229ed +DIST linux-6.8.3.tar.sign 987 BLAKE2B ee9201a19c534d1e9f6bb8bfd884eaf16b1c3ed33a9e1f5f696fc21884e33ad9a624c57b1b78f1e11bb611ceb752f1212f67a66d4937025fe501d8f025172a36 SHA512 1742cbddcda7a3c9be6e46035338b03aba5fa9aeb51e99c1740f0609945dfd27655f110089b278b3f4cc4e6e6202f4e157234477d6c914b9f5070332316029ad +DIST linux-6.8.3.tar.xz 142547548 BLAKE2B d03f8938da5a3322447fa639718590f5630cd391de45952bf2ca697d95210cc47d4ff27f26b7ebe5ce2328ea4f4df040ed0f335a3607fa8c05feb17a8c7d545c SHA512 80acaeda2f661ab18e5074684b855c45b0795e7b76407c4fc0dcc99afa5ae5187ad1277258c7be200db4625d511fa54c34a37a486fac47f71f370129e4630d34 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.8.3.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.8.3.ebuild new file mode 100644 index 000000000000..f0a6e16416c2 --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.8.3.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.8.2-gentoo +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://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[@]}" +} |