summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/externalsrc.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 3f1d39689b..ce8517c58b 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -53,6 +53,8 @@ python () {
53 d.setVar('BB_DONT_CACHE', '1') 53 d.setVar('BB_DONT_CACHE', '1')
54 54
55 if externalsrc: 55 if externalsrc:
56 import oe.recipeutils
57
56 d.setVar('S', externalsrc) 58 d.setVar('S', externalsrc)
57 if externalsrcbuild: 59 if externalsrcbuild:
58 d.setVar('B', externalsrcbuild) 60 d.setVar('B', externalsrcbuild)
@@ -85,7 +87,7 @@ python () {
85 d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock") 87 d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock")
86 88
87 # We do not want our source to be wiped out, ever (kernel.bbclass does this for do_clean) 89 # We do not want our source to be wiped out, ever (kernel.bbclass does this for do_clean)
88 cleandirs = (d.getVarFlag(task, 'cleandirs', False) or '').split() 90 cleandirs = oe.recipeutils.split_var_value(d.getVarFlag(task, 'cleandirs', False) or '')
89 setvalue = False 91 setvalue = False
90 for cleandir in cleandirs[:]: 92 for cleandir in cleandirs[:]:
91 if d.expand(cleandir) == externalsrc: 93 if d.expand(cleandir) == externalsrc: