From: Joshua Watt Date: Wed, 11 Apr 2018 02:21:57 +0000 (-0500) Subject: icecc-create-env: Add extra tools option X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~18165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fc1e3d59afd292ff8f7c4e1f64324134b73b8f4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Joshua Watt Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env index b88c53a424b..64b5e207853 100755 --- a/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env +++ b/meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env @@ -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"