| 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 |
| 53 | inherit toolchain-funcs versionator |
53 | inherit toolchain-funcs versionator |
| 54 | |
54 | |
| 55 | EXPORT_FUNCTIONS pkg_setup |
55 | EXPORT_FUNCTIONS pkg_setup |
|
|
56 | |
|
|
57 | DEPEND="kernel_linux? ( virtual/linux-sources )" |
|
|
58 | RDEPEND="" |
| 56 | |
59 | |
| 57 | # Overwritable environment Var's |
60 | # Overwritable environment Var's |
| 58 | # --------------------------------------- |
61 | # --------------------------------------- |
| 59 | KERNEL_DIR="${KERNEL_DIR:-${ROOT}usr/src/linux}" |
62 | KERNEL_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 |