<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/image-mklibs.bbclass, branch 1.3</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=1.3</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=1.3'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2012-08-07T11:56:34+00:00</updated>
<entry>
<title>image-mklibs: pass correct libdir to mklibs</title>
<updated>2012-08-07T11:56:34+00:00</updated>
<author>
<name>Jesse Zhang</name>
<email>sen.zhang@windriver.com</email>
</author>
<published>2012-08-07T02:31:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d6ef548c48968d16f7e24dec7452ddb455c26d46'/>
<id>urn:sha1:d6ef548c48968d16f7e24dec7452ddb455c26d46</id>
<content type='text'>
libdir should be specified, or else mklibs won't work for 64bit targets.
It wouldn't be able to find the libs.

    Traceback (most recent call last):
      File "&lt;build&gt;/bitbake_build/tmp/sysroots/i686-linux/usr/bin/x86_64-wrs-linux/mklibs", line 553, in &lt;module&gt;
        header = elf_header(find_lib(libraries.copy().pop()))
      File "&lt;build&gt;/bitbake_build/tmp/sysroots/i686-linux/usr/bin/x86_64-wrs-linux/mklibs", line 89, in elf_header
        raise Exception("Cannot find lib: " + obj)
    Exception: Cannot find lib:

(From OE-Core rev: d2cd2ccea8bc4d110647ba3bd202772e5407000a)

Signed-off-by: Jesse Zhang &lt;sen.zhang@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>image-mklibs/package_ipk: Remove bashisms</title>
<updated>2012-01-05T22:26:25+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2012-01-05T12:50:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5797feac5f06f5cc363869cd440b82b3eaafd456'/>
<id>urn:sha1:5797feac5f06f5cc363869cd440b82b3eaafd456</id>
<content type='text'>
We now support using dash but these bashisms triggered build failures for me
when using it. This replaces the code with something which works on dash.

(From OE-Core rev: 4a85312568a6bb052cc511c15b4ae842ff7f8e59)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>image-mklibs.bbclass: Utilize ${base_libdir} instead of static /lib</title>
<updated>2011-08-05T16:16:02+00:00</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2011-08-04T04:03:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=acfcc85da088d634aaf685d26f8744516e3b4cf1'/>
<id>urn:sha1:acfcc85da088d634aaf685d26f8744516e3b4cf1</id>
<content type='text'>
We might redefine ${base_libdir} from being set to just /lib.

(From OE-Core rev: 7615f81f86bb5ccfe52b84b38eb9ae80a852d214)

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>image-mklibs.bbclass: Add powerpc64 arch support</title>
<updated>2011-08-05T16:16:01+00:00</updated>
<author>
<name>Kumar Gala</name>
<email>galak@kernel.crashing.org</email>
</author>
<published>2011-08-04T04:03:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=05f8db8bf991fadeead0f520567affe845f1a94b'/>
<id>urn:sha1:05f8db8bf991fadeead0f520567affe845f1a94b</id>
<content type='text'>
powerp64 dynamic loader is 'ld64.so.1'.

(From OE-Core rev: ef6007cf129a6eec71e1cbb1c65efc8bfd3991e0)

Signed-off-by: Kumar Gala &lt;galak@kernel.crashing.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>image-mklibs: add microblaze arch support</title>
<updated>2011-05-10T08:56:20+00:00</updated>
<author>
<name>Adrian Alonso</name>
<email>aalonso@secretlab.ca</email>
</author>
<published>2011-05-05T16:45:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9f2d50ccf007706743368905ed045e58fbc95754'/>
<id>urn:sha1:9f2d50ccf007706743368905ed045e58fbc95754</id>
<content type='text'>
* In function mklibs_optimize_image_doit
* Add microblaze arch case for setting the dynamic_loader
  used by "mklibs" call

(From OE-Core rev: 473314d9978dfee53cddc45e4ee1863266eb01e1)

Signed-off-by: Adrian Alonso &lt;aalonso@secretlab.ca&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>image-mklibs.bbclass: add the library optimization functionality</title>
<updated>2011-02-09T22:45:47+00:00</updated>
<author>
<name>Nitin A Kamble</name>
<email>nitin.a.kamble@intel.com</email>
</author>
<published>2011-01-25T16:43:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=068417289a4aeddc1cb18a7b102cd542ab283a92'/>
<id>urn:sha1:068417289a4aeddc1cb18a7b102cd542ab283a92</id>
<content type='text'>
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 &lt;nitin.a.kamble@intel.com&gt;
</content>
</entry>
</feed>
