]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-package-sdk.inc: Use relative symlinks in libexec dir
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Aug 2013 21:10:55 +0000 (21:10 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Aug 2013 17:30:05 +0000 (18:30 +0100)
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>
meta/recipes-devtools/gcc/gcc-package-sdk.inc

index bb6dfde90601f40d53fa2bd4136cb2c7e14c48a5..b546d5c8f834e517945d7922506df22b823c8e85 100644 (file)
@@ -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}