diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-10-31 21:25:56 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-10-31 21:25:56 +0000 |
commit | 4fe3b214a13873d491421c77cf7176d744e42d61 (patch) | |
tree | a1e2dacf90ca54362914d33bd9dce5ad76074c55 /eclass/linux-mod.eclass | |
parent | Version bump, thanks to Arfrever Frehtes Taifersar Arahesis in bug #190737 (diff) | |
download | historical-4fe3b214a13873d491421c77cf7176d744e42d61.tar.gz historical-4fe3b214a13873d491421c77cf7176d744e42d61.tar.bz2 historical-4fe3b214a13873d491421c77cf7176d744e42d61.zip |
add some documentation, patch from Eric Brown in bug #190934
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 2a562283a245..8a085e197473 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.84 2008/10/27 05:22:13 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.85 2008/10/31 21:25:56 dsd Exp $ # Description: This eclass is used to interface with linux-info in such a way # to provide the functionality required and initial functions @@ -37,6 +37,20 @@ # # The structure of each MODULE_NAMES entry is as follows: # modulename(libdir:srcdir:objdir) +# +# modulename = name of the module file excluding the .ko +# libdir = place in system modules directory where module is installed: +# srcdir = place for ebuild to cd to before running make +# objdir = place the .ko and objects are located after make runs +# +# To get an idea of how these variables are used, here's a few lines +# of code from around line 540 in this eclass: +# +# einfo "Installing ${modulename} module" +# cd ${objdir} || die "${objdir} does not exist" +# insinto /lib/modules/${KV_FULL}/${libdir} +# doins ${modulename}.${KV_OBJ} || die "doins ${modulename}.${KV_OBJ} failed" +# # for example: # MODULE_NAMES="module_pci(pci:${S}/pci:${S}) module_usb(usb:${S}/usb:${S})" # |