aboutsummaryrefslogtreecommitdiff
path: root/build_chromeos.py
AgeCommit message (Collapse)Author
2020-02-12toolchain-utils: Partially port scripts to python 3Zhizhou Yang
This patch ports some still-in-use python scripts under root directory of toolchain-utils to python 3. BUG=chromium:1011676 TEST=Passed unittests and tested with manually launching. Change-Id: Id6066944780a7204fe4746cd271f41ac20f2274d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2049103 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>
2017-06-16Build with -cros-debug by default.Luis A. Lozano
We need to make sure that we are building without asserts. BUG=None TEST=local build succeeded. Change-Id: Ifdac90c6c3f8fb3fc027cb1d8e3cfbeec21ba398 Reviewed-on: https://chromium-review.googlesource.com/537996 Commit-Ready: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Ting-Yuan Huang <laszio@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-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-03-31Change default to build ChromeOS with AFDO.Luis Lozano
Change the default USE flags to use AFDO since that is how the released images are built. To build WITHOUT AFDO do: build_chromeos.py --env='USE=-afdo_use' --board .... BUG=None TEST=Tested building with and without AFDO. Verified right USE flags are generated. Change-Id: I6ae2313b76b08fc0e0a22aae90f4ca0396d523e4 Reviewed-on: https://chrome-internal-review.googlesource.com/210834 Reviewed-by: Caroline Tice <cmtice@google.com> Tested-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Luis Lozano <llozano@chromium.org>
2014-05-21Add --skip_chroot_upgrade flag to build_packages.cmtice
This CL adds the '--skip_chroot_upgrade' flag to all calls to build_packages that clobber CFLAGS, LDFLAGS, etc. This is to prevent the call to build_packages from deciding to try to rebuild the compiler itself (which is not the right place to do that). BUG=None TEST=Tested adding flag by hand to call to build_packages that used to fail; it passed with the flag. Change-Id: Ia0152f76f8a25cf0488a4a72c4add7e4b3182feb Reviewed-on: https://chrome-internal-review.googlesource.com/164050 Reviewed-by: Han Shen <shenhan@google.com> Commit-Queue: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com>
2013-08-26add vanilla_image option to build_chromeos.pyYunlian Jiang
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>
2013-03-15Cleaned up directory after copy of tools from perforce directoryLuis Lozano
Got rid of stale copies of some tools like "crosperf" and moved all files under v14 directory (that came from perforce) into the top directory. BUG=None TEST=None Change-Id: I408d17a36ceb00e74db71403d2351fd466a14f8e Reviewed-on: https://gerrit-int.chromium.org/33887 Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@google.com> Commit-Queue: Luis Lozano <llozano@chromium.org>