summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2011-11-20 22:32:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-21 15:49:50 +0000
commit27cf695f1cf259f8c79214e95a0c4bc2c0779b81 (patch)
treedc9581d144226cd31332ca4e037ff087198b77ec /meta
parent9f743b5033177216fe0e1d3e43ba831f356df08e (diff)
downloadopenembedded-core-27cf695f1cf259f8c79214e95a0c4bc2c0779b81.tar.gz
openembedded-core-27cf695f1cf259f8c79214e95a0c4bc2c0779b81.tar.bz2
openembedded-core-27cf695f1cf259f8c79214e95a0c4bc2c0779b81.zip
package.bbclass: fix path for relative links on elf files, when moved to debugdir
* relative links for elf files like ../foo.so ends up in the debugdir with ../.debug/foo.so, this causes infinite fileaccessloops fix it by adding an extra "../" to the link path Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 6775fda480..c351f26db0 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -778,6 +778,8 @@ python split_and_strip_files () {
if lpath and lpath != ".":
ftarget += lpath + debugdir + "/"
ftarget += lbase + debugappend
+ if lpath.startswith(".."):
+ ftarget = os.path.join("..", ftarget)
bb.mkdirhier(os.path.dirname(fpath))
#bb.note("Symlink %s -> %s" % (fpath, ftarget))
os.symlink(ftarget, fpath)