Commit Graph

4 Commits

Author SHA1 Message Date
Wyatt Hepler
27f69f0624 pw_build: Restructure as Python package
Change-Id: I2c0d2412f4ae6cd350591ad563931f9493bde6bd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/14720
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
2020-07-27 21:10:44 +00:00
Alexei Frolov
4c0428a0d8 Define Linux clang target as toolchain
This change configures the Linux clang -Og target as a toolchain with
args. To support this, all Pigweed variables from pw_vars_default are
made into build args, defined within their respective modules.

The Linux clang target/toolchain is the only one that currently works.
Pigweed's other targets will be ported in later changes.

Change-Id: I051e29fde7577e41a3184c37031a4e04936404e1
2020-06-16 09:50:59 -07:00
Alexei Frolov
fb27737cd6 Print an error if a host tool is running on copy
If a host tool is running when the pw_host_tool tries to copy a newer
version into the host_tools/ directory, the copy fails. This change
prints out a user-friendly error indicating the problem.

Change-Id: I7b25f709150f40e1ad9c8c7e63cbfa9f9f9a53e5
2020-01-02 20:49:48 +00:00
Alexei Frolov
ca9cf604dc Add pw_host_tool GN template
This change cerates a GN template called pw_host_tool which copies a
binary target to a common host_tools directory that can be added to a
user's PATH.

Change-Id: I9eb38ab4ff9d11a4a87e6be2547d5224370e3412
2019-12-26 21:58:46 +00:00