<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 18, 2014 at 6:44 AM, Paul Barker <span dir="ltr"><<a href="mailto:paul@paulbarker.me.uk" target="_blank">paul@paulbarker.me.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2cp" class="a3s" style="overflow:hidden">I've been wanting to try out toybox within OpenEmbedded for quite a while and<br>
have finally found time to put a recipe together. Toybox is a BSD-licensed<br>
alternative to Busybox which may be of interest to a few people. It's still a<br>
work in progress but it already covers a large number of the basic commands a<br>
system needs. It should tie in well with the recent work Khem has done to enable<br>
the use of musl in OpenEmbedded as toybox and musl are often used together (e.g.<br>
Aboriginal Linux distro).<br>
<br>
My patches are currently against openembedded-core for convenience but this<br>
probably belongs in meta-oe for now. I've done some basic testing on qemuarm but<br>
nothing significant. toybox builds and installs correctly though and I've set<br>
ALTERNATIVE_PRIORITY = 60 so that it takes precedence over busybox tools.<br>
<br>
Removing toybox after it has been installed currently bricks the system though<br>
as the postrm script runs after '/bin/toybox' has been removed (so things like<br>
'/bin/ln' become broken links and the update-alternatives script can't run).</div></blockquote></div><br></div><div class="gmail_extra">One option for that might be to try the C implementation of alternatives that's provided in chkconfig, rather than cworth's shell version. I haven't tested it in that context, but I doubt it runs so many external tools.<br>
-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>