aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiko Mauno <niko.mauno@vaisala.com>2018-05-25 09:58:29 +0000
committerManjukumar Matha <manjukumar.harthikote-matha@xilinx.com>2018-05-25 18:59:28 -0700
commitad1a6573057f2928e0dde6882edb4b5bad7b06a5 (patch)
tree87905ea04a3db831405ec618625f384cd0727e46
parent1e5fda195b960687e9414ba125cf4f3499cd6052 (diff)
downloadmeta-xilinx-ad1a6573057f2928e0dde6882edb4b5bad7b06a5.tar.gz
meta-xilinx-ad1a6573057f2928e0dde6882edb4b5bad7b06a5.tar.bz2
meta-xilinx-ad1a6573057f2928e0dde6882edb4b5bad7b06a5.zip
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@vaisala.com> Reviewed-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc4
1 files 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