<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"><<a href="mailto:Qi.Chen@windriver.com" target="_blank">Qi.Chen@windriver.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Chen Qi <<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>><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, '/bin/busybox'<br>
may not be present, so setting the default ALTERNATIVE_TARGET to<br>
'/bin/busybox' is not appropriate and could lead to errors.<br>
<br>
This patch fixes this problem by checking the existence of '/bin/busybox'<br>
before setting the ALTERNATIVE_TARGET to '/bin/busybox'.<br>
<br>
After this change, if busybox is built as individual apps, we'll have<br>
links like '/bin/ls -> /bin/ls.busybox', otherwise, we'll have links<br>
like '/bin/ls -> /bin/busybox'.<br>
<br>
Note there's a grep expression change in this patch. The old expression<br>
doesn'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 <<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>><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>