<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 24 December 2015 at 05:51,  <span dir="ltr">&lt;<a href="mailto:fupan.li@windriver.com" target="_blank">fupan.li@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2v9" class="a3s" style="overflow:hidden">+  Â  Â  Â  Â  Â  #add the compatible arch extracted from <span class="il">TARGET_SYS</span>.<br>
+  Â  Â  Â  Â  Â  #<span class="il">TARGET_SYS</span> usually values as &quot;arm-poky-linux-gnueabi&quot;,<br>
+  Â  Â  Â  Â  Â  #so the arch is &#39;arm&#39;<br>
+  Â  Â  Â  Â  Â  <span class="il">target_sys</span> = self.d.getVar(&quot;<span class="il">TARGET_SYS</span>&quot;, True)<br>
+  Â  Â  Â  Â  Â  if <span class="il">target_sys</span>:<br>
+  Â  Â  Â  Â  Â  Â  Â  target_arch = <span class="il">target_sys</span>.split(&#39;-&#39;)[0]<br>
+  Â  Â  Â  Â  Â  if target_arch not in package_archs[&#39;default&#39;]:<br>
+  Â  Â  Â  Â  Â  Â  Â  package_archs[&#39;default&#39;].append(target_arch)<br>
+</div></blockquote></div><br>Isn&#39;t this a long-winded way of getting ${TARGET_ARCH}?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>