[OE-core] [PATCH] gcc-cross: Don't reference machine specific variables

Martin Jansa martin.jansa at gmail.com
Wed Jan 25 13:57:02 UTC 2012


On Tue, Jan 24, 2012 at 05:09:30PM +0000, Richard Purdie wrote:
> gcc-cross is installed into a package architecture specific directory
> and is not meant to be machine specific. This patch replaces MACHINE_ARCH
> with PACKAGE_ARCH to ensure this is really the case.
> 
> This was found by examining sstate checksums.
> 
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

Acked-by: Martin Jansa <Martin.Jansa at gmail.com>

> ---
> diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
> index 0b31a8c..6acf8c5 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross.inc
> +++ b/meta/recipes-devtools/gcc/gcc-cross.inc
> @@ -87,12 +87,12 @@ then
>  	exit 1
>  fi
>  	echo "lappend boards_dir [pwd]/../../.." > ${B}/site.exp
> -	echo "load_generic_config \"unix\"" > ${B}/${MACHINE_ARCH}.exp
> -	echo "set_board_info username \$user" >> ${B}/${MACHINE_ARCH}.exp
> -	echo "set_board_info rsh_prog ssh" >> ${B}/${MACHINE_ARCH}.exp
> -	echo "set_board_info rcp_prog scp" >> ${B}/${MACHINE_ARCH}.exp
> -	echo "set_board_info hostname \$target" >> ${B}/${MACHINE_ARCH}.exp
> -	DEJAGNU=${B}/site.exp make -k check RUNTESTFLAGS="--target_board=${MACHINE_ARCH}\$@"
> +	echo "load_generic_config \"unix\"" > ${B}/${PACKAGE_ARCH}.exp
> +	echo "set_board_info username \$user" >> ${B}/${PACKAGE_ARCH}.exp
> +	echo "set_board_info rsh_prog ssh" >> ${B}/${PACKAGE_ARCH}.exp
> +	echo "set_board_info rcp_prog scp" >> ${B}/${PACKAGE_ARCH}.exp
> +	echo "set_board_info hostname \$target" >> ${B}/${PACKAGE_ARCH}.exp
> +	DEJAGNU=${B}/site.exp make -k check RUNTESTFLAGS="--target_board=${PACKAGE_ARCH}\$@"
>  
>  STOP
>  
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120125/f4309351/attachment-0002.sig>


More information about the Openembedded-core mailing list