<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/07/2016 10:23 PM, Burton, Ross
wrote:<br>
</div>
<blockquote
cite="mid:CAJTo0LYOiCPGMYE2BTeZD0hyhfLcO0KALR7pmDhr23jGNcdytg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 24 December 2015 at 05:51, <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:fupan.li@windriver.com" target="_blank">fupan.li@windriver.com</a>></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 "arm-poky-linux-gnueabi",<br>
+ #so the arch is 'arm'<br>
+ <span class="il">target_sys</span> =
self.d.getVar("<span class="il">TARGET_SYS</span>",
True)<br>
+ if <span class="il">target_sys</span>:<br>
+ target_arch = <span class="il">target_sys</span>.split('-')[0]<br>
+ if target_arch not in
package_archs['default']:<br>
+
package_archs['default'].append(target_arch)<br>
+</div>
</blockquote>
</div>
<br>
Isn't this a long-winded way of getting ${TARGET_ARCH}?</div>
</div>
</blockquote>
Hi, Ross<br>
<br>
You are right, actually <span class="il">TARGET_SYS's arch
substring comes from<br>
</span><span class="il">TARGET_ARCH.<br>
Thanks for pointing it out. <br>
<br>
I formated a V2 patch using </span><span class="il">TARGET_ARCH
directly!<br>
<br>
<br>
Fupan<br>
</span>
<blockquote
cite="mid:CAJTo0LYOiCPGMYE2BTeZD0hyhfLcO0KALR7pmDhr23jGNcdytg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Ross</div>
</div>
</blockquote>
<br>
</body>
</html>