[oe] [RFC] cpio.lzma compression level in bitbake.conf
Andrea Adami
andrea.adami at gmail.com
Fri Mar 11 09:49:58 UTC 2011
> 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
> -Khem
Ok, but then we need a weak assignment in bitbake.conf to allow the
setting in machine conf.
So, in bitbake.conf
-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}"
+ LZMA_COMPRESSION_LEVEL ?= "-9"
+IMAGE_CMD_cpio.lzma = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} &&
(find . | cpio -o -H newc | lzma -c ${LZMA_COMPRESSION_LEVEL}
>${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.lzma)
${EXTRA_IMAGECMD}"
And in machine.conf e.g.
+ LZMA_COMPRESSION_LEVEL ?= "-7"
Acceptable?
Regards
Andrea
More information about the Openembedded-devel
mailing list