From b8325835c82367d22428eb41afa0f2d375338d3c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 28 Jun 2024 07:59:59 +0100 Subject: gentoo auto-resync : 28:06:2024 - 07:59:59 --- eclass/Manifest.gz | Bin 39057 -> 39054 bytes eclass/kernel-build.eclass | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index e376d7a81323..84f46c3b3df5 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 7922638be6e1..86c7cd4a172d 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -382,6 +382,22 @@ kernel-build_src_install() { local module_ver module_ver=$(<"${relfile}") || die + # warn when trying to "make" a dist-kernel + cat <<-EOF >> "${ED}${kernel_dir}/Makefile" || die + + _GENTOO_IS_USER_SHELL:=\$(shell [ -t 0 ] && echo 1) + ifdef _GENTOO_IS_USER_SHELL + \$(warning !!!! WARNING !!!!) + \$(warning This kernel was configured and installed by the package manager.) + \$(warning "make" should not be run manually here.) + \$(warning See also: https://wiki.gentoo.org/wiki/Project:Distribution_Kernel) + \$(warning See also: https://wiki.gentoo.org/wiki/Kernel/Configuration) + \$(warning !!!! WARNING !!!!) + endif + EOF + # add a dist-kernel identifier file + echo "${CATEGORY}/${PF}:${SLOT}" > "${ED}${kernel_dir}/dist-kernel" || die + # fix source tree and build dir symlinks dosym "../../../${kernel_dir}" "/lib/modules/${module_ver}/build" dosym "../../../${kernel_dir}" "/lib/modules/${module_ver}/source" -- cgit v1.2.3