| 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.90 2008/11/01 14:56:59 gengor Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.91 2008/11/01 23:19:15 dsd Exp $ |
| 4 | |
4 | |
| 5 | # Author(s): John Mylchreest <johnm@gentoo.org>, |
5 | # Author(s): John Mylchreest <johnm@gentoo.org>, |
| 6 | # Stefan Schweizer <genstef@gentoo.org> |
6 | # Stefan Schweizer <genstef@gentoo.org> |
| 7 | # Maintainer: kernel-misc@gentoo.org |
7 | # Maintainer: kernel-misc@gentoo.org |
| 8 | # |
8 | # |
| … | |
… | |
| 41 | |
41 | |
| 42 | # @ECLASS-VARIABLE: MODULE_NAMES |
42 | # @ECLASS-VARIABLE: MODULE_NAMES |
| 43 | # @DESCRIPTION: |
43 | # @DESCRIPTION: |
| 44 | # It's a string containing the modules to be built automatically using the default |
44 | # It's a string containing the modules to be built automatically using the default |
| 45 | # src_compile/src_install. It will only make ${BUILD_TARGETS} once in any directory. |
45 | # src_compile/src_install. It will only make ${BUILD_TARGETS} once in any directory. |
| 46 | |
|
|
| 47 | # |
46 | # |
| 48 | # The structure of each MODULE_NAMES entry is as follows: |
47 | # The structure of each MODULE_NAMES entry is as follows: |
| 49 | # |
48 | # |
| 50 | # modulename(libdir:srcdir:objdir) |
49 | # modulename(libdir:srcdir:objdir) |
| 51 | # |
50 | # |
| 52 | # where: |
51 | # where: |
| 53 | # |
52 | # |
| 54 | # modulename = name of the module file excluding the .ko |
53 | # modulename = name of the module file excluding the .ko |
| 55 | # libdir = place in system modules directory where module is installed: |
54 | # libdir = place in system modules directory where module is installed (by default it's misc) |
| 56 | # srcdir = place for ebuild to cd to before running make |
55 | # srcdir = place for ebuild to cd to before running make (by default it's ${S}) |
| 57 | # objdir = place the .ko and objects are located after make runs |
56 | # objdir = place the .ko and objects are located after make runs (by default it's set to srcdir) |
| 58 | # |
57 | # |
| 59 | # To get an idea of how these variables are used, here's a few lines |
58 | # To get an idea of how these variables are used, here's a few lines |
| 60 | # of code from around line 540 in this eclass: |
59 | # of code from around line 540 in this eclass: |
| 61 | # |
60 | # |
| 62 | # einfo "Installing ${modulename} module" |
61 | # einfo "Installing ${modulename} module" |