[OE-core] Very large size of libraries in core-image-minimal rootfs

Adrian Bunk bunk at stusta.de
Mon Nov 25 21:10:27 UTC 2019


On Mon, Nov 25, 2019 at 07:26:58PM +0000, Ross Burton wrote:
> On 25/11/2019 18:37, Ankur Tyagi wrote:
> > Hi,
> > 
> > Based upon "thud" branch, I created core-image-minimal for am335x-evm
> > board and resulting image size is very big(71M)
> 
> If disk size is important then a good first step is to use musl instead of
> glibc:
> 
> TCLIBC = "musl"
>...

musl is mainly useful for tiny systems, a 40 MB partition is such a huge
amount of space that the size of the C library no longer matters much.

The size benefit of replacing glibc with musl is around 2 MB.

A partition with an -Os build of Yocto with glibc+systemd (sic)
is around 9 MB, together with bootloader and kernel this all
fits in a 16 MB flash. Use compression for kernel and root
filesystem and everything fits in a 8 MB flash.

> Ross

cu
Adrian


More information about the Openembedded-core mailing list