icecc-create-env: Add extra tools option

It can often be useful to include additional debugging tools the
toolchain such as strace. Add an option to include an arbitrary path.

(From OE-Core rev: 1fc1e3d59afd292ff8f7c4e1f64324134b73b8f4)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Watt
2018-04-10 21:21:57 -05:00
committed by Richard Purdie
parent f8ba27d135
commit 2400cbbfbc

View File

@@ -197,6 +197,9 @@ while test -n "$1"; do
--log)
do_log=1
;;
--extra=*)
extra_tools="$extra_tools ${1#--extra=}"
;;
*)
break
;;
@@ -284,6 +287,15 @@ else
exit 1
fi
for extra in $extra_tools; do
if test -x "$extra"; then
add_file "$extra"
else
print_output "'$extra' not found"
exit 1
fi
done
link_rel ()
{
local target="$1"