* [PATCH] package.bbclass: Ensure kernel modules get stripped
@ 2012-04-19 12:17 Richard Purdie
2012-04-19 12:29 ` Eric Bénard
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2012-04-19 12:17 UTC (permalink / raw)
To: openembedded-core
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 <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index c3f077a..44e551f 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
#
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] package.bbclass: Ensure kernel modules get stripped
2012-04-19 12:17 [PATCH] package.bbclass: Ensure kernel modules get stripped Richard Purdie
@ 2012-04-19 12:29 ` Eric Bénard
0 siblings, 0 replies; 2+ messages in thread
From: Eric Bénard @ 2012-04-19 12:29 UTC (permalink / raw)
To: openembedded-core
Le Thu, 19 Apr 2012 13:17:57 +0100,
Richard Purdie <richard.purdie@linuxfoundation.org> a écrit :
> 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 <richard.purdie@linuxfoundation.org>
cool, that explains why I had a 190 MB modules.tar.bz2 when building a
test image for a Pandaboard last weekend ;-)
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-19 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-19 12:17 [PATCH] package.bbclass: Ensure kernel modules get stripped Richard Purdie
2012-04-19 12:29 ` Eric Bénard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox