From patchwork Fri Apr 20 16:45:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [CONSOLIDATED, PULL, 29/43] package.bbclass: Ensure kernel modules get stripped Date: Fri, 20 Apr 2012 16:45:20 -0000 From: Saul Wold X-Patchwork-Id: 26215 Message-Id: <086fa62c043e3cd4b9bc8d2377507ed842a3097b.1334940120.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org From: Richard Purdie 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. Signed-off-by: Richard Purdie --- meta/classes/package.bbclass | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 99c945d..71bd3a6 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 #