srctree.bbclass: Don't automatically use git clean.
authorChris Larson <clarson@mvista.com>
Wed, 26 Aug 2009 21:02:19 +0000 (14:02 -0700)
committerChris Larson <clarson@mvista.com>
Wed, 26 Aug 2009 21:04:48 +0000 (14:04 -0700)
This should be an opt-in feature.

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/srctree.bbclass

index 2a324cf..e2a4303 100644 (file)
@@ -126,16 +126,8 @@ def clean_make(d):
                pass
 
 python do_clean () {
-       from os.path import exists
-       from bb.build import FuncFailed
-       from bb.data import expand
-
        clean_stamps(d)
        clean_workdir(d)
-       if exists(expand("${S}/.git", d)) and \
-          exists(expand("${S}/.gitignore", d)):
-               clean_git(d)
-       else:
-               clean_builddir(d)
-               clean_make(d)
+       clean_builddir(d)
+       clean_make(d)
 }