diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-09-16 21:44:49 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-10-03 18:12:29 -0400 |
commit | 7c94fe4a012e6d0858b9a80cbc18b7ee788f572d (patch) | |
tree | 4d1263bbc227bf9049c072badc8af4086a6034a4 /arch/xtensa/boot/boot-redboot | |
parent | d0fccc0446800a746d109d5c202a4a550036d923 (diff) |
xtensa: fix parallel make
Make vmlinux.tmp and vmlinux.tmp.gz separate build targets, avoid
removing vmlinux.tmp during vmlinux.tmp.gz build.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/boot/boot-redboot')
-rw-r--r-- | arch/xtensa/boot/boot-redboot/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile index 872029b84435..25a78c6b1530 100644 --- a/arch/xtensa/boot/boot-redboot/Makefile +++ b/arch/xtensa/boot/boot-redboot/Makefile | |||
@@ -21,15 +21,17 @@ LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a | |||
21 | 21 | ||
22 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | 22 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
23 | 23 | ||
24 | zImage: vmlinux $(OBJS) $(LIBS) | 24 | vmlinux.tmp: vmlinux |
25 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ | 25 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ |
26 | vmlinux vmlinux.tmp | 26 | $^ $@ |
27 | gzip -vf9 vmlinux.tmp | 27 | |
28 | vmlinux.tmp.gz: vmlinux.tmp | ||
29 | $(GZIP) $(GZIP_FLAGS) $^ > $@ | ||
30 | |||
31 | zImage: vmlinux.tmp.gz $(OBJS) $(LIBS) | ||
28 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | 32 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ |
29 | --add-section image=vmlinux.tmp.gz \ | 33 | --add-section image=vmlinux.tmp.gz \ |
30 | --set-section-flags image=contents,alloc,load,load,data \ | 34 | --set-section-flags image=contents,alloc,load,load,data \ |
31 | $(OBJS) $@.tmp | 35 | $(OBJS) $@.tmp |
32 | $(LD) $(LD_ARGS) -o $@.elf $@.tmp $(LIBS) -L/xtensa-elf/lib $(LIBGCC) | 36 | $(LD) $(LD_ARGS) -o $@.elf $@.tmp $(LIBS) -L/xtensa-elf/lib $(LIBGCC) |
33 | $(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/$@.redboot | 37 | $(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/$@.redboot |
34 | rm -f $@.tmp $@.elf vmlinux.tmp.gz | ||
35 | |||