/[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.83 Revision 1.84
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.83 2008/10/27 05:20:30 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.84 2008/10/27 05:22:13 vapier 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.
493} 493}
494 494
495linux-mod_src_compile() { 495linux-mod_src_compile() {
496 debug-print-function ${FUNCNAME} $* 496 debug-print-function ${FUNCNAME} $*
497 497
498 local modulename libdir srcdir objdir i n myARCH="${ARCH}" myABI="${ABI}" 498 local modulename libdir srcdir objdir i n myABI="${ABI}"
499 ARCH="$(tc-arch-kernel)" 499 set_arch_to_kernel
500 ABI="${KERNEL_ABI}" 500 ABI="${KERNEL_ABI}"
501 501
502 BUILD_TARGETS=${BUILD_TARGETS:-clean module} 502 BUILD_TARGETS=${BUILD_TARGETS:-clean module}
503 strip_modulenames; 503 strip_modulenames;
504 cd "${S}" 504 cd "${S}"
538 touch ${srcdir}/.built 538 touch ${srcdir}/.built
539 cd ${OLDPWD} 539 cd ${OLDPWD}
540 fi 540 fi
541 done 541 done
542 542
543 ARCH="${myARCH}" 543 set_arch_to_portage
544 ABI="${myABI}" 544 ABI="${myABI}"
545} 545}
546 546
547linux-mod_src_install() { 547linux-mod_src_install() {
548 debug-print-function ${FUNCNAME} $* 548 debug-print-function ${FUNCNAME} $*

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

  ViewVC Help
Powered by ViewVC 1.1.20