From a0dd61eb2b4f65076d19d24a741feb6feb7c81e3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Aug 2010 15:36:29 +0100 Subject: package.bbclass: Use --preserve-dates option when stripping kernel modules Signed-off-by: Richard Purdie --- meta/classes/package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index d8e480f1f..fa47cd0eb 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -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): -- cgit v1.2.3