[PATCH] ppc32: Fix uImage make target to report success correctly

Kumar Gala galak at freescale.com
Thu May 12 01:10:31 EST 2005


The existing make rule when building a uImage would check to see
if the image file existed to report 'is ready' or 'not made'.
However make appeared to compute the file list before the rule
was executed.

Signed-off-by: Chris Clark <cpclark at xmission.com>
Signed-off-by: Kumar Gala <kumar.gala at freescale.com>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org> 

---
commit f772a90e948f019c3111a94394b3a649874417c7
tree c9d59c269792db4933039da49b3b3836ac5b01f5
parent c140244727aa88fcaefe34af4abc56e85b471da2
author Kumar K. Gala <kumar.gala at freescale.com> Tue, 10 May 2005 10:27:46 -0500
committer Kumar K. Gala <kumar.gala at freescale.com> Tue, 10 May 2005 10:27:46 -0500

 ppc/boot/images/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

Index: arch/ppc/boot/images/Makefile
===================================================================
--- dd5d97e6f88b8fbfcc09878d837c8e90590484b8/arch/ppc/boot/images/Makefile  (mode:100644)
+++ c9d59c269792db4933039da49b3b3836ac5b01f5/arch/ppc/boot/images/Makefile  (mode:100644)
@@ -22,7 +22,8 @@
 $(obj)/uImage: $(obj)/vmlinux.gz
 	$(Q)rm -f $@
 	$(call if_changed,uimage)
-	@echo '  Image: $@' $(if $(wildcard $@),'is ready','not made')
+	@echo -n '  Image: $@ '
+	@if [ -f $@ ]; then echo 'is ready' ; else echo 'not made'; fi
 
 # Files generated that shall be removed upon make clean
 clean-files	:= sImage vmapus vmlinux* miboot* zImage* uImage



More information about the Linuxppc-embedded mailing list