/[gentoo-x86]/eclass/linux-mod.eclass
Gentoo

Diff of /eclass/linux-mod.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
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.8 2004/12/06 22:05:08 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.9 2004/12/06 22:23:17 johnm Exp $
4 4
5# This eclass provides functions for compiling external kernel modules 5# This eclass provides functions for compiling external kernel modules
6# from source. 6# from source.
7 7
8inherit linux-info 8inherit linux-info
118linux-mod_src_compile() { 118linux-mod_src_compile() {
119 local modulename moduledir sourcedir module_temp xarch i 119 local modulename moduledir sourcedir module_temp xarch i
120 xarch="${ARCH}" 120 xarch="${ARCH}"
121 unset ARCH 121 unset ARCH
122 122
123 for i in "${MODULE_NAMES}" 123 for i in ${MODULE_NAMES}
124 do 124 do
125 module_temp="$(echo ${i} | sed -e "s:.*(\(.*\)):\1:")" 125 module_temp="$(echo ${i} | sed -e "s:.*(\(.*\)):\1:")"
126 modulename="${i/(*/}" 126 modulename="${i/(*/}"
127 moduledir="${module_temp/:*/}" 127 moduledir="${module_temp/:*/}"
128 moduledir="${moduledir:-misc}" 128 moduledir="${moduledir:-misc}"
137} 137}
138 138
139linux-mod_src_install() { 139linux-mod_src_install() {
140 local modulename moduledir sourcedir module_temp i 140 local modulename moduledir sourcedir module_temp i
141 141
142 for i in "${MODULE_NAMES}" 142 for i in ${MODULE_NAMES}
143 do 143 do
144 module_temp="$(echo ${i} | sed -e "s:.*(\(.*\)):\1:")" 144 module_temp="$(echo ${i} | sed -e "s:.*(\(.*\)):\1:")"
145 modulename="${i/(*/}" 145 modulename="${i/(*/}"
146 moduledir="${module_temp/:*/}" 146 moduledir="${module_temp/:*/}"
147 moduledir="${moduledir:-misc}" 147 moduledir="${moduledir:-misc}"

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20