microblaze: Makefile fixes
cover microblaze: Makefile fixes
Michal,
Following are the two patches for Makefile we discussed.
Please consider applying.
-Arun
PATCH 1/2 microblaze: Fix Makefile to delete build generated files
'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
--- arch/microblaze/Makefile | 2 ++ arch/microblaze/boot/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-)
arch/microblaze/Makefile +2 -0
@@ -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.*
arch/microblaze/boot/Makefile +1 -1
@@ -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
Signature · 1 line
1.6.2.5
PATCH 2/2 microblaze: Makefile cleanups
In reply to Arun BhanuIf 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.
--- arch/microblaze/boot/Makefile | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
arch/microblaze/boot/Makefile +0 -4
@@ -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
Signature · 1 line
1.6.2.5
Michal Simek
maintainerQuoted 5 lines · Arun Bhanu
Michal,
Following are the two patches for
Makefilewe discussed.Please consider applying.
Added to next branch.
Thanks,
Michal
Quoted 2 lines
-Arun
Signature · 4 lines
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