| 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.86 2008/10/31 22:24:55 dsd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.89 2008/10/31 23:43:48 gengor 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 | # |
| … | |
… | |
| 135 | EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst src_install src_compile pkg_postrm |
135 | EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst src_install src_compile pkg_postrm |
| 136 | |
136 | |
| 137 | IUSE="kernel_linux" |
137 | IUSE="kernel_linux" |
| 138 | SLOT="0" |
138 | SLOT="0" |
| 139 | DESCRIPTION="Based on the $ECLASS eclass" |
139 | DESCRIPTION="Based on the $ECLASS eclass" |
|
|
140 | # Restrict distributed compile of kernel modules bug #167844 |
|
|
141 | RESTRICT="distcc" |
| 140 | RDEPEND="kernel_linux? ( virtual/modutils )" |
142 | RDEPEND="kernel_linux? ( virtual/modutils )" |
| 141 | DEPEND="${RDEPEND} |
143 | DEPEND="${RDEPEND} |
| 142 | sys-apps/sed" |
144 | sys-apps/sed" |
| 143 | |
145 | |
| 144 | # eclass utilities |
146 | # eclass utilities |
| … | |
… | |
| 646 | LDFLAGS=\"$(get_abi_LDFLAGS)\" \ |
648 | LDFLAGS=\"$(get_abi_LDFLAGS)\" \ |
| 647 | ${BUILD_FIXES} \ |
649 | ${BUILD_FIXES} \ |
| 648 | ${BUILD_PARAMS} \ |
650 | ${BUILD_PARAMS} \ |
| 649 | ${BUILD_TARGETS} " \ |
651 | ${BUILD_TARGETS} " \ |
| 650 | || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}" |
652 | || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}" |
|
|
653 | cd ${OLDPWD} |
| 651 | touch ${srcdir}/.built |
654 | touch ${srcdir}/.built |
| 652 | cd ${OLDPWD} |
|
|
| 653 | fi |
655 | fi |
| 654 | done |
656 | done |
| 655 | |
657 | |
| 656 | set_arch_to_portage |
658 | set_arch_to_portage |
| 657 | ABI="${myABI}" |
659 | ABI="${myABI}" |