[oe] [RFC] cpio.lzma compression level in bitbake.conf

Khem Raj raj.khem at gmail.com
Fri Mar 11 23:53:46 UTC 2011


On (11/03/11 10:51), Andrea Adami wrote:
> On Fri, Mar 11, 2011 at 10:49 AM, Andrea Adami <andrea.adami at gmail.com> wrote:
> >> 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"
> 
> Copy and paste is for the lazy..obviously I meant
> + LZMA_COMPRESSION_LEVEL = "-7"
> 
> 
> >
> > Acceptable?

Yes I would think so.

> >
> > Regards
> >
> > 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