diff options
| -rw-r--r-- | arch/ppc/boot/images/Makefile | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/arch/ppc/boot/images/Makefile b/arch/ppc/boot/images/Makefile index c9ac5f5fa9e4..532e7ef1edb6 100644 --- a/arch/ppc/boot/images/Makefile +++ b/arch/ppc/boot/images/Makefile @@ -6,12 +6,17 @@ MKIMAGE		:= $(srctree)/scripts/mkuboot.sh  extra-y		:= vmlinux.bin vmlinux.gz +# two make processes may write to vmlinux.gz at the same time with make -j +quiet_cmd_mygzip = GZIP    $@ +cmd_mygzip = gzip -f -9 < $< > $@.$$$$ && mv $@.$$$$ $@ + +  OBJCOPYFLAGS_vmlinux.bin := -O binary  $(obj)/vmlinux.bin: vmlinux FORCE  	$(call if_changed,objcopy)  $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE -	$(call if_changed,gzip) +	$(call if_changed,mygzip)  quiet_cmd_uimage = UIMAGE  $@        cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A ppc -O linux -T kernel \ | 
