diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-10-13 00:22:35 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-10-13 17:11:16 -0700 |
commit | aab5154587a8aa236e0689bb5bcf3fad6c06473a (patch) | |
tree | 621a554c537ab0fdfd6fff50637030691663ddf6 /conf/distro/include/sane-toolchain.inc | |
parent | 8d8fbd9fb543bfafcfaa3a13d9ab5f514e6cd71c (diff) |
sane-toolchain.inc: Compute uclibc based triplets correctly.
* Currently for uclibc it does not do the right job it generates
e.g. for SPE it generates linux-uclibcgnuspe which is not right.
This patch fixed it.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'conf/distro/include/sane-toolchain.inc')
-rw-r--r-- | conf/distro/include/sane-toolchain.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/conf/distro/include/sane-toolchain.inc b/conf/distro/include/sane-toolchain.inc index 5c326d751f..af7c6072bd 100644 --- a/conf/distro/include/sane-toolchain.inc +++ b/conf/distro/include/sane-toolchain.inc @@ -159,8 +159,8 @@ def compute_os_portion_of_target_triplet (d): arm_eabi_supporting_arches = "armv6 armv6-novfp \ armv5te iwmmxt armv7a armv7 armv5teb armv4t" ppc_spe_supporting_arches = "ppce500v2 ppce500" - - if bb.data.getVar("LIBC", d, 1) == "uclibc": + gnu_suffix = "" + if bb.data.getVar('LIBC', d, 1) == "uclibc": libc_suffix = "uclibc" else: libc_suffix = "" @@ -182,16 +182,20 @@ def compute_os_portion_of_target_triplet (d): bb.fatal("DISTRO requested EABI but selected machine does not support EABI") abi_suffix = "" else: - abi_suffix = "gnueabi" + if libc_suffix is not "uclibc": + gnu_suffix = "gnu" + abi_suffix = "eabi" elif bparch in ppc_spe_supporting_arches.split(): - abi_suffix = "gnuspe" + if libc_suffix is not "uclibc": + gnu_suffix = "gnu" + abi_suffix = "spe" else: abi_suffix = "" else: bb.note("DISTRO_FEATURES is not set abi suffix not set") abi_suffix = "" if libc_suffix is not "" or abi_suffix is not "": - return os_suffix + "-" + libc_suffix + abi_suffix + return os_suffix + "-" + libc_suffix + gnu_suffix + abi_suffix else: return os_suffix |