aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/compressed/Makefile
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2010-06-02 04:35:24 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:26:31 -0400
commitc853d945d3e0cadf60da03106f7d9bbf1346a518 (patch)
treeed5b01eda172cb9c7cd7740206aec5e0a0192d4d /arch/mips/boot/compressed/Makefile
parent51f1336d4dbd0935d873761f7f267c3f5abc9bd6 (diff)
MIPS: Unify the suffix of compressed vmlinux.bin
The compressed vmlinux.bin is only a temp file so it's ok to use the same suffix .z for them (.gz,.lzo,.lzma...) to remove several lines and simpify the maintenance (no need to add the "suffix_$(xxx) := suffix" line). Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> To: linux-mips <linux-mips@linux-mips.org> Cc: Alexander Clouter <alex@digriz.org.uk> Cc: Manuel Lauss <manuel.lauss@gmail.com> Cc: Sam Ravnborg <sam@ravnborg.org> Patchwork: https://patchwork.linux-mips.org/patch/1323/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> ---
Diffstat (limited to 'arch/mips/boot/compressed/Makefile')
-rw-r--r--arch/mips/boot/compressed/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index edc48adf8845..3bdbeef0e0f5 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -48,23 +48,19 @@ OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
48$(obj)/vmlinux.bin: $(KBUILD_IMAGE) FORCE 48$(obj)/vmlinux.bin: $(KBUILD_IMAGE) FORCE
49 $(call if_changed,objcopy) 49 $(call if_changed,objcopy)
50 50
51suffix_$(CONFIG_KERNEL_GZIP) = gz
52suffix_$(CONFIG_KERNEL_BZIP2) = bz2
53suffix_$(CONFIG_KERNEL_LZMA) = lzma
54suffix_$(CONFIG_KERNEL_LZO) = lzo
55tool_$(CONFIG_KERNEL_GZIP) = gzip 51tool_$(CONFIG_KERNEL_GZIP) = gzip
56tool_$(CONFIG_KERNEL_BZIP2) = bzip2 52tool_$(CONFIG_KERNEL_BZIP2) = bzip2
57tool_$(CONFIG_KERNEL_LZMA) = lzma 53tool_$(CONFIG_KERNEL_LZMA) = lzma
58tool_$(CONFIG_KERNEL_LZO) = lzo 54tool_$(CONFIG_KERNEL_LZO) = lzo
59 55
60targets += vmlinux.gz vmlinux.bz2 vmlinux.lzma vmlinux.lzo 56targets += vmlinux.bin.z
61$(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin FORCE 57$(obj)/vmlinux.bin.z: $(obj)/vmlinux.bin FORCE
62 $(call if_changed,$(tool_y)) 58 $(call if_changed,$(tool_y))
63 59
64targets += piggy.o 60targets += piggy.o
65OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.$(suffix_y) \ 61OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.bin.z \
66 --set-section-flags=.image=contents,alloc,load,readonly,data 62 --set-section-flags=.image=contents,alloc,load,readonly,data
67$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.$(suffix_y) FORCE 63$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE
68 $(call if_changed,objcopy) 64 $(call if_changed,objcopy)
69 65
70LDFLAGS_vmlinuz := $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T 66LDFLAGS_vmlinuz := $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T