Received: from mail-pv0-f177.google.com ([74.125.83.177]:65237 "EHLO mail-pv0-f177.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1491203Ab0FBCbL convert rfc822-to-8bit (ORCPT ); Wed, 2 Jun 2010 04:31:11 +0200 MIME-Version: 1.0 In-Reply-To: <1275388144-5998-1-git-send-email-wuzhangjin@gmail.com> References: <1275388144-5998-1-git-send-email-wuzhangjin@gmail.com> Date: Wed, 2 Jun 2010 10:31:02 +0800 Message-ID: Subject: Re: [PATCH] MIPS: arch/mips/boot/compressed/Makefile: Unify the suffix of compressed vmlinux.bin From: wu zhangjin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org Return-Path: To: Ralf Baechle , linux-mips Cc: Alexander Clouter , Manuel Lauss , Sam Ravnborg , Wu Zhangjin Message-ID: <20100602023102.0I3x31LLGT47079sy8gpNcIUlTAdflgQBtcJPxSexBY@z> Hi, I will use vmlinux.bin.z in the next revision of this patch. Regards, On Tue, Jun 1, 2010 at 6:29 PM, Wu Zhangjin wrote: > The compressed vmlinux.{gz,bz2,lzo,lzma} are only temp files, we can use the > same suffix for them to remove several lines and simpify the maintaining. > > 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..7204dfc 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.z > +$(obj)/vmlinux.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.z \ >                         --set-section-flags=.image=contents,alloc,load,readonly,data > -$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.$(suffix_y) FORCE > +$(obj)/piggy.o: $(obj)/dummy.o $(obj)/vmlinux.z FORCE >        $(call if_changed,objcopy) > >  LDFLAGS_vmlinuz := $(LDFLAGS) -Ttext $(VMLINUZ_LOAD_ADDRESS) -T > -- > 1.6.5 > > -- Studying engineer. Wu Zhangjin Lanzhou University http://www.lzu.edu.cn Distributed & Embedded System Lab http://dslab.lzu.edu.cn School of Information Science and Engeneering http://xxxy.lzu.edu.cn wuzhangjin@gmail.com http://falcon.oss.lzu.edu.cn Address:Tianshui South Road 222,Lanzhou,P.R.China Zip Code:730000 Tel:+86-931-8912025