aboutsummaryrefslogtreecommitdiff
path: root/build_chromeos.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2013-08-19 13:59:34 -0700
committerChromeBot <chrome-bot@google.com>2013-08-26 16:03:00 -0700
commitd145a5873cb01ceab07ea4b3fa325d7560f8ad6a (patch)
tree3ef0c9940c0f0d76d4c21ad0ed9ce53d8f284072 /build_chromeos.py
parentb47bff4d3336c5fe5593a95963c0f3dc20a02f68 (diff)
downloadtoolchain-utils-d145a5873cb01ceab07ea4b3fa325d7560f8ad6a.tar.gz
add vanilla_image option to build_chromeos.py
This adds vanilla_iamge option to build_chromeos.py. With this option, it runs build_packages with --usepkg. In the test_toolchains.py, it uses this option when building vanilla image. BUG=None TEST=None Change-Id: I54f85e60ccae833ab6682476e19365a51df5ef29 Reviewed-on: https://gerrit-int.chromium.org/43088 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'build_chromeos.py')
-rwxr-xr-xbuild_chromeos.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/build_chromeos.py b/build_chromeos.py
index 483e44a8..637e3a27 100755
--- a/build_chromeos.py
+++ b/build_chromeos.py
@@ -74,6 +74,11 @@ def Main(argv):
default=False,
action="store_true",
help="Use default ChromeOS toolchain.")
+ parser.add_option("--vanilla_image", dest="vanilla_image",
+ default=False,
+ action="store_true",
+ help=("Use prebuild packages for building the image. "
+ "It also implies the --vanilla option is set."))
options = parser.parse_args(argv[1:])[0]
@@ -105,16 +110,16 @@ def Main(argv):
options.chromeos_root = os.path.expanduser(options.chromeos_root)
build_packages_command = misc.GetBuildPackagesCommand(
- board=options.board, usepkg=False, debug=options.debug)
+ board=options.board, usepkg=options.vanilla_image, debug=options.debug)
if options.package:
build_packages_command += " {0}".format(options.package)
build_image_command = misc.GetBuildImageCommand(options.board, options.dev)
- if options.vanilla == True:
+ if options.vanilla or options.vanilla_image:
command = misc.GetSetupBoardCommand(options.board,
- usepkg=False,
+ usepkg=options.vanilla_image,
force=options.clobber_board)
command += "; " + build_packages_env + " " + build_packages_command
command += "&& " + build_packages_env + " " + build_image_command