/[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.82 Revision 1.83
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.82 2008/09/30 05:27:42 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.83 2008/10/27 05:20:30 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.
520 if [[ -n ${ECONF_PARAMS} ]] 520 if [[ -n ${ECONF_PARAMS} ]]
521 then 521 then
522 econf ${ECONF_PARAMS} || \ 522 econf ${ECONF_PARAMS} || \
523 die "Unable to run econf ${ECONF_PARAMS}" 523 die "Unable to run econf ${ECONF_PARAMS}"
524 fi 524 fi
525 525
526 # This looks messy, but it is needed to handle multiple variables 526 # This looks messy, but it is needed to handle multiple variables
527 # being passed in the BUILD_* stuff where the variables also have 527 # being passed in the BUILD_* stuff where the variables also have
528 # spaces that must be preserved. If don't do this, then the stuff 528 # spaces that must be preserved. If don't do this, then the stuff
529 # inside the variables gets used as targets for Make, which then 529 # inside the variables gets used as targets for Make, which then
530 # fails. 530 # fails.
531 eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" \ 531 eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" \
532 CC=\"$(get-KERNEL_CC)\" \ 532 CROSS_COMPILE=${CHOST}- \
533 LDFLAGS=\"$(get_abi_LDFLAGS)\" \ 533 LDFLAGS=\"$(get_abi_LDFLAGS)\" \
534 ${BUILD_FIXES} \ 534 ${BUILD_FIXES} \
535 ${BUILD_PARAMS} \ 535 ${BUILD_PARAMS} \
536 ${BUILD_TARGETS} " \ 536 ${BUILD_TARGETS} " \
537 || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}" 537 || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}"
538 touch ${srcdir}/.built 538 touch ${srcdir}/.built
539 cd ${OLDPWD} 539 cd ${OLDPWD}
540 fi 540 fi
541 done 541 done
542 542

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

  ViewVC Help
Powered by ViewVC 1.1.20