diff options
author | John Mylchreest <johnm@gentoo.org> | 2004-12-06 22:05:08 +0000 |
---|---|---|
committer | John Mylchreest <johnm@gentoo.org> | 2004-12-06 22:05:08 +0000 |
commit | 165d36db737552697d4582c3f76ac37c8f72b5c8 (patch) | |
tree | 2ac92686c3ed828aebf2bbc1af19987a540ac83f /eclass/linux-mod.eclass | |
parent | Adding support for BUILD_TARGETS (diff) | |
download | gentoo-2-165d36db737552697d4582c3f76ac37c8f72b5c8.tar.gz gentoo-2-165d36db737552697d4582c3f76ac37c8f72b5c8.tar.bz2 gentoo-2-165d36db737552697d4582c3f76ac37c8f72b5c8.zip |
moving make clean and fixing SUBDIR typos
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index bffb1205ea75..ed80203bc47d 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -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.7 2004/12/06 21:41:39 johnm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.8 2004/12/06 22:05:08 johnm Exp $ # This eclass provides functions for compiling external kernel modules # from source. @@ -28,7 +28,7 @@ use_m() { get_version; # if the kernel version is greater than 2.6.6 then we should use - # M= instead of SUBDIR= + # M= instead of SUBDIRS= [ ${KV_MAJOR} -eq 2 -a ${KV_MINOR} -gt 5 -a ${KV_PATCH} -gt 5 ] && \ return 0 || return 1 } @@ -37,7 +37,7 @@ convert_to_m() { [ ! -f "${1}" ] && die "convert_to_m() requires a filename as an argument" if use_m then - ebegin "Converting ${1/${WORKDIR}\//} to use M= instead of SUBDIR=" + ebegin "Converting ${1/${WORKDIR}\//} to use M= instead of SUBDIRS=" sed -i 's:SUBDIRS=:M=:g' ${1} eend $? fi @@ -131,8 +131,7 @@ linux-mod_src_compile() { einfo "Preparing ${modulename} module" cd ${sourcedir} - emake clean || die Unable to make clean. - emake ${BUILD_PARAMS} ${BUILD_TARGETS:-module} || die Unable to make ${BUILD_PARAMS} module. + emake ${BUILD_PARAMS} ${BUILD_TARGETS:-clean module} || die Unable to make ${BUILD_PARAMS} ${BUILD_TARGETS:-clean module}. done ARCH="${xarch}" } |