diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-17 15:57:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-17 17:02:46 +0100 |
commit | 4569d7403638e4c1f637e3a6adb8dea620dc8543 (patch) | |
tree | c77fc572ec05fcd1adf325e7b382efa8614807af | |
parent | b1da10579a28f9a5260a0678f6f15ce4b5a2706c (diff) | |
download | openembedded-core-4569d7403638e4c1f637e3a6adb8dea620dc8543.tar.gz openembedded-core-4569d7403638e4c1f637e3a6adb8dea620dc8543.tar.bz2 openembedded-core-4569d7403638e4c1f637e3a6adb8dea620dc8543.zip |
utils.bbclass: Tweak create_wrapper
Currently the full path is specified to exec however this may incorporate a
build path which in the nativesdk case, is not transformed to a target system
path. This leads to failures due to incorrect paths.
This patch ensures the full build path is not encoded into the wrapper script.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/utils.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index cf8893f5b4..e873c539c5 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -282,12 +282,12 @@ create_wrapper () { echo "Generating wrapper script for $cmd" mv $cmd $cmd.real - cmdname=`basename $cmd`.real + cmdname=`basename $cmd` cat <<END >$cmd #!/bin/bash realpath=\`readlink -fn \$0\` export $@ -exec -a $cmd \`dirname \$realpath\`/$cmdname "\$@" +exec -a \`dirname \$realpath\`/$cmdname \`dirname \$realpath\`/$cmdname.real "\$@" END chmod +x $cmd } |