summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorDouglas Royds <douglas.royds@taitradio.com>2020-10-13 13:48:56 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-17 12:34:29 +0100
commit7e38f67127937c98e9001646f8b19881e1026341 (patch)
treea1dcbb4547273fbd6527a2fe6e1dbe219aeb4cb7 /meta/classes
parentad30a6d470eca0f5be5c037ba37fad72e55a128c (diff)
downloadpoky-7e38f67127937c98e9001646f8b19881e1026341.tar.gz
externalsrc: No single-task lock if S != B
Allow different recipes to build things from the one external source tree in parallel, but only if the build is happening outside the source tree. (From OE-Core rev: 8c6b12683c3160a5b7c62d1fe00a9f848e062df0) Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/externalsrc.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index d200129987..dd09395788 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -85,7 +85,7 @@ python () {
85 if task.endswith("_setscene"): 85 if task.endswith("_setscene"):
86 # sstate is never going to work for external source trees, disable it 86 # sstate is never going to work for external source trees, disable it
87 bb.build.deltask(task, d) 87 bb.build.deltask(task, d)
88 else: 88 elif os.path.realpath(d.getVar('S')) == os.path.realpath(d.getVar('B')):
89 # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time 89 # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time
90 d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock") 90 d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock")
91 91