[oe-commits] Koen Kooi : package bbclass: strip static libs as well
git version control
git at git.openembedded.org
Thu Oct 1 09:08:24 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 98a7d32826bc362c4ee434e7a4def7c852e75281
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=98a7d32826bc362c4ee434e7a4def7c852e75281
Author: Koen Kooi <k-kooi at ti.com>
Date: Wed Sep 30 16:52:03 2009 +0200
package bbclass: strip static libs as well
---
classes/package.bbclass | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 5a9fa50..c232e3f 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -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)
More information about the Openembedded-commits
mailing list