| 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.38 2006/01/20 14:27:47 dsd 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 |
| … | |
… | |
| 410 | temp_config="${config//*:}" |
410 | temp_config="${config//*:}" |
| 411 | config="${config//:*}" |
411 | config="${config//:*}" |
| 412 | if linux_chkconfig_present ${config}; then |
412 | if linux_chkconfig_present ${config}; then |
| 413 | for i in ${MODULE_NAMES}; do |
413 | for i in ${MODULE_NAMES}; do |
| 414 | n="${i//${temp_config}}" |
414 | n="${i//${temp_config}}" |
| 415 | [[ -z ${n//(*} ]] && \ |
415 | [[ -z ${n//\(*} ]] && \ |
| 416 | MODULE_IGNORE="${MODULE_IGNORE} ${temp_config}" |
416 | MODULE_IGNORE="${MODULE_IGNORE} ${temp_config}" |
| 417 | done |
417 | done |
| 418 | error=2 |
418 | error=2 |
| 419 | fi |
419 | fi |
| 420 | else |
420 | else |