| 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.92 2008/11/02 03:02:53 gengor Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.93 2008/11/05 12:00:19 dsd Exp $ |
| 4 | |
4 | |
| 5 | # Author(s): John Mylchreest <johnm@gentoo.org>, |
5 | # Author(s): John Mylchreest <johnm@gentoo.org>, |
| 6 | # Stefan Schweizer <genstef@gentoo.org> |
6 | # Stefan Schweizer <genstef@gentoo.org> |
| 7 | # Maintainer: kernel-misc@gentoo.org |
7 | # Maintainer: kernel-misc@gentoo.org |
| 8 | # |
8 | # |
| … | |
… | |
| 612 | ABI="${KERNEL_ABI}" |
612 | ABI="${KERNEL_ABI}" |
| 613 | |
613 | |
| 614 | BUILD_TARGETS=${BUILD_TARGETS:-clean module} |
614 | BUILD_TARGETS=${BUILD_TARGETS:-clean module} |
| 615 | strip_modulenames; |
615 | strip_modulenames; |
| 616 | cd "${S}" |
616 | cd "${S}" |
|
|
617 | touch Module.symvers |
| 617 | for i in ${MODULE_NAMES} |
618 | for i in ${MODULE_NAMES} |
| 618 | do |
619 | do |
| 619 | unset libdir srcdir objdir |
620 | unset libdir srcdir objdir |
| 620 | for n in $(find_module_params ${i}) |
621 | for n in $(find_module_params ${i}) |
| 621 | do |
622 | do |
| … | |
… | |
| 626 | objdir=${objdir:-${srcdir}} |
627 | objdir=${objdir:-${srcdir}} |
| 627 | |
628 | |
| 628 | if [ ! -f "${srcdir}/.built" ]; |
629 | if [ ! -f "${srcdir}/.built" ]; |
| 629 | then |
630 | then |
| 630 | cd ${srcdir} |
631 | cd ${srcdir} |
|
|
632 | ln -s "${S}"/Module.symvers Module.symvers |
| 631 | einfo "Preparing ${modulename} module" |
633 | einfo "Preparing ${modulename} module" |
| 632 | if [[ -n ${ECONF_PARAMS} ]] |
634 | if [[ -n ${ECONF_PARAMS} ]] |
| 633 | then |
635 | then |
| 634 | econf ${ECONF_PARAMS} || \ |
636 | econf ${ECONF_PARAMS} || \ |
| 635 | die "Unable to run econf ${ECONF_PARAMS}" |
637 | die "Unable to run econf ${ECONF_PARAMS}" |