[Top] [All Lists]

Re: [PATCH v2] MIPS: Unify the suffix of compressed vmlinux.bin

To: Ralf Baechle <>, linux-mips <>
Subject: Re: [PATCH v2] MIPS: Unify the suffix of compressed vmlinux.bin
From: wu zhangjin <>
Date: Thu, 29 Jul 2010 09:32:35 +0800
Cc: Alexander Clouter <>, Manuel Lauss <>, Sam Ravnborg <>, Wu Zhangjin <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=LcOQmI+3pp8CFRqx0vwglC3YCVZHMj2kPoBWInoT3CQ=; b=qMM3UwffAxC2/3bIV+FBPUydbdiSxxIbIUxkJ5I1/2jN0yoeQDBTyhqaWXN7KP4Tqu bAWtiIss0lT4OeVLDrwIYfVqUO28g9wFxM3g75OSQdx90L+A8ewB+J5CPBTLXkcPMhZb bGWbwvCCMQie6qemGsSRgJMlXFhhGlGkg5C2A=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bvcrvzP2lHkAholIXOwZXKVPHVDtv7EbUbak0JnFxFTTQppI5mGm5cKWoL0V2Bh0lb UWuTtzrjobxSLoMrEnSXR09A20nx38XBRlx+uHaBTO62lOyiYk6Cafsb8l6wSJ8t+fbx KoNHxmKjhDSrRdfOydUD5fyCDXncaGUohaWzo=
In-reply-to: <>
Original-recipient: rfc822;
References: <>
Hi, Ralf

ping ...

Is it possible to queue the following several cleanups of the compressed kernel support to 2.6.36?

1. [v2] MIPS: Unify the suffix of compressed vmlinux.bin
2. [v4] MIPS: Clean up the calculation of VMLINUZ_LOAD_ADDRESS
3. MIPS: Clean up arch/mips/boot/compressed/ld.script
4. MIPS: Clean up arch/mips/boot/compressed/decompress.c
5. MIPS: strip the un-needed sections of vmlinuz

All of them only include cleanups, no functional changes.

Seems you need to apply them one by one as the above order.

Best Regards,
Wu Zhangjin

On Wed, Jun 2, 2010 at 4:35 PM, Wu Zhangjin <> wrote:
The compressed vmlinux.bin is only a temp file, we can use the same suffix(.z)
for them(.gz,.lzo,.lzma...) to remove several lines and simpify the
maintaining(no need to add the "suffix_$(xxx) := suffix" line).


 v1 -> v2:
   o Rename vmlinux.z to vmlinux.bin.z for vmlinux.z here is the compressed
   vmlinux.bin, not compressed vmlinux.

Signed-off-by: Wu Zhangjin <>
 arch/mips/boot/compressed/Makefile |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index 74a52d7..a517f58 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
 $(obj)/vmlinux.bin: $(KBUILD_IMAGE) FORCE
       $(call if_changed,objcopy)

-suffix_$(CONFIG_KERNEL_GZIP)  = gz
-suffix_$(CONFIG_KERNEL_BZIP2) = bz2
-suffix_$(CONFIG_KERNEL_LZMA)  = lzma
-suffix_$(CONFIG_KERNEL_LZO)   = lzo
 tool_$(CONFIG_KERNEL_GZIP)    = gzip
 tool_$(CONFIG_KERNEL_BZIP2)   = bzip2
 tool_$(CONFIG_KERNEL_LZMA)    = lzma
 tool_$(CONFIG_KERNEL_LZO)     = lzo

-targets += vmlinux.gz vmlinux.bz2 vmlinux.lzma vmlinux.lzo
-$(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin FORCE
+targets += vmlinux.bin.z
+$(obj)/vmlinux.bin.z: $(obj)/vmlinux.bin FORCE
       $(call if_changed,$(tool_y))

 targets += piggy.o
-OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.$(suffix_y) \
+OBJCOPYFLAGS_piggy.o := --add-section=.image=$(obj)/vmlinux.bin.z \
-$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.$(suffix_y) FORCE
+$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.bin.z FORCE
       $(call if_changed,objcopy)


<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH v2] MIPS: Unify the suffix of compressed vmlinux.bin, wu zhangjin <=