diff options
author | John Mylchreest <johnm@gentoo.org> | 2004-12-10 22:43:03 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2004-12-10 22:43:03 +0000 |
commit | 0310348cc2083c506fd816055b068b58d1be63c5 (patch) | |
tree | 279571e53ceef8d263f5bc441f065224b4bcf048 /eclass/linux-info.eclass | |
parent | Added ~sparc keyword. (diff) | |
download | historical-0310348cc2083c506fd816055b068b58d1be63c5.tar.gz historical-0310348cc2083c506fd816055b068b58d1be63c5.tar.bz2 historical-0310348cc2083c506fd816055b068b58d1be63c5.zip |
Moving .config check, so this is purely a sanity test now. If we use LOCALVERSION in the .config, we will laready have failed the test but the sanity check will cause it to bail. Fixes bug: #73726
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r-- | eclass/linux-info.eclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 09a473f2ebb0..96b73bfb63e0 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.8 2004/12/06 18:33:10 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.9 2004/12/10 22:43:03 johnm Exp $ # # This eclass provides functions for querying the installed kernel # source version, selected kernel options etc. @@ -169,13 +169,6 @@ get_version() { eerror "Please ensure that ${KERNEL_DIR} points to a complete set of Linux sources" die "Makefile not found in ${KV_DIR}" fi - - if [ ! -s "${KV_DIR}/.config" ] - then - eerror "Could not find a usable .config in the kernel source directory." - eerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources" - die ".config not found in ${KV_DIR}" - fi # OK so now we know our sources directory, but they might be using # KBUILD_OUTPUT, and we need this for .config and localversions-* @@ -230,6 +223,13 @@ get_version() { einfo "Found sources for kernel version:" einfo " ${KV_FULL}" + + if [ ! -s "${KV_OUT_DIR}/.config" ] + then + eerror "Could not find a usable .config in the kernel source directory." + eerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources" + die ".config not found in ${KV_OUT_DIR}" + fi } |