summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
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 16:00:03 +0100
commit6123ee024b19962c12ac636ea1ae3511c30d8fc8 (patch)
treeae2ab7f88556ab2fb30484070882c975ad577444 /meta/classes/package.bbclass
parent6e5cb40dfaeae4843dd65115f0b8b0f20f58d30e (diff)
downloadpoky-6123ee024b19962c12ac636ea1ae3511c30d8fc8.tar.gz
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>
Diffstat (limited to 'meta/classes/package.bbclass')
-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 () {
870 elf_file = int(file_list[file][5:]) 870 elf_file = int(file_list[file][5:])
871 #bb.note("Strip %s" % file) 871 #bb.note("Strip %s" % file)
872 runstrip(file, elf_file, d) 872 runstrip(file, elf_file, d)
873
874
875 if (d.getVar('INHIBIT_PACKAGE_STRIP', True) != '1'):
876 for root, dirs, files in os.walk(dvar):
877 for f in files:
878 if not f.endswith(".ko"):
879 continue
880 runstrip(os.path.join(root, f), None, d)
873 # 881 #
874 # End of strip 882 # End of strip
875 # 883 #