summaryrefslogtreecommitdiffstats
path: root/meta/classes
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 16:48:52 +0000
commitfc744a789d8b770d7867919a97efd9c89a0d9977 (patch)
tree737aa8f8ad3d18dd2dec8c6ba3dd1442a9ec7231 /meta/classes
parent85162b74637d3d932dcbe8b4ef0cee8f2e8e6c27 (diff)
downloadpoky-fc744a789d8b770d7867919a97efd9c89a0d9977.tar.gz
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 (From OE-Core rev: 27cf695f1cf259f8c79214e95a0c4bc2c0779b81) Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 () {
778 if lpath and lpath != ".": 778 if lpath and lpath != ".":
779 ftarget += lpath + debugdir + "/" 779 ftarget += lpath + debugdir + "/"
780 ftarget += lbase + debugappend 780 ftarget += lbase + debugappend
781 if lpath.startswith(".."):
782 ftarget = os.path.join("..", ftarget)
781 bb.mkdirhier(os.path.dirname(fpath)) 783 bb.mkdirhier(os.path.dirname(fpath))
782 #bb.note("Symlink %s -> %s" % (fpath, ftarget)) 784 #bb.note("Symlink %s -> %s" % (fpath, ftarget))
783 os.symlink(ftarget, fpath) 785 os.symlink(ftarget, fpath)