package.bbclass: Don't strip files in .debug directories

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3346 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2007-12-19 10:32:12 +00:00
parent 34927dfa61
commit 6480e3a2f6
1 changed files with 6 additions and 0 deletions

View 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)