From ef4a6452d4cdc3d4fa449c6e177ae66b83bc2330 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Thu, 27 Oct 2011 16:01:07 -0700 Subject: [PATCH] Add Shflags usage for build_image. BUG=chromium-os:22048 TEST=Ran build_image -h Change-Id: If495d1784b9ba4491ca55537bf0b81395e88ee3c Reviewed-on: https://gerrit.chromium.org/gerrit/10822 Reviewed-by: Richard Barnette Commit-Ready: Chris Sosa Tested-by: Chris Sosa --- build_image | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build_image b/build_image index cc3fae5688..2227c81359 100755 --- a/build_image +++ b/build_image @@ -73,6 +73,26 @@ DEFINE_string symlink "latest" \ DEFINE_boolean crosbug12352_arm_kernel_signing ${FLAGS_TRUE} \ "A dummy this flag for preventing buildbot fail" +FLAGS_HELP="USAGE: build_image [flags] [list of images to build]. +This script is used to build a Chromium OS image. Chromium OS comes in many +different forms. This scripts can be used to build the following: + +base - Pristine Chromium OS image. As similar to Chrome OS as possible. +dev - Developer image. Like base but with additional developer packages. +test - Like dev, but with additional test specific packages and can be easily + used for automated testing using scripts like run_remote_tests, etc. +factory_test - Like test but with extra packages and modifications used to + test images in a factory setting. Cannot be built along with a test image. +factory_install - Install shim for bootstrapping the factory test process. + Cannot be built along with any other image. + +Examples + +build_image --board= dev test - builds developer and test images. +build_image --board= factory_install - builds a factory install shim. +... +" + # Parse command line. FLAGS "$@" || exit 1 eval set -- "${FLAGS_ARGV}"