aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/boot/boot-redboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/boot/boot-redboot/Makefile')
-rw-r--r--arch/xtensa/boot/boot-redboot/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile
index 872029b8443..25a78c6b153 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
22LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 22LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
23 23
24zImage: vmlinux $(OBJS) $(LIBS) 24vmlinux.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
28vmlinux.tmp.gz: vmlinux.tmp
29 $(GZIP) $(GZIP_FLAGS) $^ > $@
30
31zImage: 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