summaryrefslogtreecommitdiffstats
path: root/meta/conf/local.conf.sample
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-01-25 08:43:10 -0800
committerRichard Purdie <rpurdie@linux.intel.com>2011-02-09 22:45:47 +0000
commit068417289a4aeddc1cb18a7b102cd542ab283a92 (patch)
tree56728c9f3b93e73299c82de0def747f01880c1f8 /meta/conf/local.conf.sample
parentcfc40419885c1049e1345f4fd03f183114192402 (diff)
downloadpoky-068417289a4aeddc1cb18a7b102cd542ab283a92.tar.gz
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>
Diffstat (limited to 'meta/conf/local.conf.sample')
-rw-r--r--meta/conf/local.conf.sample12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample
index d9f7098f0c..d61aaebdd0 100644
--- a/meta/conf/local.conf.sample
+++ b/meta/conf/local.conf.sample
@@ -73,10 +73,20 @@ EXTRA_IMAGE_FEATURES_mx31ads = "tools-testapps debug-tweaks"
73#PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk" 73#PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
74PACKAGE_CLASSES ?= "package_rpm package_ipk" 74PACKAGE_CLASSES ?= "package_rpm package_ipk"
75 75
76# mklibs library size optimization is more useful to smaller images,
77# and less useful for bigger images. Also mklibs library optimization can break the ABI compatibility, so should not be applied to the images which are tobe
78# extended or upgraded later.
79#This enabled mklibs library size optimization just for the specified image.
80#MKLIBS_OPTIMIZED_IMAGES ?= "poky-image-minimal"
81#This enable mklibs library size optimization will be for all the images.
82#MKLIBS_OPTIMIZED_IMAGES ?= "all"
83
76# A list of additional classes to use when building the system 84# A list of additional classes to use when building the system
85# include 'image-mklibs' to reduce shared library files size for an image
77# include 'image-prelink' in order to prelink the filesystem image 86# include 'image-prelink' in order to prelink the filesystem image
78# include 'image-swab' to perform host system intrusion detection 87# include 'image-swab' to perform host system intrusion detection
79USER_CLASSES ?= "image-prelink" 88# NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink
89USER_CLASSES ?= "image-mklibs image-prelink"
80 90
81# POKYMODE controls the characteristics of the generated packages/images by 91# POKYMODE controls the characteristics of the generated packages/images by
82# telling poky which type of toolchain to use. 92# telling poky which type of toolchain to use.