[U-Boot-Users] Makefile problems

Simon Poole simon.armlinux at themalago.net
Tue May 17 16:56:17 CEST 2005


Wolfgang Denk wrote:
>>And as I wrote, my most preferred solution would be something
>>like 'HOSTCC=gcc-3 make xyz_config'.  To achieve this, a simple
>>line like '[ $HOSTCC ] && echo "HOSTCC = $HOSTCC" >> config.mk'
>>in mkconfig would probably suffice.  But maybe there's another
>>(better) way.
> 
> 
> What makes it difficult for you to use
> 
> 	make HOSTCC=gcc-3 xyz_config
> instead of 
> 	HOSTCC=gcc-3 make xyz_config
> ??
> 
> Best regards,
> 
> Wolfgang Denk
> 
or

MAKEARGS=
[ -n "$HOSTCC" ] && MAKEARGS="HOSTCC=$HOSTCC"
make $MAKEARGS xyz_config

--
Simon Poole
www.appliancestudio.com





More information about the U-Boot mailing list