[meta-xilinx] [PATCH] bootbin: fix race condition in create_bif
Manjukumar Harthikote Matha
MANJUKUM at xilinx.com
Mon May 21 17:44:39 PDT 2018
Hi Jean,
Agreed on your approach, will apply for the branches mentioned
Thanks,
Manju
From: Jean-Francois Dagenais [mailto:jeff.dagenais at gmail.com]
Sent: Thursday, May 17, 2018 6:34 AM
To: Manjukumar Harthikote Matha <MANJUKUM at xilinx.com>
Cc: meta-xilinx at yoctoproject.org; nathan at nathanrossi.com
Subject: Re: [PATCH] bootbin: fix race condition in create_bif
Hi Manju!
On May 16, 2018, at 12:36 PM, Manjukumar Harthikote Matha <MANJUKUM at xilinx.com<mailto:MANJUKUM at xilinx.com>> wrote:
Will change python code to add
bootbindeps = bootbindeps + " " + attrdepends[cfg] + ":do_deploy"
instead of do_deploy in BIF_PARTITION_DEPENDS and apply it.
See the last part of my commit message. The reason I chose to do it like this is
explained. Essentially, when xilinx-bootbin.bb adds the "do_deploy" it assumes
that the source of BIF_ATTRIBUTE_xyz used a "DEPLOY_DIR" file. This creates an
unhealthy assumption, tightly couples xilinx-bootbin.bb and the BIF_ATTRIBUTE
assignments and makes the recipe more fragile.
If I were to use a file found in say ${STAGING_DIR_HOST}, then xilinx-bootbin.bb
would incorrectly add ":do_deploy" when in fact, ":do_populate_sysroot" should be
appended.
Putting the ":do_deploy" in xilinx-bootbin.bb sure means less characters overall, but
that doesn't mean it's objectively "better". ;)
I recommend leaving my patch as-is, i.e. as I it was "signed-off".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20180522/f3248b06/attachment.html>
More information about the meta-xilinx
mailing list