Workaround tar: Argument list too long issue

Can be faced if packaged files number exceeds some limit.
Trick with tr workarounds another MacOS specific problem when $@ is
considered as single argument.

Change-Id: Ic06ada6c3b17a0fe1fd40f1e8c819d9ef8cddfef
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
diff --git a/build/tools/ndk-common.sh b/build/tools/ndk-common.sh
index 05115ac..2619f0d 100644
--- a/build/tools/ndk-common.sh
+++ b/build/tools/ndk-common.sh
@@ -869,7 +869,7 @@
     log "Copying file: $@"
     log "  from $SRCDIR"
     log "  to $DSTDIR"
-    mkdir -p "$DSTDIR" && (cd "$SRCDIR" && tar cf - "$@") | (tar xf - -C "$DSTDIR")
+    mkdir -p "$DSTDIR" && (cd "$SRCDIR" && (echo $@ | tr ' ' '\n' | tar cf - -T -)) | (tar xf - -C "$DSTDIR")
     fail_panic "Cannot copy files to directory: $DSTDIR"
 }