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