]> code.ossystems Code Review - openembedded-core.git/commitdiff
icecc-create-env: Add extra tools option
authorJoshua Watt <jpewhacker@gmail.com>
Wed, 11 Apr 2018 02:21:57 +0000 (21:21 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2018 15:55:25 +0000 (16:55 +0100)
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 <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env

index b88c53a424bffada49a3281393c32bbb21bf2ca9..64b5e207853f66280a9e41fd0cb946d0aa92d447 100755 (executable)
@@ -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"