/[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.14 Revision 1.15
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.14 2004/12/29 10:11:16 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.15 2005/01/06 13:58:15 johnm 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.
250 250
251linux-mod_pkg_setup() { 251linux-mod_pkg_setup() {
252 linux-info_pkg_setup; 252 linux-info_pkg_setup;
253 check_kernel_built; 253 check_kernel_built;
254 check_modules_supported; 254 check_modules_supported;
255 check_extra_config;
256 set_kvobj; 255 set_kvobj;
257} 256}
258 257
259linux-mod_src_compile() { 258linux-mod_src_compile() {
260 local modulename moduledir sourcedir moduletemp xarch i 259 local modulename moduledir sourcedir moduletemp xarch i
273 moduledir="${moduledir:-misc}" 272 moduledir="${moduledir:-misc}"
274 sourcedir="${sourcedir:-${S}}" 273 sourcedir="${sourcedir:-${S}}"
275 274
276 einfo "Preparing ${modulename} module" 275 einfo "Preparing ${modulename} module"
277 cd ${sourcedir} 276 cd ${sourcedir}
278 emake ${BUILD_PARAMS} ${BUILD_TARGETS:-clean module} || die Unable to make ${BUILD_PARAMS} ${BUILD_TARGETS:-clean module}. 277 emake ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS:-clean module} || \
278 die Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS:-clean module}.
279 done 279 done
280 ARCH="${xarch}" 280 ARCH="${xarch}"
281} 281}
282 282
283linux-mod_src_install() { 283linux-mod_src_install() {

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20