Gentoo Archives: gentoo-commits

From: "Daniel Drake (dsd)" <dsd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: linux-mod.eclass
Date: Fri, 31 Oct 2008 21:25:59
Message-Id: E1Kw1VE-0008AU-M2@stork.gentoo.org
1 dsd 08/10/31 21:25:56
2
3 Modified: linux-mod.eclass
4 Log:
5 add some documentation, patch from Eric Brown in bug #190934
6
7 Revision Changes Path
8 1.85 eclass/linux-mod.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?rev=1.85&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?rev=1.85&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?r1=1.84&r2=1.85
13
14 Index: linux-mod.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v
17 retrieving revision 1.84
18 retrieving revision 1.85
19 diff -u -r1.84 -r1.85
20 --- linux-mod.eclass 27 Oct 2008 05:22:13 -0000 1.84
21 +++ linux-mod.eclass 31 Oct 2008 21:25:56 -0000 1.85
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.84 2008/10/27 05:22:13 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.85 2008/10/31 21:25:56 dsd Exp $
27
28 # Description: This eclass is used to interface with linux-info in such a way
29 # to provide the functionality required and initial functions
30 @@ -37,6 +37,20 @@
31 #
32 # The structure of each MODULE_NAMES entry is as follows:
33 # modulename(libdir:srcdir:objdir)
34 +#
35 +# modulename = name of the module file excluding the .ko
36 +# libdir = place in system modules directory where module is installed:
37 +# srcdir = place for ebuild to cd to before running make
38 +# objdir = place the .ko and objects are located after make runs
39 +#
40 +# To get an idea of how these variables are used, here's a few lines
41 +# of code from around line 540 in this eclass:
42 +#
43 +# einfo "Installing ${modulename} module"
44 +# cd ${objdir} || die "${objdir} does not exist"
45 +# insinto /lib/modules/${KV_FULL}/${libdir}
46 +# doins ${modulename}.${KV_OBJ} || die "doins ${modulename}.${KV_OBJ} failed"
47 +#
48 # for example:
49 # MODULE_NAMES="module_pci(pci:${S}/pci:${S}) module_usb(usb:${S}/usb:${S})"
50 #