On Mon, Jul 18, 2011 at 10:21 PM, Kumar Gala <[email protected]> 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 <[email protected]>
> ---
> 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
> [email protected]
> https://lists.yoctoproject.org/listinfo/yocto
>
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto