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:33:55 +0100 |
commit | a10bd976f4cef54ac50b0c82f885c17a26e5989f (patch) | |
tree | 4e85c1bf47216f7481175ea2805baaf47fe4e473 /meta | |
parent | 0004344116f816167d368d012d1d8aeaee1cb010 (diff) | |
download | openembedded-core-a10bd976f4cef54ac50b0c82f885c17a26e5989f.tar.gz openembedded-core-a10bd976f4cef54ac50b0c82f885c17a26e5989f.tar.bz2 openembedded-core-a10bd976f4cef54ac50b0c82f885c17a26e5989f.zip |
utils.bbclass: modify create_wrapper to correctly follow symlinks
This ensures you look up the symbolic link to get the full path
Signed-off-by: Saul Wold <sgw@linux.intel.com>
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 () { 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 } |