]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Don't strip files in .debug directories
authorRichard Purdie <richard@openedhand.com>
Wed, 19 Dec 2007 10:32:12 +0000 (10:32 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 19 Dec 2007 10:32:12 +0000 (10:32 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3346 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/package.bbclass

index 514adfad44b10b2e8f4ecce3ffa654a7c0a1bdb2..5b1a7cf28a80e1f7c7d70c2e29d2d24464fb5974 100644 (file)
@@ -149,6 +149,12 @@ def runstrip(file, d):
         bb.debug(1, "runstrip: skip %s" % file)
         return 0
 
+    # If the file is in a .debug directory it was already stripped,
+    # don't do it again...
+    if os.path.dirname(file).endswith(".debug"):
+        bb.note("Already run strip")
+        return 0
+
     strip = bb.data.getVar("STRIP", d, 1)
     objcopy = bb.data.getVar("OBJCOPY", d, 1)