toolchian_utils: add --accept_licenses=@CHROMEOS flag.
This adds --accept_licenses=@CHROMEOS to setup_board and
build_packages. With this patch, we can build daisy from
role account.
BUG=None
TEST=role account can build daisy now.
Change-Id: Ib08bf44d3355f667154f78f07e67d2aeb6d97a31
Reviewed-on: https://gerrit-int.chromium.org/43330
Reviewed-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@google.com>
Tested-by: Yunlian Jiang <yunlian@google.com>
diff --git a/utils/misc.py b/utils/misc.py
index 51af1d8..f9ecb8e 100644
--- a/utils/misc.py
+++ b/utils/misc.py
@@ -1,6 +1,8 @@
#!/usr/bin/python
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
+
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
"""Utilities for toolchain build."""
@@ -155,7 +157,8 @@
else:
withdebug_flag = '--nowithdebug'
return ("./build_packages %s --withdev --withtest --withautotest "
- "--skip_toolchain_update %s --board=%s" %
+ "--skip_toolchain_update %s --board=%s "
+ "--accept_licenses=@CHROMEOS" %
(usepkg_flag, withdebug_flag, board))
@@ -184,6 +187,8 @@
if force:
options.append("--force")
+ options.append("--accept_licenses=@CHROMEOS")
+
return "./setup_board --board=%s %s" % (board, " ".join(options))