summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
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]