summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-20 23:31:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-22 12:36:40 +0000
commitd6799e655e21c3c3ef60f5dec5eb53a693430a2f (patch)
tree150c2105c1b4f9605ef5bdd5be1a653f608f4f16 /bitbake/lib
parentd156f2ce333c7bdd9573daab9f27c2bd10888c74 (diff)
downloadpoky-d6799e655e21c3c3ef60f5dec5eb53a693430a2f.tar.gz
bitbake: siggen: Fix clean_basepath to work with multiconfig
Tasknames can now start with "multiconfig:" which broke the virtual: comparison code and lead to unpredictable checksums with nativesdk recipes. This adds in handling for the new additional prefix which unbreaks nativesdk builds when using multiconfig. (Bitbake rev: 4da296c0c93391ec37f8b6e2245071657759771e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/siggen.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/siggen.py b/bitbake/lib/bb/siggen.py
index 659d27dfd2..4226c80c85 100644
--- a/bitbake/lib/bb/siggen.py
+++ b/bitbake/lib/bb/siggen.py
@@ -352,9 +352,14 @@ def dump_this_task(outfile, d):
352 bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp) 352 bb.parse.siggen.dump_sigtask(fn, task, outfile, "customfile:" + referencestamp)
353 353
354def clean_basepath(a): 354def clean_basepath(a):
355 mc = None
356 if a.startswith("multiconfig:"):
357 _, mc, a = a.split(":", 2)
355 b = a.rsplit("/", 2)[1] + a.rsplit("/", 2)[2] 358 b = a.rsplit("/", 2)[1] + a.rsplit("/", 2)[2]
356 if a.startswith("virtual:"): 359 if a.startswith("virtual:"):
357 b = b + ":" + a.rsplit(":", 1)[0] 360 b = b + ":" + a.rsplit(":", 1)[0]
361 if mc:
362 b = b + ":multiconfig:" + mc
358 return b 363 return b
359 364
360def clean_basepaths(a): 365def clean_basepaths(a):