diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-29 16:33:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-02 21:37:47 +0100 |
commit | f1079cd1935e625c6acba3f3a2b2d493fbadddef (patch) | |
tree | b2f31edfb840b4a6ec8cca48ad0cc2e551b03ea9 /meta/classes/utils.bbclass | |
parent | e9e1107c6133c5363cf2849339697bc4dad2b2e3 (diff) | |
download | poky-f1079cd1935e625c6acba3f3a2b2d493fbadddef.tar.gz |
staging/image: Fix multilib recipe sysroot issues
Currently if you enable multilib, then build an image, the multilib
recipe sysroot is build in the wrong WORKDIR. If you then clean and
rebuild the image you see "file exists" errors.
This patch ensures the real WORKDIR is used consistently and then
cleans/rebuilds also work correctly.
(From OE-Core rev: c013ae59a158378d06ecf8eb123df0a10bf986b4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 4f016e3d00..3f4f51b56b 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -338,6 +338,8 @@ def all_multilib_tune_values(d, var, unique = True, need_split = True, delim = ' | |||
338 | variants = d.getVar("MULTILIB_VARIANTS") or "" | 338 | variants = d.getVar("MULTILIB_VARIANTS") or "" |
339 | for item in variants.split(): | 339 | for item in variants.split(): |
340 | localdata = get_multilib_datastore(item, d) | 340 | localdata = get_multilib_datastore(item, d) |
341 | # We need WORKDIR to be consistent with the original datastore | ||
342 | localdata.setVar("WORKDIR", d.getVar("WORKDIR")) | ||
341 | value = localdata.getVar(var) or "" | 343 | value = localdata.getVar(var) or "" |
342 | if value != "": | 344 | if value != "": |
343 | if need_split: | 345 | if need_split: |