commit: df7f1d7932de1cc6b8f9027a26d6e4c8dc65ca07 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> AuthorDate: Thu Dec 22 08:19:03 2016 +0000 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> CommitDate: Thu Dec 22 08:19:24 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df7f1d79
eclass/linux-mod.eclass: Check for TRIM_UNUSED_KSYMS (bug #591832). eclass/linux-mod.eclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 84b2786..270eff5 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -566,6 +566,9 @@ linux-mod_pkg_setup() { return fi + # External modules use kernel symbols (bug #591832) + CONFIG_CHECK+=" !TRIM_UNUSED_KSYMS" + linux-info_pkg_setup; require_configured_kernel check_kernel_built; @@ -592,7 +595,7 @@ linux-mod_pkg_setup_binary() { [[ ${config:0:1} == "~" ]] && optional='' new_CONFIG_CHECK="${new_CONFIG_CHECK} ${optional}${config}" done - export CONFIG_CHECK="${new_CONFIG_CHECK}" + CONFIG_CHECK="${new_CONFIG_CHECK}" linux-info_pkg_setup; }