/[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.37 Revision 1.40
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.37 2006/01/14 00:15:07 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.40 2006/02/16 21:46:50 exg Exp $
4# 4#
5# Description: This eclass is used as a central eclass for accessing kernel 5# Description: This eclass is used as a central eclass for accessing kernel
6# related information for sources already installed. 6# related information for sources already installed.
7# It is vital for linux-mod to function correctly, and is split 7# It is vital for linux-mod to function correctly, and is split
8# out so that any ebuild behaviour "templates" are abstracted out 8# out so that any ebuild behaviour "templates" are abstracted out
51 51
52# And to ensure all the weirdness with crosscompile 52# And to ensure all the weirdness with crosscompile
53inherit toolchain-funcs versionator 53inherit toolchain-funcs versionator
54 54
55EXPORT_FUNCTIONS pkg_setup 55EXPORT_FUNCTIONS pkg_setup
56
57DEPEND="kernel_linux? ( virtual/linux-sources )"
58RDEPEND=""
56 59
57# Overwritable environment Var's 60# Overwritable environment Var's
58# --------------------------------------- 61# ---------------------------------------
59KERNEL_DIR="${KERNEL_DIR:-${ROOT}usr/src/linux}" 62KERNEL_DIR="${KERNEL_DIR:-${ROOT}usr/src/linux}"
60 63
410 temp_config="${config//*:}" 413 temp_config="${config//*:}"
411 config="${config//:*}" 414 config="${config//:*}"
412 if linux_chkconfig_present ${config}; then 415 if linux_chkconfig_present ${config}; then
413 for i in ${MODULE_NAMES}; do 416 for i in ${MODULE_NAMES}; do
414 n="${i//${temp_config}}" 417 n="${i//${temp_config}}"
415 [[ -z ${n//(*} ]] && \ 418 [[ -z ${n//\(*} ]] && \
416 MODULE_IGNORE="${MODULE_IGNORE} ${temp_config}" 419 MODULE_IGNORE="${MODULE_IGNORE} ${temp_config}"
417 done 420 done
418 error=2 421 error=2
419 fi 422 fi
420 else 423 else

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20