On 2015-10-30 22:20, Petr Štetiar wrote:
> Felix Fietkau <n...@openwrt.org> [2015-10-30 16:14:49]:
> 
> Hi,
> 
>> I'd like to find out where the real bug is - what target are you
>> building where you hit this error?
> 
> it's imx6 target, but probably kirkwood, lantiq, mxs and oxnas are affected
> also (just by guessing by output from 'git grep 
> Image/InstallKernel/Template').
> 
> I think, that the problem is lying in include/image.mk:
> 
> 556   kernel_prepare: mkfs_prepare
> 557         $(call Image/BuildKernel)
> 558         $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(if $(IB),,$(call 
> Image/BuildKernel/Initramfs)))
> 559         $(call Image/InstallKernel)
> 560 
> 561   $(foreach device,$(TARGET_DEVICES),$(call Device,$(device)))
> 562   $(foreach fs,$(TARGET_FILESYSTEMS) $(fs-subtypes-y),$(call 
> BuildImage/mkfs,$(fs)))
> 
> where probably Image/InstallKernel is run in parallel with BuildImage/mkfs and
> Image/InstallKernel then touches $(TARGET_DIR)/boot which Image/mkfs/targz is
> compressing in another job.
Does this patch fix things for you?
---
--- a/include/image.mk
+++ b/include/image.mk
@@ -282,7 +282,7 @@ endef
 define BuildImage/mkfs
   install: mkfs-$(1)
   .PHONY: mkfs-$(1)
-  mkfs-$(1): mkfs_prepare
+  mkfs-$(1): kernel_prepare
        $(Image/mkfs/$(1))
        $(call Build/mkfs/default,$(1))
        $(call Build/mkfs/$(1),$(1))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to