kbuild: avoid race between dtbs and dt/dt.dtb targets
PATCH 1/1 kbuild: avoid race between dtbs and dt/dt.dtb targets
If the final targets depend on both "dtbs" and "dts/dt.dtb", and -j option is given to the command line, multiple threads descend into the dts/ directory, which causes build error.
---
Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +3 -1
@@ -810,7 +810,9 @@ ifeq ($(CONFIG_DM_I2C_COMPAT),y) endif PHONY += dtbs -dtbs dts/dt.dtb: checkdtc u-boot +dtbs: dts/dt.dtb + @: +dts/dt.dtb: checkdtc u-boot $(Q)$(MAKE) $(build)=dts dtbs quiet_cmd_copy = COPY $@
Signature · 1 line
1.9.1
PATCH 1/1 kbuild: avoid race between dtbs and dt/dt.dtb targets
Quoted 5 lines · Masahiro Yamada
If the final targets depend on both "dtbs" and "dts/dt.dtb", and -j option is given to the command line, multiple threads descend into the dts/ directory, which causes build error.
Signed-off-by Masahiro Yamada <[email protected]>
Yamada-san,
thanks, this patch is fantastic! It fixes the issue discussed under [1] (no longer need to suppress parallel DTC compiles) and also avoids the general double-compile of the DTC files that happened with my patch series. Tested it on a few TI ARMv7 OMAP-type EVMs and did not see any adverse effects.
Regards,
--
Andreas Dannenberg
Texas Instruments Inc
[1] https://www.mail-archive.com/u-boot at lists.denx.de/msg217010.html
Quoted 27 lines
---
Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Makefile +3
-1@@ -810,7 +810,9 @@ ifeq ($(CONFIG_DM_I2C_COMPAT),y) endif PHONY += dtbs -dtbs dts/dt.dtb: checkdtc u-boot +dtbs: dts/dt.dtb + @: +dts/dt.dtb: checkdtc u-boot $(Q)$(MAKE) $(build)=dts dtbs quiet_cmd_copy = COPY $@Signature · 6 lines
1.9.1 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Quoted 6 lines · Masahiro Yamada
If the final targets depend on both "dtbs" and "dts/dt.dtb", and -j option is given to the command line, multiple threads descend into the dts/ directory, which causes build error.
Signed-off-by Masahiro Yamada <[email protected]>Tested-by Andreas Dannenberg <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160624/4663169b/attachment.sig>