commit | 671cc1d5e9a9259cec9452144380f44b1f161032 | [log] [tgz] |
---|---|---|
author | Jordan R Abrahams-Whitehead <ajordanr@google.com> | Sat May 28 04:06:03 2022 +0000 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 14 23:48:56 2022 +0000 |
tree | f98c549413150ad5877a2cbc5970a012255f70a5 | |
parent | d9d151871f0500e8cdad2432e40698ca15fbf8b4 [diff] |
llvm_tools: Restructure most patch_manager modes This is an attempt to gradually replace some of the behavior of patch_manager.py with a more extendable structure. Instead of having the same code handle every patch_manager.py mode, instead we can have a dispatch for supported modes, and the fallback to legacy when we can't separate the existing behavior. This does not change the external API of patch_manager.py at all. All unittests still pass, and we're still applying patches correctly as expected. BUG=b:188465085, b:227216280 TEST=./patch_manager_unittest.py TEST=cp patch_manager.py patch_utils.py ${llvm_files}/patch_manager/ \ && sudo emerge llvm Change-Id: I43d26d4e903140ce2e490624aaac15d0bae898cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3661358 Tested-by: Jordan Abrahams-Whitehead <ajordanr@google.com> Reviewed-by: George Burgess <gbiv@chromium.org> Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com>
toolchain-utils
Various utilities used by the ChromeOS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.