diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-01-10 08:25:55 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-01-10 08:25:55 +0000 |
commit | cc580221ae9229194479593b89445ce3d312c1c5 (patch) | |
tree | cef862087127e944a263dd804f8b49a7e05a62c1 /eclass | |
parent | Added src_test; preparations for amd64 (diff) | |
download | historical-cc580221ae9229194479593b89445ce3d312c1c5.tar.gz historical-cc580221ae9229194479593b89445ce3d312c1c5.tar.bz2 historical-cc580221ae9229194479593b89445ce3d312c1c5.zip |
Display any configured warning or error message along with the list of config options when we cannot detect a config.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-info.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 4072a9c3d363..b9ea97f98847 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.76 2009/12/11 21:33:30 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.77 2010/01/10 08:25:55 robbat2 Exp $ # # Original author: John Mylchreest <johnm@gentoo.org> # Maintainer: kernel-misc@gentoo.org @@ -674,7 +674,13 @@ check_extra_config() { ewarn "to absence of any configured kernel sources or compiled" ewarn "config:" for config in ${CONFIG_CHECK}; do - ewarn " - ${config#\~}" + local_error="ERROR_${config#\~}" + msg="${!local_error}" + if [[ "x${msg}" == "x" ]]; then + local_error="WARNING_${config#\~}" + msg="${!local_error}" + fi + ewarn " - ${config#\~}${msg:+ - }${msg}" done ewarn "You're on your own to make sure they are set if needed." export LINUX_CONFIG_EXISTS_DONE="${old_LINUX_CONFIG_EXISTS_DONE}" |