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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user