diff options
author | Niko Mauno <niko.mauno@vaisala.com> | 2018-05-25 09:58:29 +0000 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-05-25 18:59:28 -0700 |
commit | ad1a6573057f2928e0dde6882edb4b5bad7b06a5 (patch) | |
tree | 87905ea04a3db831405ec618625f384cd0727e46 /meta-xilinx-bsp | |
parent | 1e5fda195b960687e9414ba125cf4f3499cd6052 (diff) | |
download | meta-xilinx-ad1a6573057f2928e0dde6882edb4b5bad7b06a5.tar.gz |
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>
Diffstat (limited to 'meta-xilinx-bsp')
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-spl-zynq-init.inc | 4 |
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 50eae1f1..9cf09ff6 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 () { | |||
47 | if (currentconfig not in hasconfigs) or (d.getVar("FORCE_PLATFORM_INIT") == "1"): | 47 | if (currentconfig not in hasconfigs) or (d.getVar("FORCE_PLATFORM_INIT") == "1"): |
48 | # force the dependency on a recipe that provides the platform init files | 48 | # force the dependency on a recipe that provides the platform init files |
49 | d.appendVar("DEPENDS", " virtual/xilinx-platform-init") | 49 | d.appendVar("DEPENDS", " virtual/xilinx-platform-init") |
50 | # setup task to modify platform init after unpack and before configure | 50 | # setup task to modify platform init after unpack and prepare_recipe_sysroot, and before configure |
51 | bb.build.addtask("do_zynq_platform_init", "do_configure", "do_prepare_recipe_sysroot", d) | 51 | bb.build.addtask("do_zynq_platform_init", "do_configure", "do_unpack do_prepare_recipe_sysroot", d) |
52 | 52 | ||
53 | if "boot.bin" not in d.getVar("SPL_BINARY"): | 53 | if "boot.bin" not in d.getVar("SPL_BINARY"): |
54 | # not deploying the boot.bin, just building SPL | 54 | # not deploying the boot.bin, just building SPL |