[yocto] [PATCH 2/5] tclibc-*glibc: Utilize TARGET_FPU for gnuspe setting

Khem Raj raj.khem at gmail.com
Mon Jul 18 23:08:26 PDT 2011


On Mon, Jul 18, 2011 at 10:21 PM, Kumar Gala <galak at kernel.crashing.org> wrote:
> Its possible that BASE_PACKAGE_ARCH isn't set to ppce500 or ppce500v2 when
> we build native toolchains.  So we can utilize TARGET_FPU being set to
> "spe" to determine if we should enable the gnuspe ABI.
>
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
>  meta/conf/distro/include/tclibc-eglibc.inc |    2 +-
>  meta/conf/distro/include/tclibc-glibc.inc  |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>

similar change is needed for tclibc-uclibc.inc as well. something like

TARGET_OS_powerpc =
"linux-uclibc${@['','spe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in
['ppce500', 'ppce500v2']]}"

> diff --git a/meta/conf/distro/include/tclibc-eglibc.inc b/meta/conf/distro/include/tclibc-eglibc.inc
> index e070aad..0cddcd4 100644
> --- a/meta/conf/distro/include/tclibc-eglibc.inc
> +++ b/meta/conf/distro/include/tclibc-eglibc.inc
> @@ -5,7 +5,7 @@
>  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']]}"
> +TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['spe']]}"
>
>  # Add glibc overrides to the overrides for eglibc.
>  OVERRIDES .= ":libc-glibc"
> diff --git a/meta/conf/distro/include/tclibc-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc
> index 5e7afc1..22f7d29 100644
> --- a/meta/conf/distro/include/tclibc-glibc.inc
> +++ b/meta/conf/distro/include/tclibc-glibc.inc
> @@ -5,7 +5,7 @@
>  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']]}"
> +TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['spe']]}"
>
>  # Add glibc to the overrides.
>  OVERRIDES =. "libc-glibc:"
> --
> 1.7.3.4
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list