All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] microblaze: Makefile fixes
@ 2010-03-17  8:06 Arun Bhanu
  2010-03-17  8:06 ` [PATCH 1/2] microblaze: Fix Makefile to delete build generated files Arun Bhanu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Arun Bhanu @ 2010-03-17  8:06 UTC (permalink / raw)
  To: linux-kernel, microblaze-uclinux; +Cc: Michal Simek, Arun Bhanu

Michal,

Following are the two patches for Makefile we discussed.

Please consider applying.

-Arun

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

* [PATCH 1/2] microblaze: Fix Makefile to delete build generated files
  2010-03-17  8:06 [PATCH 0/2] microblaze: Makefile fixes Arun Bhanu
@ 2010-03-17  8:06 ` Arun Bhanu
  2010-03-17  8:06 ` [PATCH 2/2] microblaze: Makefile cleanups Arun Bhanu
  2010-03-17  8:25 ` [PATCH 0/2] microblaze: Makefile fixes Michal Simek
  2 siblings, 0 replies; 4+ messages in thread
From: Arun Bhanu @ 2010-03-17  8:06 UTC (permalink / raw)
  To: linux-kernel, microblaze-uclinux; +Cc: Michal Simek, Arun Bhanu

'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.*
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
-- 
1.6.2.5


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

* [PATCH 2/2] microblaze: Makefile cleanups
  2010-03-17  8:06 [PATCH 0/2] microblaze: Makefile fixes Arun Bhanu
  2010-03-17  8:06 ` [PATCH 1/2] microblaze: Fix Makefile to delete build generated files Arun Bhanu
@ 2010-03-17  8:06 ` Arun Bhanu
  2010-03-17  8:25 ` [PATCH 0/2] microblaze: Makefile fixes Michal Simek
  2 siblings, 0 replies; 4+ messages in thread
From: Arun Bhanu @ 2010-03-17  8:06 UTC (permalink / raw)
  To: linux-kernel, microblaze-uclinux; +Cc: Michal Simek, Arun Bhanu

If CONFIG_INITRAMFS_SOURCE is set, "scripts/gen_initramfs_list.sh"
checks if the cpio image exists. Remove the duplicate check from the
Makefile.

Remove the "clean-kernel" variable which is unused in the Makefile and
is not used by the Kbuild.

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

diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
index a1fc324..57f50c2 100644
--- a/arch/microblaze/boot/Makefile
+++ b/arch/microblaze/boot/Makefile
@@ -23,8 +23,6 @@ $(obj)/system.dtb: $(obj)/$(DTB).dtb
 endif
 
 $(obj)/linux.bin: vmlinux FORCE
-	[ -n $(CONFIG_INITRAMFS_SOURCE) ] && [ ! -e $(CONFIG_INITRAMFS_SOURCE) ] && \
-	touch $(CONFIG_INITRAMFS_SOURCE) || echo "No CPIO image"
 	$(call if_changed,objcopy)
 	$(call if_changed,uimage)
 	@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
@@ -62,6 +60,4 @@ quiet_cmd_dtc = DTC     $@
 $(obj)/%.dtb: $(dtstree)/%.dts FORCE
 	$(call if_changed,dtc)
 
-clean-kernel += linux.bin linux.bin.gz simpleImage.*
-
 clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
-- 
1.6.2.5


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

* Re: [PATCH 0/2] microblaze: Makefile fixes
  2010-03-17  8:06 [PATCH 0/2] microblaze: Makefile fixes Arun Bhanu
  2010-03-17  8:06 ` [PATCH 1/2] microblaze: Fix Makefile to delete build generated files Arun Bhanu
  2010-03-17  8:06 ` [PATCH 2/2] microblaze: Makefile cleanups Arun Bhanu
@ 2010-03-17  8:25 ` Michal Simek
  2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2010-03-17  8:25 UTC (permalink / raw)
  To: Arun Bhanu; +Cc: linux-kernel, microblaze-uclinux

Arun Bhanu wrote:
> Michal,
> 
> Following are the two patches for Makefile we discussed.
> 
> Please consider applying.

Added to next branch.

Thanks,
Michal

> 
> -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] 4+ messages in thread

end of thread, other threads:[~2010-03-17  8:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-17  8:06 [PATCH 0/2] microblaze: Makefile fixes Arun Bhanu
2010-03-17  8:06 ` [PATCH 1/2] microblaze: Fix Makefile to delete build generated files Arun Bhanu
2010-03-17  8:06 ` [PATCH 2/2] microblaze: Makefile cleanups Arun Bhanu
2010-03-17  8:25 ` [PATCH 0/2] microblaze: Makefile fixes Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.