public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: Arun Bhanu <arun@bhanu.net>
Cc: linux-kernel@vger.kernel.org, microblaze-uclinux@itee.uq.edu.au,
	sam@ravnborg.org
Subject: Re: [PATCH v2] microblaze: Fix Makefile to delete build generated files
Date: Tue, 16 Mar 2010 10:04:08 +0100	[thread overview]
Message-ID: <4B9F4988.20809@monstr.eu> (raw)
In-Reply-To: <1268727395-7770-1-git-send-email-arun@bhanu.net>

Arun Bhanu wrote:
> 'make clean' does not to delete the following build generated file:
> 	arch/microblaze/boot/linux.bin.ub
> 
> 'make mrproper' does not to delete the following build generated files:
> 	arch/microblaze/boot/simpleImage.*
> 
> Fix the Makefile to delete these build generated files.
> 
> See [1] for a discussion on why simpleImage.* files are deleted with 'make
> mrproper' and not with 'make clean'.
> 	[1] http://lkml.org/lkml/2010/3/12/96
> 
> Signed-off-by: Arun Bhanu <arun@bhanu.net>
> ---
>  arch/microblaze/Makefile      |    2 ++
>  arch/microblaze/boot/Makefile |    2 +-
>  2 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
> index d2d6cfc..36926b9 100644
> --- a/arch/microblaze/Makefile
> +++ b/arch/microblaze/Makefile
> @@ -93,3 +93,5 @@ define archhelp
>    echo '  name of a dts file from the arch/microblaze/boot/dts/ directory'
>    echo '  (minus the .dts extension).'
>  endef
> +
> +MRPROPER_FILES += $(boot)/simpleImage.*

I personally don't like that this line is in main arch Makefile but I 
saw that other archs have it too. Will be better to have it only in boot 
folder but I don't know if is possible to do that.
Sam: What do you think?


> diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
> index 902cf98..a1fc324 100644
> --- a/arch/microblaze/boot/Makefile
> +++ b/arch/microblaze/boot/Makefile
> @@ -64,4 +64,4 @@ $(obj)/%.dtb: $(dtstree)/%.dts FORCE
>  
>  clean-kernel += linux.bin linux.bin.gz simpleImage.*
>  
> -clean-files += *.dtb simpleImage.*.unstrip
> +clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub

Could you please take a look at clean-kernel option too?
I think we can simple remove it. It should be any ancient code from powerpc.

Thanks,
Michal




-- 
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian

  reply	other threads:[~2010-03-16  9:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-16  8:16 [PATCH v2] microblaze: Fix Makefile to delete build generated files Arun Bhanu
2010-03-16  9:04 ` Michal Simek [this message]
2010-03-16 10:53   ` Arun Bhanu
2010-03-16 10:59     ` Michal Marek
2010-03-16 11:01     ` Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B9F4988.20809@monstr.eu \
    --to=monstr@monstr.eu \
    --cc=arun@bhanu.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=microblaze-uclinux@itee.uq.edu.au \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox