diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 14:47:41 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 14:47:41 +0100 |
commit | d3630f81747157198316fef874d59f9f120969d4 (patch) | |
tree | fa4428e0ff8a726e670775a6cc242b02310b2f32 /meta/classes/package.bbclass | |
parent | 708db1ef52a49098a0ab7972211b9beac74d7654 (diff) | |
download | openembedded-core-d3630f81747157198316fef874d59f9f120969d4.tar.gz openembedded-core-d3630f81747157198316fef874d59f9f120969d4.tar.bz2 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.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 8611d94774..d8e480f1ff 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] |