]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Use --preserve-dates option when stripping kernel modules
authorRichard Purdie <rpurdie@linux.intel.com>
Tue, 10 Aug 2010 14:36:29 +0000 (15:36 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 10 Aug 2010 14:36:29 +0000 (15:36 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/package.bbclass

index d8e480f1ff31bcaf89733c10297166020b15221f..fa47cd0eb65d0bf4bdd609361e0cffce39dc2252 100644 (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):