From: Jeroen Roovers Date: Thu, 22 Dec 2016 08:19:03 +0000 (+0100) Subject: eclass/linux-mod.eclass: Check for TRIM_UNUSED_KSYMS (bug #591832). X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=df7f1d7932de1cc6b8f9027a26d6e4c8dc65ca07;p=gentoo.git eclass/linux-mod.eclass: Check for TRIM_UNUSED_KSYMS (bug #591832). --- diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 84b278686396..270eff5090c1 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; }