<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 7, 2013 at 3:13 AM,  <span dir="ltr">&lt;<a href="mailto:Qi.Chen@windriver.com" target="_blank">Qi.Chen@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">From: Chen Qi &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
<br>
Previously, if CONFIG_FEATURE_INDIVIDUAL was enabled for busybox,<br>
yocto-based systems could start correctly.<br>
<br>
This is because if busybox is built as individual apps, &#39;/bin/busybox&#39;<br>
may not be present, so setting the default ALTERNATIVE_TARGET to<br>
&#39;/bin/busybox&#39; is not appropriate and could lead to errors.<br>
<br>
This patch fixes this problem by checking the existence of &#39;/bin/busybox&#39;<br>
before setting the ALTERNATIVE_TARGET to &#39;/bin/busybox&#39;.<br>
<br>
After this change, if busybox is built as individual apps, we&#39;ll have<br>
links like &#39;/bin/ls -&gt; /bin/ls.busybox&#39;, otherwise, we&#39;ll have links<br>
like &#39;/bin/ls -&gt; /bin/busybox&#39;.<br>
<br>
Note there&#39;s a grep expression change in this patch. The old expression<br>
doesn&#39;t work well, it has an unwanted underscore, so I changed it to make<br>
it work.<br>
<br>
[YOCTO #4570]<br>
<br>
Signed-off-by: Chen Qi &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br></blockquote><div><br></div><div style>Please rework 1/8 and reduce the changes here. This will be easier to test and review this way. </div>
</div><div><br></div>-- <br>Otavio Salvador                             O.S. Systems<br><a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a>        <a href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br>
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750<br>
</div></div>