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 | 423f489efd8bbecfae88fd5922e720346aaffc0a (patch) | |
tree | c75e28e6d5fb365d70f44718512f4cb837db33a6 /eclass | |
parent | Added ~sparc keyword. (Manifest recommit) (diff) | |
download | gentoo-2-423f489efd8bbecfae88fd5922e720346aaffc0a.tar.gz gentoo-2-423f489efd8bbecfae88fd5922e720346aaffc0a.tar.bz2 gentoo-2-423f489efd8bbecfae88fd5922e720346aaffc0a.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')
-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 } |