[OE-core] [PATCH 4/4] tclibc-glibc: add weak assigment to TARGET_OS

Richard Purdie richard.purdie at linuxfoundation.org
Thu Jul 7 12:42:07 UTC 2011


On Tue, 2011-07-05 at 14:38 -0500, Adrian Alonso wrote:
> * Add weak assigment to TARGET_OS variable so it can be
>   overrided to match external toolchain tripplets.
> * Toolchain prefix is expanded from
>   TARGET_SYS = TARGET_ARCH + TARGET_VENDOR + TARGET_OS
> 
> Signed-off-by: Adrian Alonso <aalonso at secretlab.ca>
> ---
>  meta/conf/distro/include/tclibc-glibc.inc |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/conf/distro/include/tclibc-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc
> index 5e7afc1..997fc11 100644
> --- a/meta/conf/distro/include/tclibc-glibc.inc
> +++ b/meta/conf/distro/include/tclibc-glibc.inc
> @@ -2,7 +2,7 @@
>  # glibc specific configuration
>  #
>  
> -TARGET_OS = "linux"
> +TARGET_OS ?= "linux"
>  TARGET_OS_arm = "linux-gnueabi"
>  TARGET_OS_armeb = "linux-gnueabi"
>  TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}"

I've merged the first three patches, thanks. This one makes me nervous
as TARGET_OS has traditionally been a problematic variable and ?= hasn't
always done what you'd expect. This therefore needs a bit more testing
and investigation before we can merge it as I think there could be
problems exposed...

Cheers,

Richard





More information about the Openembedded-core mailing list