package bbclass: strip static libs as well
authorKoen Kooi <k-kooi@ti.com>
Wed, 30 Sep 2009 14:52:03 +0000 (16:52 +0200)
committerKoen Kooi <koen@openembedded.org>
Thu, 1 Oct 2009 09:05:43 +0000 (11:05 +0200)
classes/package.bbclass

index 5a9fa50..c232e3f 100644 (file)
@@ -159,7 +159,7 @@ def runstrip(file, d):
     if ret:
         bb.error("runstrip: 'file %s' failed (forced strip)" % file)
 
-    if "not stripped" not in result:
+    if "not stripped" not in result and ".a" not in file:
         bb.debug(1, "runstrip: skip %s" % file)
         return 0
 
@@ -393,7 +393,7 @@ python populate_packages () {
                for root, dirs, files in os.walk(dvar):
                        for f in files:
                                file = os.path.join(root, f)
-                               if not os.path.islink(file) and not os.path.isdir(file) and isexec(file):
+                               if not os.path.islink(file) and not os.path.isdir(file) and (isexec(file) or ".a" in file):
                                        runstrip(file, d)
 
        pkgdest = bb.data.getVar('PKGDEST', d, 1)