ar71xx: fix kernel relocate stub parallel build issue
Use per-kernel directory Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
		@@ -79,15 +79,16 @@ define Build/loader-okli
 | 
				
			|||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Build/relocate-kernel
 | 
					define Build/relocate-kernel
 | 
				
			||||||
	rm -rf $(KDIR)/relocate
 | 
						rm -rf $@.relocate
 | 
				
			||||||
	$(CP) ../../generic/image/relocate $(KDIR)
 | 
						$(CP) ../../generic/image/relocate $@.relocate
 | 
				
			||||||
	$(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
 | 
						$(MAKE) -j1 -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
 | 
				
			||||||
	( \
 | 
						( \
 | 
				
			||||||
		dd if=$(KDIR)/relocate/loader.bin bs=32 conv=sync && \
 | 
							dd if=$@.relocate/loader.bin bs=32 conv=sync && \
 | 
				
			||||||
		perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
 | 
							perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
 | 
				
			||||||
		cat "$@" \
 | 
							cat "$@" \
 | 
				
			||||||
	) > "$@.new"
 | 
						) > "$@.new"
 | 
				
			||||||
	mv "$@.new" "$@"
 | 
						mv "$@.new" "$@"
 | 
				
			||||||
 | 
						rm -rf $@.relocate
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Build/copy-file
 | 
					define Build/copy-file
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user