From: Richard Purdie Date: Wed, 19 Dec 2007 11:19:31 +0000 (+0000) Subject: package.bbclass: Don't strip files in .debug directories meaning rerunning the packag... X-Git-Tag: Release-2010-05/1~8134^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fb453a9f4c045a6c74fccc81c1af8bf1e471ba7;p=openembedded.git package.bbclass: Don't strip files in .debug directories meaning rerunning the package task doesn't create chains of .debug directories (from poky) --- diff --git a/classes/package.bbclass b/classes/package.bbclass index 37b9d83d97..ec8c3d97e2 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -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)