[U-Boot] [PATCH 2/3] MAKEALL: fix a bug to use CROSS_COMPILE_<ARCH>

Albert ARIBAUD albert.u.boot at aribaud.net
Thu Oct 17 10:33:54 CEST 2013


Hi Masahiro,

On Thu, 17 Oct 2013 16:37:41 +0900, Masahiro Yamada
<yamada.m at jp.panasonic.com> wrote:

> Commit 27af930e changed the boards.cfg format but
> missed to change get_target_arch() fuction.
> This commit adjusts it for CROSS_COMPILE_<ARCH>
> to work correctly.
> 
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>
> ---
>  MAKEALL | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/MAKEALL b/MAKEALL
> index 0d7893b..4f685e1 100755
> --- a/MAKEALL
> +++ b/MAKEALL
> @@ -571,7 +571,7 @@ get_target_arch() {
>  	local target=$1
>  
>  	# Automatic mode
> -	local line=`egrep -i "^[[:space:]]*${target}[[:space:]]" boards.cfg`
> +	local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
>  
>  	if [ -z "${line}" ] ; then echo "" ; return ; fi
>  

What issue does this change fix?

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list