| 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-mod.eclass,v 1.77 2007/11/16 06:12:01 zmedico Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.78 2008/01/22 21:05:32 dsd Exp $ |
| 4 | |
4 | |
| 5 | # Description: This eclass is used to interface with linux-info in such a way |
5 | # Description: This eclass is used to interface with linux-info in such a way |
| 6 | # to provide the functionality required and initial functions |
6 | # to provide the functionality required and initial functions |
| 7 | # required to install external modules against a kernel source |
7 | # required to install external modules against a kernel source |
| 8 | # tree. |
8 | # tree. |
| … | |
… | |
| 461 | |
461 | |
| 462 | linux-mod_pkg_setup() { |
462 | linux-mod_pkg_setup() { |
| 463 | debug-print-function ${FUNCNAME} $* |
463 | debug-print-function ${FUNCNAME} $* |
| 464 | |
464 | |
| 465 | linux-info_pkg_setup; |
465 | linux-info_pkg_setup; |
|
|
466 | require_configured_kernel |
| 466 | check_kernel_built; |
467 | check_kernel_built; |
| 467 | strip_modulenames; |
468 | strip_modulenames; |
| 468 | [[ -n ${MODULE_NAMES} ]] && check_modules_supported |
469 | [[ -n ${MODULE_NAMES} ]] && check_modules_supported |
| 469 | set_kvobj; |
470 | set_kvobj; |
| 470 | # Commented out with permission from johnm until a fixed version for arches |
471 | # Commented out with permission from johnm until a fixed version for arches |