summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-10-04 17:58:11 +0200
committerMichał Górny <mgorny@gentoo.org>2024-10-04 21:40:10 +0200
commit3a853ed53b48cb0152e3f6b13ea66c1066a23f15 (patch)
tree76ed1c7f81786f6a73d48cdbfa00cfb5c8b68098 /sys-kernel/vanilla-kernel
parentvirtual/dist-kernel: Bump to 6.10.13 (diff)
downloadgentoo-3a853ed53b48cb0152e3f6b13ea66c1066a23f15.tar.gz
gentoo-3a853ed53b48cb0152e3f6b13ea66c1066a23f15.tar.bz2
gentoo-3a853ed53b48cb0152e3f6b13ea66c1066a23f15.zip
sys-kernel/vanilla-kernel: Bump to 6.6.54
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/vanilla-kernel')
-rw-r--r--sys-kernel/vanilla-kernel/Manifest2
-rw-r--r--sys-kernel/vanilla-kernel/vanilla-kernel-6.6.54.ebuild137
2 files changed, 139 insertions, 0 deletions
diff --git a/sys-kernel/vanilla-kernel/Manifest b/sys-kernel/vanilla-kernel/Manifest
index 7556a59becfc..cc1bb72f30a2 100644
--- a/sys-kernel/vanilla-kernel/Manifest
+++ b/sys-kernel/vanilla-kernel/Manifest
@@ -42,3 +42,5 @@ DIST linux-6.6.52.tar.sign 989 BLAKE2B c3ea21b0921eab9df4fd36ee10ba4f417ccdde013
DIST linux-6.6.52.tar.xz 140320676 BLAKE2B f42461ea587b2027ce4e096dd7188d4d5bc8aa559eb037afbb2250493900988925d69e2882356739ac3b9d028f833a63578ed9087f7bd9ee44dc096b4608d352 SHA512 3fb7b4e6e19e87c4012037ea32dc4e28a30b75fa4260530edb7686c39b0c6fb6c4e35550a97c0e40c604513a0ba5f26490a6a74da21de08226d54fda73d316a0
DIST linux-6.6.53.tar.sign 989 BLAKE2B edca06d7c0b33f98d19dfe1015857a882fc4122c4f5c48aa223f7b5dd560be498278794f9a2186ddb8043f102f533a5455ab7babc4a70628aac1e36447bca0fc SHA512 b77d40d19102100ab5862487b6c44cd14a213fde932301be6df0ea4713020e700d7432d3f1ff160aacc385767dbe2137fccfbffff837ba89e0bc05af9135e6d4
DIST linux-6.6.53.tar.xz 140328808 BLAKE2B dfd4ae4bcc65c7b078163c182d5b86df56abd62aa44c3b1fdfd8dd7b2533b1a4472b24e8e2e9cb1661230f550e43419e5a93bb133504781f6cfddf029033caaa SHA512 c5ac0eeea96f367088c1e9e137e48ab30e580bdc6d9d710211d23c6e3787156b7925e5827792b642ef6725799a9f588a2e6194625768e9c75ec846a44196c5c5
+DIST linux-6.6.54.tar.sign 989 BLAKE2B fe3c73d59b3ae7499e935d234f6a141fa49251118a2c754ee53f12b2ad7360634925e0c04c35c67e982a4f9d19964fc5985a14086882b2f446b1b53e47b1072c SHA512 c52d5ffbbd1722d4d3ec742738731b6397841afcb4d9dda9297e9ca604477a8eb32e96f0900604d0eef7810d05552d2518c2e094911a6179a641f55c7a358330
+DIST linux-6.6.54.tar.xz 140359092 BLAKE2B 4f98a064904009693a0db2860eba8bdafc01c203591cbfdc0596deacb6949d6480cee9252b94b3eef687d84ae2091059a0da1654884ca8c30735b9f20b3223ed SHA512 e2e90849dd81be3d5fe663f3607593403ea919c7700b0e18666f40c33e3dc1bc3617479fe3ef7e0aaf9ab0bcfe01fb9642d34ebf4cce8908503e0921fe4b61f7
diff --git a/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.54.ebuild b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.54.ebuild
new file mode 100644
index 000000000000..6ffb176dab80
--- /dev/null
+++ b/sys-kernel/vanilla-kernel/vanilla-kernel-6.6.54.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=g13
+
+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[@]}"
+}