/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.8 2004/12/06 18:33:10 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.9 2004/12/10 22:43:03 johnm Exp $
4# 4#
5# This eclass provides functions for querying the installed kernel 5# This eclass provides functions for querying the installed kernel
6# source version, selected kernel options etc. 6# source version, selected kernel options etc.
7# 7#
8 8
167 then 167 then
168 eerror "Could not find a Makefile in the kernel source directory." 168 eerror "Could not find a Makefile in the kernel source directory."
169 eerror "Please ensure that ${KERNEL_DIR} points to a complete set of Linux sources" 169 eerror "Please ensure that ${KERNEL_DIR} points to a complete set of Linux sources"
170 die "Makefile not found in ${KV_DIR}" 170 die "Makefile not found in ${KV_DIR}"
171 fi 171 fi
172
173 if [ ! -s "${KV_DIR}/.config" ]
174 then
175 eerror "Could not find a usable .config in the kernel source directory."
176 eerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources"
177 die ".config not found in ${KV_DIR}"
178 fi
179 172
180 # OK so now we know our sources directory, but they might be using 173 # OK so now we know our sources directory, but they might be using
181 # KBUILD_OUTPUT, and we need this for .config and localversions-* 174 # KBUILD_OUTPUT, and we need this for .config and localversions-*
182 # so we better find it eh? 175 # so we better find it eh?
183 # do we pass KBUILD_OUTPUT on the CLI? 176 # do we pass KBUILD_OUTPUT on the CLI?
228 # And we should set KV_FULL to the full expanded version 221 # And we should set KV_FULL to the full expanded version
229 KV_FULL="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}${KV_LOCAL}" 222 KV_FULL="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}${KV_LOCAL}"
230 223
231 einfo "Found sources for kernel version:" 224 einfo "Found sources for kernel version:"
232 einfo " ${KV_FULL}" 225 einfo " ${KV_FULL}"
226
227 if [ ! -s "${KV_OUT_DIR}/.config" ]
228 then
229 eerror "Could not find a usable .config in the kernel source directory."
230 eerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources"
231 die ".config not found in ${KV_OUT_DIR}"
232 fi
233} 233}
234 234
235 235
236 236
237 237

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20