diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-20 21:10:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-23 16:20:11 +0100 |
commit | f2985f0588ea1b8aa54e902e7c6433d37ab2a964 (patch) | |
tree | e6b26cde924fa03616262854da01b26117c63ba5 /meta/recipes-devtools/gcc | |
parent | ea220e4dc6efff127a9aa9bec2530856cb4856b8 (diff) | |
download | poky-f2985f0588ea1b8aa54e902e7c6433d37ab2a964.tar.gz |
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.
(From OE-Core rev: ecfa1141e731224cc5a099f8dfd22878f23359ec)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-package-sdk.inc | 5 |
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 = "\ | |||
28 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ | 28 | ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \ |
29 | " | 29 | " |
30 | 30 | ||
31 | # Compute how to get from libexecdir to bindir in python (easier than shell) | ||
32 | BINRELPATH = "${@oe.path.relative(d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"), d.expand("${bindir}"))}" | ||
33 | |||
31 | do_install () { | 34 | do_install () { |
32 | oe_runmake 'DESTDIR=${D}' install-host | 35 | oe_runmake 'DESTDIR=${D}' install-host |
33 | 36 | ||
@@ -64,7 +67,7 @@ do_install () { | |||
64 | continue | 67 | continue |
65 | fi | 68 | fi |
66 | 69 | ||
67 | ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t | 70 | ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t |
68 | done | 71 | done |
69 | 72 | ||
70 | chown -R root:root ${D} | 73 | chown -R root:root ${D} |