1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 01:19:52 +00:00

kernel/package.bbclass: Handle kernel module stripping centrally

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-10 14:47:41 +01:00
parent 708db1ef52
commit d3630f8174
4 changed files with 6 additions and 26 deletions
+4
View File
@@ -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]