Adding support for BUILD_TARGETS
authorJohn Mylchreest <johnm@gentoo.org>
Mon, 6 Dec 2004 21:41:39 +0000 (21:41 +0000)
committerJohn Mylchreest <johnm@gentoo.org>
Mon, 6 Dec 2004 21:41:39 +0000 (21:41 +0000)
eclass/linux-mod.eclass

index 83b1a9cd537a178e85203794c1c286116fa44e2a..bffb1205ea7511b5fd643009c9195d1d4ee88bd0 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.6 2004/12/06 18:33:11 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.7 2004/12/06 21:41:39 johnm Exp $
 
 # This eclass provides functions for compiling external kernel modules
 # from source.
@@ -132,7 +132,7 @@ linux-mod_src_compile() {
                einfo "Preparing ${modulename} module"
                cd ${sourcedir}
                emake clean || die Unable to make clean.
-               emake ${BUILD_PARAMS} module || die Unable to make ${BUILD_PARAMS} module.
+               emake ${BUILD_PARAMS} ${BUILD_TARGETS:-module} || die Unable to make ${BUILD_PARAMS} module.
        done
        ARCH="${xarch}"
 }