/[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.63 Revision 1.64
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.63 2006/04/02 19:14:10 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.64 2006/05/11 08:23:43 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.
482 482
483linux-mod_src_compile() { 483linux-mod_src_compile() {
484 local modulename libdir srcdir objdir i n myARCH="${ARCH}" myABI="${ABI}" 484 local modulename libdir srcdir objdir i n myARCH="${ARCH}" myABI="${ABI}"
485 ARCH="$(tc-arch-kernel)" 485 ARCH="$(tc-arch-kernel)"
486 ABI="${KERNEL_ABI}" 486 ABI="${KERNEL_ABI}"
487 CC_HOSTCC=$(tc-getBUILD_CC)
488 CC_CC=$(tc-getCC)
487 489
488 BUILD_TARGETS=${BUILD_TARGETS:-clean module} 490 BUILD_TARGETS=${BUILD_TARGETS:-clean module}
489 strip_modulenames; 491 strip_modulenames;
490 for i in ${MODULE_NAMES} 492 for i in ${MODULE_NAMES}
491 do 493 do
506 then 508 then
507 econf ${ECONF_PARAMS} || \ 509 econf ${ECONF_PARAMS} || \
508 die "Unable to run econf ${ECONF_PARAMS}" 510 die "Unable to run econf ${ECONF_PARAMS}"
509 fi 511 fi
510 512
513 emake HOSTCC=${CC_HOSTCC} CC=${CC_CC}\
511 emake ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \ 514 ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
512 || die "Unable to make \ 515 || die "Unable to make \
513 ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." 516 ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
514 touch ${srcdir}/.built 517 touch ${srcdir}/.built
515 cd ${OLDPWD} 518 cd ${OLDPWD}
516 fi 519 fi

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20