diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2018-04-10 21:21:57 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-13 16:55:25 +0100 |
commit | 1fc1e3d59afd292ff8f7c4e1f64324134b73b8f4 (patch) | |
tree | 82e75d44bcb1f32b79ea64d81924152c0dd5a7e0 /meta/recipes-devtools | |
parent | 4f55e61e9e3dd921bd71a127580dc5fc71d7b339 (diff) | |
download | openembedded-core-contrib-1fc1e3d59afd292ff8f7c4e1f64324134b73b8f4.tar.gz |
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@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-x | meta/recipes-devtools/icecc-create-env/icecc-create-env/icecc-create-env | 12 |
1 files changed, 12 insertions, 0 deletions
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 b88c53a424..64b5e20785 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" |