[oe-commits] [openembedded-core] 14/23: icecc-create-env: Add extra tools option

git at git.openembedded.org git at git.openembedded.org
Fri Apr 13 15:59:17 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 1fc1e3d59afd292ff8f7c4e1f64324134b73b8f4
Author: Joshua Watt <jpewhacker at gmail.com>
AuthorDate: Tue Apr 10 21:21:57 2018 -0500

    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 <JPEWhacker at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 .../icecc-create-env/icecc-create-env/icecc-create-env       | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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 b88c53a..64b5e20 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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list