Allowing suppression of onos*.zip generation form onos-package; mostly for speed in dev.

Change-Id: Id4f7484f0226abb8fadea881aed76ab23bcffc68
diff --git a/tools/build/onos-package b/tools/build/onos-package
index 51158fd..78f445c 100755
--- a/tools/build/onos-package
+++ b/tools/build/onos-package
@@ -82,6 +82,11 @@
 cd $ONOS_STAGE_ROOT
 rm -f $ONOS_TAR $ONOS_ZIP
 COPYFILE_DISABLE=1 tar zcf $ONOS_TAR $ONOS_BITS
-which zip >/dev/null && zip -rq $ONOS_ZIP $ONOS_BITS
-which zip >/dev/null && ls -lh $ONOS_TAR $ONOS_ZIP || ls -lh $ONOS_TAR
+
+# Figure out whether we should build ONOS zip file and if so, build it.
+which zip >/dev/null && [ -z "$ONOS_TAR_ONLY" ] && buildZip=true || unset buildZip
+[ -n "$buildZip" ] && zip -rq $ONOS_ZIP $ONOS_BITS
+
+# Report on the archives that were built and clean-up
+[ -n "$buildZip" ] && ls -lh $ONOS_TAR $ONOS_ZIP || ls -lh $ONOS_TAR
 rm -r $ONOS_STAGE