build_image: Add a message for summary for brillo.

build_image produces a summary that is targeted at cros tools.
When using brillo image, build_image tells the user to use
cros flash which can be confusing. When brillo tools are used,
the summary now tells the user to use brillo flash instead of
cros flash.

The path to the image is now outside the chroot instead of
inside the chroot

BUG=brillo:1189
TEST=manual tests
CQ-DEPEND=CL:275702, CL:275726

Change-Id: I81428f718e23b76b3da2e07eb584f87e0400371c
Reviewed-on: https://chromium-review.googlesource.com/275748
Reviewed-by: Steve Fung <stevefung@chromium.org>
Commit-Queue: Ralph Nathan <ralphnathan@chromium.org>
Trybot-Ready: Ralph Nathan <ralphnathan@chromium.org>
Tested-by: Ralph Nathan <ralphnathan@chromium.org>
diff --git a/build_image b/build_image
index db8e2ec..6834b39 100755
--- a/build_image
+++ b/build_image
@@ -82,6 +82,8 @@
   "Overwrite existing output, if any."
 DEFINE_string symlink "latest" \
   "Symlink name to use for this image."
+DEFINE_string toolset "cros" \
+  "Toolset that this script is being used with."
 DEFINE_string version "" \
   "Overrides version number in name to this version."
 
@@ -262,10 +264,14 @@
 
   info "${name} image created as ${img}"
   info "To copy the image to a USB key, use:"
-  info "  cros flash usb:// ${dir_path}/${img}"
-  if [[ $# -ge 3 ]]; then
-    info "To convert it to a VM image, use:"
-    info "  ./image_to_vm.sh --from=${dir_path} --board=${BOARD} $3"
+  if [[ "${FLAGS_toolset}" == "brillo" ]]; then
+    info "  brillo flash usb:// ${OUTPUT_DIR_NAME}/${img}"
+  else
+    info "  cros flash usb:// ${dir_path}/${img}"
+    if [[ $# -ge 3 ]]; then
+      info "To convert it to a VM image, use:"
+      info "  ./image_to_vm.sh --from=${dir_path} --board=${BOARD} $3"
+    fi
   fi
   echo