[OE-core] [PATCHv2] wic: fix images build in parallel
maxim.uvarov at linaro.org
Mon Jan 13 14:11:55 UTC 2020
On Mon, 13 Jan 2020 at 17:00, Paul Barker <pbarker at konsulko.com> wrote:
> On Mon, 13 Jan 2020 at 13:57, Maxim Uvarov <maxim.uvarov at linaro.org> wrote:
> > On Mon, 13 Jan 2020 at 16:31, Paul Barker <pbarker at konsulko.com> wrote:
> > >
> > > On Mon, 13 Jan 2020 at 13:08, Maxim Uvarov <maxim.uvarov at linaro.org> wrote:
> > > >
> > > > 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.
> > > > Add more entropy as timestamp to remove this race.
> > >
> > > How would two wic images to be built in parallel with the same work
> > > directory? To my understanding an image recipe only supports building
> > > a single wic image.
> > >
> > > Thanks,
> > > Paul
> > bitbake image1 image2 image3
> > all images build .wics and use about the same files, like firmware.
> > Issue is similar to that:
> > https://www.yoctoproject.org/pipermail/yocto/2018-June/041373.html
> Each image has its own work directory though.
> I'll take a look in more detail later today or tomorrow, if wic is
> writing temporary files outside of the work directory then that's a
> bug and should be fixed.
Thanks. I saw bug in rawcopy plugin. All other places were patched due
to the same code. I guess then for rawcopy temp files are in
DEST_IMAGE_DIR (which is common) instead of WORKDIR.
More information about the Openembedded-core