diff options
Diffstat (limited to 'arch/xtensa/boot/boot-redboot/Makefile')
-rw-r--r-- | arch/xtensa/boot/boot-redboot/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile index ca8a68bc8472..f53262c2e1f3 100644 --- a/arch/xtensa/boot/boot-redboot/Makefile +++ b/arch/xtensa/boot/boot-redboot/Makefile | |||
@@ -12,24 +12,24 @@ else | |||
12 | OBJCOPY_ARGS := -O elf32-xtensa-le | 12 | OBJCOPY_ARGS := -O elf32-xtensa-le |
13 | endif | 13 | endif |
14 | 14 | ||
15 | LD_ARGS = -T $(obj)/boot.ld | 15 | LD_ARGS = -T $(srctree)/$(obj)/boot.ld |
16 | 16 | ||
17 | boot-y := bootstrap.o | 17 | boot-y := bootstrap.o |
18 | 18 | ||
19 | OBJS := $(addprefix $(obj)/,$(boot-y)) | 19 | OBJS := $(addprefix $(obj)/,$(boot-y)) |
20 | LIBS := arch/$(ARCH)/boot/lib/lib.a arch/$(ARCH)/lib/lib.a | 20 | LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a |
21 | 21 | ||
22 | LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | 22 | LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) |
23 | 23 | ||
24 | zImage: vmlinux $(OBJS) $(LIBS) | 24 | zImage: vmlinux $(OBJS) $(LIBS) |
25 | $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ | 25 | $(OBJCOPY) --strip-all -R .comment -R .xt.insn -O binary \ |
26 | $(TOPDIR)/vmlinux vmlinux.tmp | 26 | vmlinux vmlinux.tmp |
27 | gzip -vf9 vmlinux.tmp | 27 | gzip -vf9 vmlinux.tmp |
28 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | 28 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ |
29 | --add-section image=vmlinux.tmp.gz \ | 29 | --add-section image=vmlinux.tmp.gz \ |
30 | --set-section-flags image=contents,alloc,load,load,data \ | 30 | --set-section-flags image=contents,alloc,load,load,data \ |
31 | $(OBJS) $@.tmp | 31 | $(OBJS) $@.tmp |
32 | $(LD) $(LD_ARGS) -o $@.elf $@.tmp $(LIBS) -L/xtensa-elf/lib $(LIBGCC) | 32 | $(LD) $(LD_ARGS) -o $@.elf $@.tmp $(LIBS) -L/xtensa-elf/lib $(LIBGCC) |
33 | $(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/images/$@.redboot | 33 | $(OBJCOPY) -S -O binary $@.elf arch/$(ARCH)/boot/$@.redboot |
34 | # rm -f $@.tmp $@.elf vmlinux.tmp.gz | 34 | rm -f $@.tmp $@.elf vmlinux.tmp.gz |
35 | 35 | ||