From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) by ozlabs.org (Postfix) with ESMTP id 5061D679F1 for ; Tue, 10 May 2005 01:19:07 +1000 (EST) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: From: Kumar Gala Date: Mon, 9 May 2005 10:19:01 -0500 To: Sam Ravnborg Cc: Tom Rini , " " , Linux Kernel list , linuxppc-embedded list Subject: Re: PPC uImage build not reporting correctly List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On May 6, 2005, at 6:22 PM, wrote: > On Fri, 6 May 2005, Kumar Gala wrote: > > I tried the following w/o success: > > > > $(obj)/uImage: $(obj)/vmlinux.gz > >=A0=A0=A0=A0=A0=A0=A0=A0 $(Q)rm -f $@ > >=A0=A0=A0=A0=A0=A0=A0=A0 $(call if_changed,uimage) > >=A0=A0=A0=A0=A0=A0=A0=A0 @echo '=A0 Image: $@' $(shell if [ -f $@ ]; = then echo 'is=20 > ready'; else > > echo 'not made'; fi) > > Couldn't you eliminate the ($shell ..) construct altogether, like=20 > this?: > > $(obj)/uImage: $(obj)/vmlinux.gz > =A0=A0=A0=A0=A0=A0=A0 $(Q)rm -f $@ > =A0=A0=A0=A0=A0=A0=A0 $(call if_changed,uimage) > =A0=A0=A0=A0=A0=A0=A0 @echo -n '=A0 Image: $@' > =A0=A0=A0=A0=A0=A0=A0 @if [ -f $@ ]; then echo 'is ready' ; else echo = 'not made'; fi Yes, and this seems to actually work. Sam, does this look reasonable to you. If so I will work up a patch. thanks - kumar