]> code.ossystems Code Review - openembedded-core.git/commit
image-mklibs.bbclass: add the library optimization functionality
authorNitin A Kamble <nitin.a.kamble@intel.com>
Tue, 25 Jan 2011 16:43:10 +0000 (08:43 -0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 9 Feb 2011 22:45:47 +0000 (22:45 +0000)
commit068417289a4aeddc1cb18a7b102cd542ab283a92
tree56728c9f3b93e73299c82de0def747f01880c1f8
parentcfc40419885c1049e1345f4fd03f183114192402
image-mklibs.bbclass: add the library optimization functionality

If you want to enable the mklibs library size optimization for your image
then, edit the MKLIBS_OPTIMIZED_IMAGES line in the local.conf like this:

  MKLIBS_OPTIMIZED_IMAGES ?= "poky-image-minimal your-own-image"

Also this will enable the mklibs library size optimization for all images.

  MKLIBS_OPTIMIZED_IMAGES ?= "all"

on qemux86 machine this reduced the rootfs size of poky image-minimal
image from 7.9MB to 7.2MB. That is around 11% image foot print reduction.
That image had 38 elf executables. Generally the size optimization by
mklibs is reversely proportional to the number of elf executables in the
rootfs. So bigger images will see less optimization, and smaller images
will see large image size reductions.

Thanks to mark hatle for his help in implementation of this.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/classes/image-mklibs.bbclass [new file with mode: 0644]
meta/conf/local.conf.sample