| commit | a2cc9ccee2c8cb31790dd41efa972a2ce41a56a6 | [log] [tgz] |
|---|---|---|
| author | Jordan R Abrahams-Whitehead <ajordanr@google.com> | Tue May 14 23:03:56 2024 +0000 |
| committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 28 18:13:53 2024 +0000 |
| tree | ad26dbb3b9a0cbfbaa95f2f023ad1aa31c0bfd10 | |
| parent | 214ff237cd89c36ce50645466c5ddc9e2dda72a3 [diff] |
llvm_tools: setup_for_workon to look in toolchains-overlay
At present, setup_for_workon.py's --package flag assumes that
the only location where we have toolchain-packages is
chromiumos-overlay. However, we actually have a number of packages,
cross-compilation packages, in toolchains-overlay. For example:
* cross-aarch64-cros-linux-gnu/compiler-rt
When we try emerging these packages without setup_for_workon.py on
that specific cross-* package, we get a missing patch stamp error.
You can use the --ebuild-dir directly to get around this, but this
is somewhat counter-intuitive.
The simplest fix for the issue is to have setup_for_workon.py's
--package flag understand that toolchains-overlay exists.
BUG=b:339911494
TEST=py/bin/llvm_tools/setup_for_workon.py \
--checkout m/main \
--clean-llvm \
--package cross-aarch64-cros-linux-gnu/compiler-rt \
&& cros workon --host start \
cross-aarch64-cros-linux-gnu/compiler-rt
&& sudo emerge cross-aarch64-cros-linux-gnu/compiler-rt
Change-Id: I51e4258af8d17b6ca563f0f5c74a8d0fe75ce717
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/5538229
Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com>
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Jordan Abrahams-Whitehead <ajordanr@google.com>
toolchain-utilsVarious 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.