diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-12-15 03:55:53 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-12-15 19:37:41 +0100 |
commit | 03f575f02e449e4de0c97ffa6649745b08140d53 (patch) | |
tree | afa96f81ceef62819d30eb082cf0e53d1330dad8 /sys-kernel/vanilla-kernel | |
parent | virtual/dist-kernel: Bump to 6.12.5 (diff) | |
download | gentoo-03f575f02e449e4de0c97ffa6649745b08140d53.tar.gz gentoo-03f575f02e449e4de0c97ffa6649745b08140d53.tar.bz2 gentoo-03f575f02e449e4de0c97ffa6649745b08140d53.zip |
sys-kernel/vanilla-kernel: Bump to 6.6.66
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.6.66.ebuild | 137 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest index b33082c46f2a..02947d3a769f 100644 --- a/sys-kernel/vanilla-kernel/Manifest +++ b/sys-kernel/vanilla-kernel/Manifest @@ -52,3 +52,5 @@ DIST linux-6.6.64.tar.sign 989 BLAKE2B 1245983fe9e4fdcf9b12d39a0a795608c652955a8 DIST linux-6.6.64.tar.xz 140404904 BLAKE2B ed33f8fd88ea5b4fb23b83b4b411a049cc0d9142f1777fb476fda65d1729513eb9932dae52784997eb92c88ba20d6e508e370b097dccda6b99548f2e948a2ab9 SHA512 99d9d1f4f392bc2a5ae98466338fd9e2613eb785169908af571675476c756852d48ec0dcd330f5d419ca3cec84ced7f627f8e9907a996af85086cec704ffdda4 DIST linux-6.6.65.tar.sign 989 BLAKE2B d26a0b4a88fa4856d9ca29b454f5545636762bf7de5ccf62e4e92daec66547b5defe294b12f8c0c40006ea2d0a39397d650844dcb3c0782b2d69cefc98756af5 SHA512 b5c211f020a4034a0401c4b2d6a38eae0e86208e65c28e6e8699df1cea220612ec024a9f020bb26a0a288b78cb8bc2f18a4fd861e1bf49fd4afbbbe245ee8cde DIST linux-6.6.65.tar.xz 140426508 BLAKE2B 937c5008f9b3bc53f535538f904cbdbfebc735ca9453c6b042769a7ef37748a36051379e5455a0ab9a6be153ab8b38c4d2ad8a5b4938189cd3014bf0269becc8 SHA512 5e4966dd57390de5d5c9ab2541c02672d39246e5308d80068024be1a364e49ac96bb396bd24d2f99e9434e391d646c38c8a935aecc52134b5c3e29638fd45ac5 +DIST linux-6.6.66.tar.sign 989 BLAKE2B 455a8d1b5adeb1f6e817b8c1a82a8cb8c104a504b8722de925dd30b91f62caa10b716d7945a7c2c4c954bc3735b725dbbde2564d750ad8212ff9121b384904cc SHA512 dc70f5a646ebd0bf6d3c918d256973287a68f9580f4deb67bd32ff761641ffc521a37cceac889cf6b180c882c6ba1103995d37e21ee395b12ef06d1135b66e38 +DIST linux-6.6.66.tar.xz 140430488 BLAKE2B 31b9f40d8279921c4c1ee8c7b1e053fbce3aa4221a0ede651747a2e5556a8fb9d32a6f4fed027f53ccd3f5b2bfda0d2d3036a2282ef6cd65e5b665534231ca14 SHA512 5c1035df8395f23678f17bd8b40d09061fd74299f75a723bd482ab39304eb1de4f460f121f144554d33df8497d7d5f13a975332ac4bef8a5c0ac7a5fc05e6b7b diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.66.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.66.ebuild new file mode 100644 index 000000000000..024fb0dc392c --- /dev/null +++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.66.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.6.12-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[@]}" +} |