[OpenWrt-Devel] [PATCH] image.mk: Add NOTPARALLEL flag to fix parallel build breakage

Petr Štetiar ynezz at true.cz
Mon Oct 26 08:26:49 EDT 2015


Fixes following error:

	$ make -j8 V=s

	...snip...

	ar: .: file changed as we read it
	make[5]: *** [mkfs-targz] Error 1
	make[5]: *** Waiting for unfinished jobs....

	...snip...

	Build failed - please re-run with -j1 to see the real error message
	make: *** [world] Error 1

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 include/image.mk |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/image.mk b/include/image.mk
index c59222e..2554171 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -558,6 +558,8 @@ define BuildImage
 	$(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(if $(IB),,$(call Image/BuildKernel/Initramfs)))
 	$(call Image/InstallKernel)
 
+  .NOTPARALLEL :
+
   $(foreach device,$(TARGET_DEVICES),$(call Device,$(device)))
   $(foreach fs,$(TARGET_FILESYSTEMS) $(fs-subtypes-y),$(call BuildImage/mkfs,$(fs)))
 
-- 
1.7.9.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list