/[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.78 Revision 1.79
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.78 2008/01/22 21:05:32 dsd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.79 2008/03/22 01:10:19 robbat2 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.
511 if [[ -n ${ECONF_PARAMS} ]] 511 if [[ -n ${ECONF_PARAMS} ]]
512 then 512 then
513 econf ${ECONF_PARAMS} || \ 513 econf ${ECONF_PARAMS} || \
514 die "Unable to run econf ${ECONF_PARAMS}" 514 die "Unable to run econf ${ECONF_PARAMS}"
515 fi 515 fi
516 516
517 emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \ 517 # This looks messy, but it is needed to handle multiple variables
518 ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \ 518 # being passed in the BUILD_* stuff where the variables also have
519 || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." 519 # spaces that must be preserved. If don't do this, then the stuff
520 # inside the variables gets used as targets for Make, which then
521 # fails.
522 eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" \
523 CC=\"$(get-KERNEL_CC)\" \
524 LDFLAGS=\"$(get_abi_LDFLAGS)\" \
525 ${BUILD_FIXES} \
526 ${BUILD_PARAMS} \
527 ${BUILD_TARGETS} " \
528 || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"
520 touch ${srcdir}/.built 529 touch ${srcdir}/.built
521 cd ${OLDPWD} 530 cd ${OLDPWD}
522 fi 531 fi
523 done 532 done
524 533

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.79

  ViewVC Help
Powered by ViewVC 1.1.20