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 20:48:29 +0100 |
commit | ccfd344782b170985e7f9dc277cddebddee001d2 (patch) | |
tree | 96bc71e6deb016ada16ebd58a78d1a75510dbee9 /meta | |
parent | 1ef9f107f025471541adfefa47ca76e44b2e928e (diff) | |
download | ast2050-yocto-poky-ccfd344782b170985e7f9dc277cddebddee001d2.zip ast2050-yocto-poky-ccfd344782b170985e7f9dc277cddebddee001d2.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: 9215d23fd26c62d250749b8084a52f383cb16fba)
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 6bcaf86..1965d2f 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -312,7 +312,8 @@ create_wrapper () { cmdname=`basename $cmd`.real cat <<END >$cmd #!/bin/sh -exec env $@ \`dirname \$0\`/$cmdname "\$@" +realpath=\`readlink -fn \$0\` +exec env $@ \`dirname \$realpath\`/$cmdname "\$@" END chmod +x $cmd } |