summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-05-17 21:43:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-19 23:40:36 +0100
commitbc386f67b37f68d06f9ba7007013b23498942e6b (patch)
tree8f3dd2e528a856cf4f6f9bce344ac6593ee7e476 /meta
parent30358f0658690e61a8d71f31c1e31a298bedbd45 (diff)
downloadpoky-bc386f67b37f68d06f9ba7007013b23498942e6b.tar.gz
utils.bbclass: modify create_wrapper to correctly follow symlinks
This ensures you look up the symbolic link to get the full path (From OE-Core rev: a10bd976f4cef54ac50b0c82f885c17a26e5989f) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/utils.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 1965d2f1b4..e103351e34 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -289,7 +289,8 @@ create_cmdline_wrapper () {
289 cmdname=`basename $cmd`.real 289 cmdname=`basename $cmd`.real
290 cat <<END >$cmd 290 cat <<END >$cmd
291#!/bin/sh 291#!/bin/sh
292exec \`dirname \$0\`/$cmdname "\$@" 292realpath=\`readlink -fn \$0\`
293exec \`dirname \$realpath\`/$cmdname "\$@"
293END 294END
294 chmod +x $cmd 295 chmod +x $cmd
295} 296}