summaryrefslogtreecommitdiffstats
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)
downloadpoky-d3630f81747157198316fef874d59f9f120969d4.tar.gz
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 8611d94774..d8e480f1ff 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -155,6 +155,10 @@ def runstrip(file, d):
155 strip = bb.data.getVar("STRIP", d, True) 155 strip = bb.data.getVar("STRIP", d, True)
156 objcopy = bb.data.getVar("OBJCOPY", d, True) 156 objcopy = bb.data.getVar("OBJCOPY", d, True)
157 157
158 # Handle kernel modules specifically - .debug directories here are pointless
159 if file.find("/lib/modules/") != -1 and file.endswith(".ko"):
160 return os.system("%s'%s' -g --remove-section=.comment --remove-section=.note '%s'" % (pathprefix, strip, file))
161
158 newmode = None 162 newmode = None
159 if not os.access(file, os.W_OK): 163 if not os.access(file, os.W_OK):
160 origmode = os.stat(file)[stat.ST_MODE] 164 origmode = os.stat(file)[stat.ST_MODE]