summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-20 21:10:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-22 18:30:05 +0100
commitecfa1141e731224cc5a099f8dfd22878f23359ec (patch)
treee358c8f6fd56c9e11638f82819a7f284755d6044 /meta/recipes-devtools
parentcee90d230899eb1255d586e6ee4fad0d94348cfd (diff)
downloadopenembedded-core-ecfa1141e731224cc5a099f8dfd22878f23359ec.tar.gz
openembedded-core-ecfa1141e731224cc5a099f8dfd22878f23359ec.tar.bz2
openembedded-core-ecfa1141e731224cc5a099f8dfd22878f23359ec.zip
gcc-package-sdk.inc: Use relative symlinks in libexec dir
We already use relative links for other gcc libexec links, this changes the sdk do_install to match elsewhere and use relative symlinks too. This makes things slightly easier in the SDK installation process and standardises. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-sdk.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
index bb6dfde906..b546d5c8f8 100644
--- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
@@ -28,6 +28,9 @@ FILES_${PN}-doc = "\
${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
"
+# Compute how to get from libexecdir to bindir in python (easier than shell)
+BINRELPATH = "${@oe.path.relative(d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"), d.expand("${bindir}"))}"
+
do_install () {
oe_runmake 'DESTDIR=${D}' install-host
@@ -64,7 +67,7 @@ do_install () {
continue
fi
- ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t
+ ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
done
chown -R root:root ${D}