| 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.17 2005/01/15 21:19:02 johnm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.18 2005/01/15 21:46:00 johnm 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 |
| … | |
… | |
| 427 | eerror " CONFIG_${config}:\tshould not be set in the kernel configuration, but it is." |
427 | eerror " CONFIG_${config}:\tshould not be set in the kernel configuration, but it is." |
| 428 | |
428 | |
| 429 | for i in ${MODULE_NAMES} |
429 | for i in ${MODULE_NAMES} |
| 430 | do |
430 | do |
| 431 | n="${i//${temp_config}}" |
431 | n="${i//${temp_config}}" |
| 432 | [ -z "${n//(*}" ] && MODULE_IGNORE="${MODULE_IGNORE} ${i}" |
432 | [ -z "${n//(*}" ] && MODULE_IGNORE="${MODULE_IGNORE} ${temp_config}" |
| 433 | done |
433 | done |
| 434 | error=0 |
434 | error=0 |
| 435 | fi |
435 | fi |
| 436 | else |
436 | else |
| 437 | if ! linux_chkconfig_present ${config} |
437 | if ! linux_chkconfig_present ${config} |