generic-poky/meta
Michel Thebeau cd2f003b51 kernel.bbclass: do_strip: allow recipes to strip the kernel
Allow recipes to specify sections to be stripped from the kernel output
using KERNEL_IMAGE_STRIP_EXTRA_SECTIONS.  For example:

KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment .unwanted"

The kernel output is stripped in place.

Since the toolchain does not give indication when the specified sections
are absent, we read the sections first and make this report by issuing a
warning to the developer.

The toolchain by default strips the image with the -s option (even
when -s is not specified):
-s --strip-all       Remove all symbol and relocation information

For example, these sections are always removed:
.debug_aranges
.debug_info
.debug_abbrev
.debug_line
.debug_frame
.debug_str
.debug_loc
.debug_ranges
.symtab
.strtab

In addition to these, the sections listed in
KERNEL_IMAGE_STRIP_EXTRA_SECTIONS will also be removed.

Only stripping of vmlinux (elf) is supported at this time.  A warning
will be given if the image type is not vmlinux.

Stripping the image could also be done in the kernel, but that would
only work for linux-yocto based kernels, so it's not the route we
decided to go.

[YOCTO 3515]

(From OE-Core rev: 5f6d33b05b4e7883f2728ca812cb5386d1e36989)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-11 09:03:21 +01:00
..
classes kernel.bbclass: do_strip: allow recipes to strip the kernel 2013-04-11 09:03:21 +01:00
conf meta-*/conf/layer.conf: tweak BBFILES comment 2013-04-10 09:23:17 +01:00
files fs-perms: remove /var/cache from volatiles 2013-02-06 09:37:29 +00:00
lib/oe lib/oe/classextend.py: avoid extending any kernel package 2013-04-05 17:36:34 +01:00
recipes-bsp pointercal: Move override files from 'files' to 'pointercal' directory 2013-04-04 14:08:06 +01:00
recipes-connectivity openssl: Upgrade to v1.0.1e 2013-04-09 13:16:53 +01:00
recipes-core initscripts: fix read-only-rootfs-hook.sh to start earlier 2013-04-10 16:49:24 +01:00
recipes-devtools rpm-postinsts: avoid errors during boot with read-only-rootfs enabled 2013-04-10 16:49:24 +01:00
recipes-extended libpng12: remove prefer version and add it to lsb packagegroup 2013-04-09 13:16:53 +01:00
recipes-gnome gtk-update-icon-cache-native: create wrapper script 2013-04-08 16:56:46 +01:00
recipes-graphics liberation-fonts: remove 1.06 2013-04-04 23:50:33 +01:00
recipes-kernel kern-tools: fix conditional configuration items 2013-04-11 08:27:41 +01:00
recipes-lsb4 libpng12: rename libpng_1.2.50 to libpng12 2013-04-09 13:16:53 +01:00
recipes-multimedia alsa-tools: Fix sys/io.h patch 2013-04-08 22:27:37 +01:00
recipes-qt qt-mobility: added list of modules to be compiled 2013-04-03 17:01:13 +01:00
recipes-rt packagegroup-core-tools-debug: split out Eclipse packages 2013-03-23 11:48:52 +00:00
recipes-sato packagegroup-core-tools-debug: split out Eclipse packages 2013-03-23 11:48:52 +00:00
recipes-support curl: backport patch to fix segfaults 2013-04-05 23:05:34 +01:00
site site/common-uclibc: add predefined configure vars for coreutils 2013-04-05 11:14:12 +01:00
COPYING.MIT
recipes.txt meta/recipes.txt: add recipes-lsb4 2013-04-10 09:23:17 +01:00