[oe-commits] Richard Purdie : utils.bbclass: Tweak create_wrapper
git at git.openembedded.org
git at git.openembedded.org
Mon Jun 17 15:02:57 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: cd77741ad8e1267e94f4a35fdf042e7f059c625a
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=cd77741ad8e1267e94f4a35fdf042e7f059c625a
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Mon Jun 17 15:57:03 2013 +0100
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 at linuxfoundation.org>
---
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 cf8893f..e873c53 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
}
More information about the Openembedded-commits
mailing list