summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-19 13:17:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-22 15:56:41 +0100
commit6d7260e8f622dd3965704313ca7dfc51dabb290e (patch)
tree7983807f50e72bb37219cd45e1cdc9d16730c7f9
parent236bda9ed6e70d7159c9854e6e21386c2fca060a (diff)
downloadpoky-6d7260e8f622dd3965704313ca7dfc51dabb290e.tar.gz
poky-6d7260e8f622dd3965704313ca7dfc51dabb290e.tar.bz2
poky-6d7260e8f622dd3965704313ca7dfc51dabb290e.zip
package.bbclass: Ensure kernel modules get stripped
Kernel modules are not marked as executable but we do expect to strip them. This patch adds in missing code to ensure we do this. Without this images are getting sigificantly bloated in size. (From OE-Core rev: 00b0a5f2f51bb3f88bbb9ae558c2859e3c1c406c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index c3f077af3a..44e551f6dd 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -870,6 +870,14 @@ python split_and_strip_files () {
elf_file = int(file_list[file][5:])
#bb.note("Strip %s" % file)
runstrip(file, elf_file, d)
+
+
+ if (d.getVar('INHIBIT_PACKAGE_STRIP', True) != '1'):
+ for root, dirs, files in os.walk(dvar):
+ for f in files:
+ if not f.endswith(".ko"):
+ continue
+ runstrip(os.path.join(root, f), None, d)
#
# End of strip
#