[yocto] Removing busybox completely from the generated image
Martin Hundebøll
mnhu at prevas.dk
Mon Feb 19 22:45:17 PST 2018
Hi Ivan,
On 2018-02-19 17:13, Iván Castell wrote:
>
>
> 2018-02-19 16:18 GMT+01:00 Maxin B. John <maxin.john at intel.com
> <mailto:maxin.john at intel.com>>:
>
> Hi,
>
> On Mon, Feb 19, 2018 at 02:17:38AM -0800, Khem Raj wrote:
> > On Mon, Feb 19, 2018 at 12:35 AM, Iván Castell
> > <icastell at nayarsystems.com <mailto:icastell at nayarsystems.com>> wrote:
> > > I have tried breaking apart packagegroup-core-boot, making a copy in my
> > > custom layer, removing the line referencing busybox:
> > >
> > > ## VIRTUAL-RUNTIME_login_manager ?= "busybox"
>
> Have you considered "toybox" ? It probably wouldn't work right-away.
> Still,
> toybox was designed to provide a replacement for busybox. It is
> available
> in "meta-oe"
>
> http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/toybox/toybox_0.7.5.bb
> <http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-core/toybox/toybox_0.7.5.bb>
>
>
>
> Thank you for the information, I will take into account that tool for
> future embedded projects. However, the focus of this issue was to remove
> completely busybox from the image, not replacing it by another
> application box.
>
> I have created a bbappend with a fragment of the busybox configuration
> disabling syslog and udhcpc applets. It works. However the busybox
> binary and a lot of applets are still there (adduser, unzip, fbset,
> traceroute, and more).
>
> Disabling all different applets and installing native tools instead
> could be the right way to procede. Not a nice solution, but at least it
> should work...
Here's what we have in our distro config to disable busybox:
> # Disable busybox
> VIRTUAL-RUNTIME_base-utils = ""
> ALTERNATIVE_PRIORITY_pn-busybox = "1"
The priority setting make bitbake pull in alternatives from util-linux /
coreutils when appropriate.
// Martin
More information about the yocto
mailing list