diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-05-17 21:43:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-19 23:40:36 +0100 |
commit | bc386f67b37f68d06f9ba7007013b23498942e6b (patch) | |
tree | 8f3dd2e528a856cf4f6f9bce344ac6593ee7e476 /meta | |
parent | 30358f0658690e61a8d71f31c1e31a298bedbd45 (diff) | |
download | poky-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.bbclass | 3 |
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 |
292 | exec \`dirname \$0\`/$cmdname "\$@" | 292 | realpath=\`readlink -fn \$0\` |
293 | exec \`dirname \$realpath\`/$cmdname "\$@" | ||
293 | END | 294 | END |
294 | chmod +x $cmd | 295 | chmod +x $cmd |
295 | } | 296 | } |