[oe] [RFC] cpio.lzma compression level in bitbake.conf
Khem Raj
raj.khem at gmail.com
Fri Mar 11 08:04:27 UTC 2011
On (10/03/11 10:21), Andrea Adami wrote:
> Hello,
>
> in bitbake.conf we use the maximum lzma compression level (-c -9) for
> the initramfs:
>
> IMAGE_CMD_cpio.lzma = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} &&
> (find . | cpio -o -H newc | lzma -c -9
> >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma)
> ${EXTRA_IMAGECMD}"
>
> This makes decompressor fail on devices with 32Mb RAM (see
> http://paste.debian.net/110203/ ).
> Same kernel boots with compression set to -7.
>
> Some figures can be obtained here:
> http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=lzcat
>
> It was suggested we should introduce something like
> LZMA_COMPRESSION_LEVEL or use internal tables to find better level
> from targets memory amount.
> In the meanwhile I think we should change the defaults in bitbake.conf.
I think this is something we can encapsulate in machine.conf files
so unless the general value in bitbake.conf does not fail for almost
all cases I would suggest to keep it and instead introduce a new
variable to control the level
>
> Opinions?
>
> Andrea
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
-Khem
More information about the Openembedded-devel
mailing list