diff options
Diffstat (limited to 'arch/mips/boot/Makefile')
-rw-r--r-- | arch/mips/boot/Makefile | 49 |
1 files changed, 47 insertions, 2 deletions
diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index 1466c0026093..acb1988f354e 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile | |||
@@ -23,6 +23,12 @@ strip-flags := $(addprefix --remove-section=,$(drop-sections)) | |||
23 | 23 | ||
24 | hostprogs-y := elf2ecoff | 24 | hostprogs-y := elf2ecoff |
25 | 25 | ||
26 | suffix-y := bin | ||
27 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 | ||
28 | suffix-$(CONFIG_KERNEL_GZIP) := gz | ||
29 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | ||
30 | suffix-$(CONFIG_KERNEL_LZO) := lzo | ||
31 | |||
26 | targets := vmlinux.ecoff | 32 | targets := vmlinux.ecoff |
27 | quiet_cmd_ecoff = ECOFF $@ | 33 | quiet_cmd_ecoff = ECOFF $@ |
28 | cmd_ecoff = $(obj)/elf2ecoff $(VMLINUX) $@ $(e2eflag) | 34 | cmd_ecoff = $(obj)/elf2ecoff $(VMLINUX) $@ $(e2eflag) |
@@ -44,14 +50,53 @@ $(obj)/vmlinux.srec: $(VMLINUX) FORCE | |||
44 | UIMAGE_LOADADDR = $(VMLINUX_LOAD_ADDRESS) | 50 | UIMAGE_LOADADDR = $(VMLINUX_LOAD_ADDRESS) |
45 | UIMAGE_ENTRYADDR = $(VMLINUX_ENTRY_ADDRESS) | 51 | UIMAGE_ENTRYADDR = $(VMLINUX_ENTRY_ADDRESS) |
46 | 52 | ||
53 | # | ||
54 | # Compressed vmlinux images | ||
55 | # | ||
56 | |||
57 | extra-y += vmlinux.bin.bz2 | ||
58 | extra-y += vmlinux.bin.gz | ||
59 | extra-y += vmlinux.bin.lzma | ||
60 | extra-y += vmlinux.bin.lzo | ||
61 | |||
62 | $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE | ||
63 | $(call if_changed,bzip2) | ||
64 | |||
47 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 65 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE |
48 | $(call if_changed,gzip) | 66 | $(call if_changed,gzip) |
49 | 67 | ||
68 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE | ||
69 | $(call if_changed,lzma) | ||
70 | |||
71 | $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE | ||
72 | $(call if_changed,lzo) | ||
73 | |||
74 | # | ||
75 | # Compressed u-boot images | ||
76 | # | ||
77 | |||
78 | targets += uImage | ||
79 | targets += uImage.bin | ||
80 | targets += uImage.bz2 | ||
50 | targets += uImage.gz | 81 | targets += uImage.gz |
82 | targets += uImage.lzma | ||
83 | targets += uImage.lzo | ||
84 | |||
85 | $(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE | ||
86 | $(call if_changed,uimage,none) | ||
87 | |||
88 | $(obj)/uImage.bz2: $(obj)/vmlinux.bin.bz2 FORCE | ||
89 | $(call if_changed,uimage,bzip2) | ||
90 | |||
51 | $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE | 91 | $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE |
52 | $(call if_changed,uimage,gzip) | 92 | $(call if_changed,uimage,gzip) |
53 | 93 | ||
54 | targets += uImage | 94 | $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE |
55 | $(obj)/uImage: $(obj)/uImage.gz FORCE | 95 | $(call if_changed,uimage,lzma) |
96 | |||
97 | $(obj)/uImage.lzo: $(obj)/vmlinux.bin.lzo FORCE | ||
98 | $(call if_changed,uimage,lzo) | ||
99 | |||
100 | $(obj)/uImage: $(obj)/uImage.$(suffix-y) | ||
56 | @ln -sf $(notdir $<) $@ | 101 | @ln -sf $(notdir $<) $@ |
57 | @echo ' Image $@ is ready' | 102 | @echo ' Image $@ is ready' |