diff options
Diffstat (limited to 'arch/xtensa/boot/boot-elf/Makefile')
-rw-r--r-- | arch/xtensa/boot/boot-elf/Makefile | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/arch/xtensa/boot/boot-elf/Makefile b/arch/xtensa/boot/boot-elf/Makefile index 08e8814f8c71..f10992b89027 100644 --- a/arch/xtensa/boot/boot-elf/Makefile +++ b/arch/xtensa/boot/boot-elf/Makefile | |||
@@ -20,34 +20,18 @@ boot-y := bootstrap.o | |||
20 | 20 | ||
21 | OBJS := $(addprefix $(obj)/,$(boot-y)) | 21 | OBJS := $(addprefix $(obj)/,$(boot-y)) |
22 | 22 | ||
23 | Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds | 23 | vmlinux.tmp: vmlinux |
24 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ | 24 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ |
25 | vmlinux vmlinux.tmp | 25 | $^ $@ |
26 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | ||
27 | --add-section image=vmlinux.tmp \ | ||
28 | --set-section-flags image=contents,alloc,load,load,data \ | ||
29 | $(OBJS) $@.tmp | ||
30 | $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ | ||
31 | -T arch/$(ARCH)/boot/boot-elf/boot.lds \ | ||
32 | -o arch/$(ARCH)/boot/$@.elf $@.tmp | ||
33 | rm -f $@.tmp vmlinux.tmp | ||
34 | 26 | ||
35 | Image.initrd: vmlinux $(OBJS) | 27 | Image: vmlinux.tmp $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds |
36 | $(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \ | ||
37 | --add-section .initrd=arch/$(ARCH)/boot/ramdisk \ | ||
38 | --set-section-flags .initrd=contents,alloc,load,load,data \ | ||
39 | vmlinux vmlinux.tmp | ||
40 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ | 28 | $(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ |
41 | --add-section image=vmlinux.tmp \ | 29 | --add-section image=vmlinux.tmp \ |
42 | --set-section-flags image=contents,alloc,load,load,data \ | 30 | --set-section-flags image=contents,alloc,load,load,data \ |
43 | $(OBJS) $@.tmp | 31 | $(OBJS) $@.tmp |
44 | $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ | 32 | $(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \ |
45 | -T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \ | 33 | -T arch/$(ARCH)/boot/boot-elf/boot.lds \ |
46 | -o arch/$(ARCH)/boot/$@.elf $@.tmp | 34 | -o arch/$(ARCH)/boot/$@.elf $@.tmp |
47 | rm -f $@.tmp vmlinux.tmp | ||
48 | |||
49 | 35 | ||
50 | zImage: Image | 36 | zImage: Image |
51 | 37 | ||
52 | zImage.initrd: Image.initrd | ||
53 | |||