diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-28 07:59:59 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-28 07:59:59 +0100 |
commit | b8325835c82367d22428eb41afa0f2d375338d3c (patch) | |
tree | c416b8853bd14fc346da5d0129843cc4a68a30a0 /eclass/kernel-build.eclass | |
parent | d2ed973482fdd800013658e83a61709b29e0a80f (diff) |
gentoo auto-resync : 28:06:2024 - 07:59:59
Diffstat (limited to 'eclass/kernel-build.eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 16 |
1 files changed, 16 insertions, 0 deletions
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" |