[meta-xilinx] [PATCH] u-boot-spl-zynq-init.inc: Fix parallellism issue
Manjukumar Harthikote Matha
MANJUKUM at xilinx.com
Fri May 25 19:02:22 PDT 2018
> -----Original Message-----
> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
> bounces at yoctoproject.org] On Behalf Of Niko Mauno
> Sent: Friday, May 25, 2018 2:58 AM
> To: meta-xilinx at yoctoproject.org
> Subject: [meta-xilinx] [PATCH] u-boot-spl-zynq-init.inc: Fix parallellism issue
>
> A race issue can be induced by do_zynq_platform_init() being fired
> before do_unpack(), resulting in
>
> | DEBUG: Executing shell function do_zynq_platform_init
> | cp: cannot create regular file '.../git/board/xilinx/zynq/': No such file or
> directory
> | WARNING: exit code 1 from a shell command.
>
> Mitigate issue by adding dependency to completion of do_unpack task
> for custom do_zynq_platform_init task. Also update comment on previous
> line to match the actions on next.
>
> Signed-off-by: Niko Mauno <niko.mauno at vaisala.com>
> ---
> meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc b/meta-
> xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc
> index 50eae1f..9cf09ff 100644
> --- a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc
> +++ b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc
> @@ -47,8 +47,8 @@ python () {
> if (currentconfig not in hasconfigs) or (d.getVar("FORCE_PLATFORM_INIT") ==
> "1"):
> # force the dependency on a recipe that provides the platform init files
> d.appendVar("DEPENDS", " virtual/xilinx-platform-init")
> - # setup task to modify platform init after unpack and before configure
> - bb.build.addtask("do_zynq_platform_init", "do_configure",
> "do_prepare_recipe_sysroot", d)
> + # setup task to modify platform init after unpack and
> prepare_recipe_sysroot, and before configure
> + bb.build.addtask("do_zynq_platform_init", "do_configure", "do_unpack
> do_prepare_recipe_sysroot", d)
>
> if "boot.bin" not in d.getVar("SPL_BINARY"):
> # not deploying the boot.bin, just building SPL
> --
Applied
Thanks,
Manju
More information about the meta-xilinx
mailing list