On 01/07/2016 10:23 PM, Burton, Ross wrote:

On 24 December 2015 at 05:51, <fupan.li@windriver.com> wrote:
+            #add the compatible arch extracted from TARGET_SYS.
+            #TARGET_SYS usually values as "arm-poky-linux-gnueabi",
+            #so the arch is 'arm'
+            target_sys = self.d.getVar("TARGET_SYS", True)
+            if target_sys:
+                target_arch = target_sys.split('-')[0]
+            if target_arch not in package_archs['default']:
+                package_archs['default'].append(target_arch)
+

Isn't this a long-winded way of getting ${TARGET_ARCH}?
Hi, Ross

You are right, actually TARGET_SYS's arch substring comes from
TARGET_ARCH.
Thanks for pointing it out.

I formated a V2 patch using
TARGET_ARCH directly!


Fupan

Ross