summaryrefslogtreecommitdiff
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-10 14:47:41 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-10 14:47:41 +0100
commitd3630f81747157198316fef874d59f9f120969d4 (patch)
treefa4428e0ff8a726e670775a6cc242b02310b2f32 /meta/classes/package.bbclass
parent708db1ef52a49098a0ab7972211b9beac74d7654 (diff)
downloadopenembedded-core-d3630f81747157198316fef874d59f9f120969d4.tar.gz
openembedded-core-d3630f81747157198316fef874d59f9f120969d4.tar.bz2
openembedded-core-d3630f81747157198316fef874d59f9f120969d4.tar.xz
openembedded-core-d3630f81747157198316fef874d59f9f120969d4.zip
kernel/package.bbclass: Handle kernel module stripping centrally
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 8611d9477..d8e480f1f 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -155,6 +155,10 @@ def runstrip(file, d):
strip = bb.data.getVar("STRIP", d, True)
objcopy = bb.data.getVar("OBJCOPY", d, True)
+ # Handle kernel modules specifically - .debug directories here are pointless
+ if file.find("/lib/modules/") != -1 and file.endswith(".ko"):
+ return os.system("%s'%s' -g --remove-section=.comment --remove-section=.note '%s'" % (pathprefix, strip, file))
+
newmode = None
if not os.access(file, os.W_OK):
origmode = os.stat(file)[stat.ST_MODE]