Searched hist:"479637400 b0e37d96e3921021dbd572335f56f9b" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/ |
| H A D | Makefile | 479637400b0e37d96e3921021dbd572335f56f9b Sun Nov 12 03:48:40 UTC 2017 M. Vefa Bicakci <m.v.b@runbox.com> UPSTREAM: Makefile: Correct SPL/TPL/DTB build race condition
When building on a multi-core machine for an SPL-enabled board that also uses CONFIG_OF_EMBED, the following error can be encountered due to a race condition:
make[3]: *** No rule to make target 'spl/dts/dt.dtb.o', needed by 'spl/dts/built-in.o'. Stop. ../scripts/Makefile.spl:364: recipe for target 'spl/dts' failed make[2]: *** [spl/dts] Error 2 make[2]: *** Waiting for unfinished jobs....
A reliable way to trigger this race condition is to add "sleep 60" to the end of the "arch-dtbs" rule's recipe in "dts/Makefile" and to build U-Boot against a board which uses the CONFIG_OF_EMBED and CONFIG_SPL options using "make -j8" or a similar command.
This commit corrects this race condition via the use of CONFIG_OF_EMBED in the same way that commit 3c00a2c8b5e2 ("Makefile: Correct dependency race condition with TPL") and commit 054b3a1e80fc ("dm: Makefile: Build of-platdata before SPL") use CONFIG_OF_SEPARATE.
Change-Id: I7177cf1b16cbdc1e071f93956e45472188dc2390 Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit dd2081a8e46877df5166fcd5af7f26c74a799317)
|