From: Douglas Royds Date: Tue, 13 Oct 2020 00:48:56 +0000 (+1300) Subject: externalsrc: No single-task lock if S != B X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~9913 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c6b12683c3160a5b7c62d1fe00a9f848e062df0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Douglas Royds Signed-off-by: Richard Purdie --- diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index d2001299876..dd09395788e 100644 --- a/meta/classes/externalsrc.bbclass +++ b/meta/classes/externalsrc.bbclass @@ -85,7 +85,7 @@ python () { if task.endswith("_setscene"): # sstate is never going to work for external source trees, disable it bb.build.deltask(task, d) - else: + elif os.path.realpath(d.getVar('S')) == os.path.realpath(d.getVar('B')): # Since configure will likely touch ${S}, ensure only we lock so one task has access at a time d.appendVarFlag(task, "lockfiles", " ${S}/singletask.lock")