angstrom-eglibc.inc: Update SPE check
authorTom Rini <tom_rini@mentor.com>
Wed, 15 Sep 2010 00:24:05 +0000 (17:24 -0700)
committerTom Rini <tom_rini@mentor.com>
Wed, 15 Sep 2010 13:52:01 +0000 (06:52 -0700)
Use BASE_PACKAGE_ARCH to determine if we should be SPE, or not
which is what sane-toolchain.inc does.  This saves us having to
update this file every time a new e500 machine is added.

Acked-by: Koen Kooi <k-kooi@ti.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
conf/distro/include/angstrom-eglibc.inc

index fe83aa3..4b059fc 100644 (file)
@@ -9,7 +9,7 @@ TARGET_OS = "linux"
 #TARGET_OS = "${@compute_os_portion_of_target_triplet(d)}"
 
 TARGET_OS .= "${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb']]}"
-TARGET_OS .= "${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari','p1020rdb','p2020rdb']]}"
+TARGET_OS .= "${@['','-gnuspe'][bb.data.getVar('BASE_PACKAGE_ARCH',d,1) in ['ppce500', 'ppce500v2']]}"
 
 # perl has some problems, see http://bugs.openembedded.net/show_bug.cgi?id=1616
 # [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os"