public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] microblaze: Fix Makefile to delete build generated files
@ 2010-03-12  8:36 Arun Bhanu
  2010-03-12  8:53 ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Bhanu @ 2010-03-12  8:36 UTC (permalink / raw)
  To: linux-kernel, microblaze-uclinux; +Cc: Michal Simek, Arun Bhanu

'make mrproper' does not to delete the following build generated files:
       arch/microblaze/boot/linux.bin.ub
       arch/microblaze/boot/simpleImage.system
       arch/microblaze/boot/simpleImage.system.ub

Fix the Makefile to delete these build generated files.

Signed-off-by: Arun Bhanu <arun@bhanu.net>
---
 arch/microblaze/boot/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
index 902cf98..73a3263 100644
--- a/arch/microblaze/boot/Makefile
+++ b/arch/microblaze/boot/Makefile
@@ -62,6 +62,6 @@ quiet_cmd_dtc = DTC     $@
 $(obj)/%.dtb: $(dtstree)/%.dts FORCE
 	$(call if_changed,dtc)
 
-clean-kernel += linux.bin linux.bin.gz simpleImage.*
+clean-kernel += linux.bin linux.bin.gz
 
-clean-files += *.dtb simpleImage.*.unstrip
+clean-files += *.dtb *.ub simpleImage.*
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] microblaze: Fix Makefile to delete build generated files
  2010-03-12  8:36 [PATCH] microblaze: Fix Makefile to delete build generated files Arun Bhanu
@ 2010-03-12  8:53 ` Michal Simek
  2010-03-12 10:20   ` Arun Bhanu
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2010-03-12  8:53 UTC (permalink / raw)
  To: Arun Bhanu; +Cc: linux-kernel, microblaze-uclinux

Arun Bhanu wrote:
> 'make mrproper' does not to delete the following build generated files:
>        arch/microblaze/boot/linux.bin.ub
>        arch/microblaze/boot/simpleImage.system
>        arch/microblaze/boot/simpleImage.system.ub
> 
> Fix the Makefile to delete these build generated files.

The problem is that if you run make clean it will delete all simpleImage 
files too. The best will be just delete them if you run make mrproper as 
you wrote above. Make clean should keep them or just remove .unstrip 
because of size.

Michal


> 
> Signed-off-by: Arun Bhanu <arun@bhanu.net>
> ---
>  arch/microblaze/boot/Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
> index 902cf98..73a3263 100644
> --- a/arch/microblaze/boot/Makefile
> +++ b/arch/microblaze/boot/Makefile
> @@ -62,6 +62,6 @@ quiet_cmd_dtc = DTC     $@
>  $(obj)/%.dtb: $(dtstree)/%.dts FORCE
>  	$(call if_changed,dtc)
>  
> -clean-kernel += linux.bin linux.bin.gz simpleImage.*
> +clean-kernel += linux.bin linux.bin.gz
>  
> -clean-files += *.dtb simpleImage.*.unstrip
> +clean-files += *.dtb *.ub simpleImage.*


-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] microblaze: Fix Makefile to delete build generated files
  2010-03-12  8:53 ` Michal Simek
@ 2010-03-12 10:20   ` Arun Bhanu
  2010-03-12 10:37     ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Arun Bhanu @ 2010-03-12 10:20 UTC (permalink / raw)
  To: Michal Simek; +Cc: linux-kernel, microblaze-uclinux

* Michal Simek (monstr@monstr.eu) wrote:
> Arun Bhanu wrote:
>> 'make mrproper' does not to delete the following build generated files:
>>        arch/microblaze/boot/linux.bin.ub
>>        arch/microblaze/boot/simpleImage.system
>>        arch/microblaze/boot/simpleImage.system.ub
>>
>> Fix the Makefile to delete these build generated files.
>
> The problem is that if you run make clean it will delete all simpleImage  
> files too. The best will be just delete them if you run make mrproper as  
> you wrote above. Make clean should keep them or just remove .unstrip  
> because of size.
>
> Michal

I thought 'make clean' was supposed to remove simpleImage.* files.
PowerPC (see arch/powerpc/boot/Makefile) seems to be deleting
simpleImage.* upon 'make clean' invocation.

'make help' says:
  clean           - Remove most generated files but keep the config and
                    enough build support to build external modules

Are the simpleImage.* files needed to build external modules? If not,
can you explain why we should keep simpleImage.* file after a 'make
clean' run?

What am I missing?

>
>
>>
>> Signed-off-by: Arun Bhanu <arun@bhanu.net>
>> ---
>>  arch/microblaze/boot/Makefile |    4 ++--
>>  1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
>> index 902cf98..73a3263 100644
>> --- a/arch/microblaze/boot/Makefile
>> +++ b/arch/microblaze/boot/Makefile
>> @@ -62,6 +62,6 @@ quiet_cmd_dtc = DTC     $@
>>  $(obj)/%.dtb: $(dtstree)/%.dts FORCE
>>  	$(call if_changed,dtc)
>>  -clean-kernel += linux.bin linux.bin.gz simpleImage.*
>> +clean-kernel += linux.bin linux.bin.gz
>>  -clean-files += *.dtb simpleImage.*.unstrip
>> +clean-files += *.dtb *.ub simpleImage.*
>
>
> -- 
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-Arun

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] microblaze: Fix Makefile to delete build generated files
  2010-03-12 10:20   ` Arun Bhanu
@ 2010-03-12 10:37     ` Michal Simek
  2010-03-12 10:56       ` Arun Bhanu
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2010-03-12 10:37 UTC (permalink / raw)
  To: Michal Simek, linux-kernel, microblaze-uclinux

Arun Bhanu wrote:
> * Michal Simek (monstr@monstr.eu) wrote:
>> Arun Bhanu wrote:
>>> 'make mrproper' does not to delete the following build generated files:
>>>        arch/microblaze/boot/linux.bin.ub
>>>        arch/microblaze/boot/simpleImage.system
>>>        arch/microblaze/boot/simpleImage.system.ub
>>>
>>> Fix the Makefile to delete these build generated files.
>> The problem is that if you run make clean it will delete all simpleImage  
>> files too. The best will be just delete them if you run make mrproper as  
>> you wrote above. Make clean should keep them or just remove .unstrip  
>> because of size.
>>
>> Michal
> 
> I thought 'make clean' was supposed to remove simpleImage.* files.
> PowerPC (see arch/powerpc/boot/Makefile) seems to be deleting
> simpleImage.* upon 'make clean' invocation.

It can be truth but this is Microblaze.

> 
> 'make help' says:
>   clean           - Remove most generated files but keep the config and
>                     enough build support to build external modules
> 
> Are the simpleImage.* files needed to build external modules? If not,
> can you explain why we should keep simpleImage.* file after a 'make
> clean' run?

nice is that there is written most files.

> 
> What am I missing?

The reason is that I am configuring several platforms with different DTS 
files and I am retesting that generated files. That's why I need to have 
simpleImage.xxx and simpleImage.xxx.ub in boot folder which have 
different names. I am doing several clean-ups but I need to store that 
files.

mrproper        - Remove all generated files + config + various backup files

If you look at help for mrproper we can call that files like backup files.


I agree with you that will be good to remove them but only for make 
mrproper as was written in your commit message.

Michal


> 
>>
>>> Signed-off-by: Arun Bhanu <arun@bhanu.net>
>>> ---
>>>  arch/microblaze/boot/Makefile |    4 ++--
>>>  1 files changed, 2 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
>>> index 902cf98..73a3263 100644
>>> --- a/arch/microblaze/boot/Makefile
>>> +++ b/arch/microblaze/boot/Makefile
>>> @@ -62,6 +62,6 @@ quiet_cmd_dtc = DTC     $@
>>>  $(obj)/%.dtb: $(dtstree)/%.dts FORCE
>>>  	$(call if_changed,dtc)
>>>  -clean-kernel += linux.bin linux.bin.gz simpleImage.*
>>> +clean-kernel += linux.bin linux.bin.gz
>>>  -clean-files += *.dtb simpleImage.*.unstrip
>>> +clean-files += *.dtb *.ub simpleImage.*
>>
>> -- 
>> 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
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
> 
> -Arun


-- 
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] microblaze: Fix Makefile to delete build generated files
  2010-03-12 10:37     ` Michal Simek
@ 2010-03-12 10:56       ` Arun Bhanu
  0 siblings, 0 replies; 5+ messages in thread
From: Arun Bhanu @ 2010-03-12 10:56 UTC (permalink / raw)
  To: Michal Simek; +Cc: linux-kernel, microblaze-uclinux

* Michal Simek (monstr@monstr.eu) wrote:
> Arun Bhanu wrote:
>> * Michal Simek (monstr@monstr.eu) wrote:
>>> Arun Bhanu wrote:
>>>> 'make mrproper' does not to delete the following build generated files:
>>>>        arch/microblaze/boot/linux.bin.ub
>>>>        arch/microblaze/boot/simpleImage.system
>>>>        arch/microblaze/boot/simpleImage.system.ub
>>>>
>>>> Fix the Makefile to delete these build generated files.
>>> The problem is that if you run make clean it will delete all 
>>> simpleImage  files too. The best will be just delete them if you run 
>>> make mrproper as  you wrote above. Make clean should keep them or 
>>> just remove .unstrip  because of size.
>>>
>>> Michal
>>
>> I thought 'make clean' was supposed to remove simpleImage.* files.
>> PowerPC (see arch/powerpc/boot/Makefile) seems to be deleting
>> simpleImage.* upon 'make clean' invocation.
>
> It can be truth but this is Microblaze.
>
>>
>> 'make help' says:
>>   clean           - Remove most generated files but keep the config and
>>                     enough build support to build external modules
>>
>> Are the simpleImage.* files needed to build external modules? If not,
>> can you explain why we should keep simpleImage.* file after a 'make
>> clean' run?
>
> nice is that there is written most files.
>
>>
>> What am I missing?
>
> The reason is that I am configuring several platforms with different DTS  
> files and I am retesting that generated files. That's why I need to have  
> simpleImage.xxx and simpleImage.xxx.ub in boot folder which have  
> different names. I am doing several clean-ups but I need to store that  
> files.
>
> mrproper        - Remove all generated files + config + various backup files
>
> If you look at help for mrproper we can call that files like backup files.
>
>
> I agree with you that will be good to remove them but only for make  
> mrproper as was written in your commit message.
>
> Michal

Ok. Thanks for the explanation.

Let me see how I can respin the patch.

-Arun
>
>
>>
>>>
>>>> Signed-off-by: Arun Bhanu <arun@bhanu.net>
>>>> ---
>>>>  arch/microblaze/boot/Makefile |    4 ++--
>>>>  1 files changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
>>>> index 902cf98..73a3263 100644
>>>> --- a/arch/microblaze/boot/Makefile
>>>> +++ b/arch/microblaze/boot/Makefile
>>>> @@ -62,6 +62,6 @@ quiet_cmd_dtc = DTC     $@
>>>>  $(obj)/%.dtb: $(dtstree)/%.dts FORCE
>>>>  	$(call if_changed,dtc)
>>>>  -clean-kernel += linux.bin linux.bin.gz simpleImage.*
>>>> +clean-kernel += linux.bin linux.bin.gz
>>>>  -clean-files += *.dtb simpleImage.*.unstrip
>>>> +clean-files += *.dtb *.ub simpleImage.*
>>>
>>> -- 
>>> 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
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>> -Arun
>
>
> -- 
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-12 10:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12  8:36 [PATCH] microblaze: Fix Makefile to delete build generated files Arun Bhanu
2010-03-12  8:53 ` Michal Simek
2010-03-12 10:20   ` Arun Bhanu
2010-03-12 10:37     ` Michal Simek
2010-03-12 10:56       ` Arun Bhanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox