diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-09-19 16:45:08 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-19 21:47:00 +0200 |
commit | 047d4c03986f48898cf569e4d95029df1bab5a9c (patch) | |
tree | 1cf10fb4b03759877dbd0a8729f3569499f32f5a /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 6.1.54 (diff) | |
download | gentoo-047d4c03986f48898cf569e4d95029df1bab5a9c.tar.gz gentoo-047d4c03986f48898cf569e4d95029df1bab5a9c.tar.bz2 gentoo-047d4c03986f48898cf569e4d95029df1bab5a9c.zip |
sys-kernel/vanilla-kernel: Bump to 6.5.4
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r-- | sys-kernel/vanilla-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vanilla-kernel/vanilla-kernel-6.5.4.ebuild | 140 |
2 files changed, 142 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index 0706c0fe9df4..f144b95e00b0 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -54,3 +54,5 @@ DIST linux-6.4.16.tar.sign 989 BLAKE2B 80ee957ebeaf7d242311cb51c358e8fa762873a22 DIST linux-6.4.16.tar.xz 137890316 BLAKE2B 02a07a8d53866e3e2b369b8c48ef83e4f9af0deb5edfc25aedc99cfb523219155bb76a72cd26efcc0a81b47c87f9cb32fa393891e0b1a8decdefd360c515b41b SHA512 6ff4f95a98c66b3e6fb9e583d913f333076200c00a403b72363a82ec8f0130a7836daa73248489d6e2dc185fc71022186e305f8e78ea73db46c600e8b886a1eb DIST linux-6.5.3.tar.sign 987 BLAKE2B 3741f840dc2cd951b78bb32d6fa38e7c9959203c40040b6d6dd230f982958fcc9361f06df1afa33765f37993df7fbcb06d6a58330c183631f26d25c1888d99c2 SHA512 18c3a957ecfd051a469cff6851cdcf51df782d65aba172c9b2be9f9c8089ed9204c52e647c7eda68ca5343e47fbbec66569501caa913df6962971a74ea941a59 DIST linux-6.5.3.tar.xz 138946764 BLAKE2B 7673a5375b0a715eca2dcff5b4f6fca13c8564a930b3b7ee112b67ed51541277378408abed1e1b128610f0db3425abbb30cd3751ce30ff73795cf594fb508142 SHA512 e63cedee5daffc4d73e3696a0afd0e97ae82218305ebc113015ae23afd01531d52b9f43b77176d51a81f7bd894f2d7f59b23dbb026f963b520670fd0033dc9b3 +DIST linux-6.5.4.tar.sign 987 BLAKE2B 0564a3b5f00d1d6fc3a2e212bc09214fdd6add72ac6adaa2016b9b52c0f3bb0753ce56f863c80af2c85c7f0e7ac6c1c89cceb73a25c9c8d691f7f8091223c393 SHA512 6b76ff1005c717fb2448e152e637bb02adb3f706eed00098f13e5a61a27b245b3b72dfc36b19de39ca26d0b7cdbbd8ab4b03e5161beee99f4cb368965e46843e +DIST linux-6.5.4.tar.xz 138938760 BLAKE2B 99df210ee8f244de9059c9699648f7aad8e520030ce14e61971ba95365635e698e7c66074aa3f5c57bd75f1058e1c1dbaecea66d0b381202f239b3a04a396371 SHA512 8e3589b03b54950f56f12b6d7f33d6cc8dee5c9d7d7417aa1e41855e9456dabff72220bcf11c527db6d767496a1cf0cbd85cb8da19134bb152ddc76d91545bc0 diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.5.4.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.5.4.ebuild new file mode 100644 index 000000000000..74548e9014de --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.5.4.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.2-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[@]}" +} |