]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix images build in parallel
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Fri, 17 Jan 2020 21:46:12 +0000 (00:46 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Jan 2020 13:24:32 +0000 (13:24 +0000)
commitc68d8a37ba4348fe1c0e75c63b5668187d326ec2
tree26726e94b6b85f528458bdc3862bd2c3d6336e59
parentb632c37581911228d6c9501feada17a215b9b442
wic: fix images build in parallel

OE wic plugins create temporary file with the index of the line
tmp file name. This causes race in case several builds run in time.
If source_params['file'] is an absolute path, the cr_workdir prefix
is not applied by os.path.join(). So instead it writes to a ".1"
file next to the original image - this is outside the WORKDIR
and at risk of collision.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Suggested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Suggested-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/rawcopy.py