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 | |
parent | 30358f0658690e61a8d71f31c1e31a298bedbd45 (diff) | |
download | ast2050-yocto-poky-bc386f67b37f68d06f9ba7007013b23498942e6b.zip ast2050-yocto-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>
-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 1965d2f..e103351 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -289,7 +289,8 @@ create_cmdline_wrapper () { cmdname=`basename $cmd`.real cat <<END >$cmd #!/bin/sh -exec \`dirname \$0\`/$cmdname "\$@" +realpath=\`readlink -fn \$0\` +exec \`dirname \$realpath\`/$cmdname "\$@" END chmod +x $cmd } |