diff options
author | cmtice <cmtice@google.com> | 2014-07-15 11:19:29 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-14 05:19:43 +0000 |
commit | 23130bd2ecffbf206338d00b4cd66933854a3857 (patch) | |
tree | 55af62e6b69bd44171cba122e31823e37b15c3af /test_toolchains.py | |
parent | d207b21f57a4dd63ad47da05e0ff4c57b50503e0 (diff) | |
download | toolchain-utils-23130bd2ecffbf206338d00b4cd66933854a3857.tar.gz |
Add AFDO to nightly builds.
This adds an option, '--use_afdo' to build_chromeos.py, along with
a list of boards for which it is valid. The flag will cause
build_chromeos.py to add 'USE=afdo_use' to calls to build_packages,
if the board is appropriate. This CL also updates test_toolchains.py
to pass --use_afdo to build_chromeos, if appropriate.
BUG=None
TEST=Tried it in my own directory and it worked.
Change-Id: I0a2056f86783dbd30a2fd650729c888fd1df1f67
Reviewed-on: https://chrome-internal-review.googlesource.com/169174
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'test_toolchains.py')
-rw-r--r-- | test_toolchains.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_toolchains.py b/test_toolchains.py index aae035a1..578312e2 100644 --- a/test_toolchains.py +++ b/test_toolchains.py @@ -13,6 +13,7 @@ from utils import logger WEEKLY_REPORTS_ROOT="/usr/local/google/crostc/weekly_test_data" +AFDO_BOARDS = ["butterfly", "lumpy", "stumpy", "stout", "parrot", "parrot_ivb"] class GCCConfig(object): def __init__(self, githash): @@ -76,6 +77,9 @@ class ChromeOSCheckout(object): if self._public: build_chromeos_args.append("--env=USE=-chrome_internal") + if self._board in AFDO_BOARDS: + build_chromeos_args.append("--env=USE=afdo_use") + ret = build_chromeos.Main(build_chromeos_args) if ret: raise Exception("Couldn't build ChromeOS!") |