summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/externalsrc.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes-recipe/externalsrc.bbclass b/meta/classes-recipe/externalsrc.bbclass
index 51dbe9ea5a..ce753fce76 100644
--- a/meta/classes-recipe/externalsrc.bbclass
+++ b/meta/classes-recipe/externalsrc.bbclass
@@ -91,16 +91,18 @@ python () {
91 # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time 91 # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time
92 d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock") 92 d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock")
93 93
94 for funcname in [task, "base_" + task, "kernel_" + task]: 94 for v in d.keys():
95 cleandirs = d.getVarFlag(v, "cleandirs", False)
96 if cleandirs:
95 # We do not want our source to be wiped out, ever (kernel.bbclass does this for do_clean) 97 # We do not want our source to be wiped out, ever (kernel.bbclass does this for do_clean)
96 cleandirs = oe.recipeutils.split_var_value(d.getVarFlag(funcname, 'cleandirs', False) or '') 98 cleandirs = oe.recipeutils.split_var_value(cleandirs)
97 setvalue = False 99 setvalue = False
98 for cleandir in cleandirs[:]: 100 for cleandir in cleandirs[:]:
99 if oe.path.is_path_parent(externalsrc, d.expand(cleandir)): 101 if oe.path.is_path_parent(externalsrc, d.expand(cleandir)):
100 cleandirs.remove(cleandir) 102 cleandirs.remove(cleandir)
101 setvalue = True 103 setvalue = True
102 if setvalue: 104 if setvalue:
103 d.setVarFlag(funcname, 'cleandirs', ' '.join(cleandirs)) 105 d.setVarFlag(v, 'cleandirs', ' '.join(cleandirs))
104 106
105 fetch_tasks = ['do_fetch', 'do_unpack'] 107 fetch_tasks = ['do_fetch', 'do_unpack']
106 # If we deltask do_patch, there's no dependency to ensure do_unpack gets run, so add one 108 # If we deltask do_patch, there's no dependency to ensure do_unpack gets run, so add one