linux-mips
[Top] [All Lists]

Re: [PATCH] mips: drop CLEAN_FILES from arch/mips/Makefile

To: Sam Ravnborg <sam@ravnborg.org>
Subject: Re: [PATCH] mips: drop CLEAN_FILES from arch/mips/Makefile
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sat, 29 May 2010 20:06:18 +0800
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=i6yX3ylK11EmwIcCodVAeBeyswFiSnz4dies1a1jmV8=; b=fSw5Q2MIe5++h9UNBLV0HCxAp+4fMuhfGPrwlCim9LRiS9Tup97Ccno1GLJfzN+cSM F57jCHfBlKpsJJwWLUZtLt9m2wvIdeZ2eykCCuj1AHidIRCepeugQZtcODdaPZxYnGTK Vuo3Tse7cRqeDp0u3tf5uKTa3M53+8o7rNpHY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=e0guhY0HQMddENjWvoj/eq/XUlM3PqcWGZ13WlbFjfln6zwjAta1MF6OJ5RYrUfjcy 4RWIZgLqos0DaetqUt8wICkv1rDyBNwqgbVVMHJ4fZggFOecfc1ibEys9GD8VT+OlEdy PDuL5DICWUEXZ/5YQCl1jhkyp0A+8MYLKLpZI=
In-reply-to: <20100529111713.GA31550@merkur.ravnborg.org>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20100529111713.GA31550@merkur.ravnborg.org>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
Hi, Sam

With your patch, It really drops the specified files in the root
directory of Linux source code but can not remove the files under
arch/mips/boot/compressed/.

I have kept some temp files (.bin, .lzo...) under
arch/mips/boot/compressed/, 

> diff --git a/arch/mips/boot/compressed/Makefile 
> b/arch/mips/boot/compressed/Makefile
> index 790ddd3..80f6de5 100644
> --- a/arch/mips/boot/compressed/Makefile
> +++ b/arch/mips/boot/compressed/Makefile
> @@ -100,6 +100,4 @@ OBJCOPYFLAGS_vmlinuz.srec := $(OBJCOPYFLAGS) -S -O srec
>  vmlinuz.srec: vmlinuz
>       $(call if_changed,objcopy)
>  
> -clean:
> -clean-files += *.o \
> -            vmlinu*
> +clean-files := $(objtree)/vmlinu*

So, perhaps we need to reserve the vmlinux*, then we get

+ clean-files := vmlinu* \
                 $(objtree)/vmlinu*

Best Regards,
        Wu Zhangjin


<Prev in Thread] Current Thread [Next in Thread>