Use the new executable argument to bb.utils.which() to ensure that the symlinks
point to executable files and not for example directories with the right name
which happened to be on $PATH.
[ YOCTO #11256 ]
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
for tool in tools:
desttool = os.path.join(dest, tool)
if not os.path.exists(desttool):
- srctool = bb.utils.which(path, tool)
+ srctool = bb.utils.which(path, tool, executable=True)
if "ccache" in srctool:
- srctool = bb.utils.which(path, tool, direction=1)
+ srctool = bb.utils.which(path, tool, executable=True, direction=1)
if srctool:
os.symlink(srctool, desttool)
else: