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>
This commit is contained in:
parent
1ef9f107f0
commit
ccfd344782
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue