Patchwork tclibc-uclibc: Fix TARGET_OS for powerpc

login
register
mail settings
Submitter Khem Raj
Date July 22, 2011, 3:18 a.m.
Message ID <1311304709-6156-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/8259/
State New, archived
Headers show

Comments

Khem Raj - July 22, 2011, 3:18 a.m.
1a9ae8ea8c0540d41b8ff4d95c0420d6df754634 removed -uclibc
hence it got all wrong for powerpc. uclibc TARGET_OS
for classic ppc is linux-uclibc and for ppc w/ SPE its
linux-uclibcspe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/conf/distro/include/tclibc-uclibc.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Saul Wold - July 22, 2011, 4 p.m.
On 07/21/2011 08:18 PM, Khem Raj wrote:
> 1a9ae8ea8c0540d41b8ff4d95c0420d6df754634 removed -uclibc
> hence it got all wrong for powerpc. uclibc TARGET_OS
> for classic ppc is linux-uclibc and for ppc w/ SPE its
> linux-uclibcspe
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
>   meta/conf/distro/include/tclibc-uclibc.inc |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc
> index 2ccda5b..7c06654 100644
> --- a/meta/conf/distro/include/tclibc-uclibc.inc
> +++ b/meta/conf/distro/include/tclibc-uclibc.inc
> @@ -5,7 +5,7 @@
>   TARGET_OS = "linux-uclibc"
>   TARGET_OS_arm = "linux-uclibceabi"
>   TARGET_OS_armeb = "linux-uclibceabi"
> -TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
> +TARGET_OS_powerpc = "linux-uclibc${@['','spe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
>
>   # Add uclibc overrides to the overrides.
>   OVERRIDES =. "libc-uclibc:"

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/conf/distro/include/tclibc-uclibc.inc b/meta/conf/distro/include/tclibc-uclibc.inc
index 2ccda5b..7c06654 100644
--- a/meta/conf/distro/include/tclibc-uclibc.inc
+++ b/meta/conf/distro/include/tclibc-uclibc.inc
@@ -5,7 +5,7 @@ 
 TARGET_OS = "linux-uclibc"
 TARGET_OS_arm = "linux-uclibceabi"
 TARGET_OS_armeb = "linux-uclibceabi"
-TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
+TARGET_OS_powerpc = "linux-uclibc${@['','spe'][bb.data.getVar('TARGET_FPU',d,1) in ['ppc-efd', 'ppc-efs']]}"
 
 # Add uclibc overrides to the overrides.
 OVERRIDES =. "libc-uclibc:"