aboutsummaryrefslogtreecommitdiff
path: root/build_tool.py
AgeCommit message (Collapse)Author
2020-02-12toolchain-utils: move no longer used scripts to deprecatedZhizhou Yang
This patch moves all scripts that are not used any more to deprecated directory. We do not need to migrated those scripts to python 3. BUG=chromium:1011676, chromium:1051236 TEST=None Change-Id: I2caac6204c82dcd21b2a121875a2f9851eaca322 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2051285 Commit-Queue: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
2019-01-16build_tool: Fix amd64-host board buildingAlex Klein
The amd64-host board is now built using the build_sdk_board command rather than being included as a special case in setup_board. BUG=chromium:893748 TEST=precq Change-Id: Idbc7721c4dbd29c46256f0f91289e3e3e6c311bc Reviewed-on: https://chromium-review.googlesource.com/1412681 Commit-Ready: Alex Klein <saklein@chromium.org> Tested-by: Alex Klein <saklein@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org>
2017-04-08[toolchain-utils] Fix remaining lint errors in toolchain-utils.Caroline Tice
In addition to fixing the lint errors, this also fixes the Python formatting issues (ran tc_pyformat on nearly all the files). BUG=chromium:570450 TEST=Ran all crosperf & bisect tool unit tests. Ran afe_lock_machine.py (check machine status) Ran full crosperf test (octane, speedometer, BootPerf) on alex. Change-Id: Ic86f9192801ac67769f3de30f1c5f0d203ce0831 Reviewed-on: https://chromium-review.googlesource.com/471886 Commit-Ready: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
2016-04-27Update build_tool.py to work for aosp-toolchain repos.Han Shen
Fixed the build_tool.py so that it works for aosp binutils / gcc repos. TEST=tested manually with a local binutils source tree and a local binutils branch. BUG=None Change-Id: I4756abcf234651e18284be38e50d4b534aeff942 Reviewed-on: https://chrome-internal-review.googlesource.com/255905 Commit-Ready: Han Shen <shenhan@google.com> Tested-by: Han Shen <shenhan@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
2016-01-22Fix cros lint errors.Caroline Tice
Also move deprecated scripts to the 'deprecated' directory. BUG=chromiumos:570464 TEST=tested scripts to make sure they still work. Change-Id: I3442a86d898104591233a0849ea0bafb52ecf1f7 Reviewed-on: https://chrome-internal-review.googlesource.com/244221 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
2015-12-16Run pyformat on all the toolchain-utils files.Luis Lozano
This gets rid of a lot of lint issues. Ran by doing this: for f in *.py; do echo -n "$f " ; if [ -x $f ]; then pyformat -i --remove_trailing_comma --yapf --force_quote_type=double $f ; else pyformat -i --remove_shebang --remove_trailing_comma --yapf --force_quote_type=double $f ; fi ; done BUG=chromium:567921 TEST=Ran simple crosperf run. Change-Id: I59778835fdaa5f706d2e1765924389f9e97433d1 Reviewed-on: https://chrome-internal-review.googlesource.com/242031 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@google.com>
2015-12-15crosperf: RunCommand should return one type of object.Luis Lozano
Cleaned up the interfaces for the RunCommand routines. These were returning different types (int or tuple) depending on the value of the return_ouput parameter. Returning different unrelated types from a routine is bad practice. Linter complains about this with several warnings like this: "Attempting to unpack a non-sequence defined at line XY of utils.command_executer" BUG=chromium:566256 TEST=ran crosperf with a example experiment file Ran run_tests. Change-Id: Ibb83ab9322c87558077fc4937ef5c0686bbe5417 Reviewed-on: https://chrome-internal-review.googlesource.com/241459 Commit-Ready: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Han Shen <shenhan@google.com>
2014-06-24Adds a second build of host packages.Han Shen
Adds a second build of host packages and do some testing, which mimics the ways chromiumos-sdk cbuildbot does. So actually we perform 2 builds of all host packages - 1. build new toolchain using old toolchain and build all host packages using the newly built toolchain 2. build the new toolchain again but using new toolchain built in step 1, and build all host packages using the newly built toolchain TEST=locally BUG=None Change-Id: Ic35092893b10860ca1112a1abb3356a279d36869 Reviewed-on: https://chrome-internal-review.googlesource.com/163325 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Han Shen <shenhan@google.com> Tested-by: Han Shen <shenhan@google.com>
2014-05-08Correctly test failures while building boards.Han Shen
TEST=None BUG=None Change-Id: Iaae09d30214d6f8bb8b069d5fc4009a20cb0e6d8 Reviewed-on: https://chrome-internal-review.googlesource.com/162912 Reviewed-by: Yunlian Jiang <yunlian@google.com> Commit-Queue: Han Shen <shenhan@google.com> Tested-by: Han Shen <shenhan@google.com>
2014-05-03Add support to build mutiple boards for binutils/gcc.Han Shen
Now you can specify multiple boards in one command line like this ./build_tool.py --board='x86-alex,lumpy' TEST=None BUG=None Change-Id: Idac899bb225ce51eab922f5ab0b08b36ce7b0e20 Reviewed-on: https://chrome-internal-review.googlesource.com/161923 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Han Shen <shenhan@google.com> Tested-by: Han Shen <shenhan@google.com>
2014-04-17Rename bootstrap_compiler.py to build_tool.py.Han Shen
TEST=None BUG=None Change-Id: I33d914575c17f4c2b6535ecdbdc474759e9f8f56 Reviewed-on: https://chrome-internal-review.googlesource.com/160841 Reviewed-by: Yunlian Jiang <yunlian@google.com> Commit-Queue: Han Shen <shenhan@google.com> Tested-by: Han Shen <shenhan@google.com>