package.bbclass: Use --preserve-dates option when stripping kernel modules

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-08-10 15:36:29 +01:00
parent c33529794a
commit a0dd61eb2b
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def runstrip(file, d):
# 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))
return os.system("%s'%s' --strip-debug --remove-section=.comment --remove-section=.note --preserve-dates '%s'" % (pathprefix, strip, file))
newmode = None
if not os.access(file, os.W_OK):