commit | 13225146e97f6c8c825f104894741f02bd26a84d | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Tue Nov 26 14:14:49 2019 -0800 |
committer | Wyatt Hepler <hepler@google.com> | Wed Nov 27 22:34:02 2019 +0000 |
tree | 92259304f27905be3c2ff49b6d052af3c81aa8f3 | |
parent | 60394c25c34c3b21134386cac5959a41f6d28f32 [diff] |
pw_presubmit: clang-format wrapper; misc - Add format_cc.py, which simplifies using clang-format in presubmits by checking for changes and printing a colorized diff. - Add --continue option to presubmit_tools.py to continue running checks after a failure. - Add exclude option to filter_paths. Change-Id: If17cf84b3e33550054a10f36df6403dada9005b4
Pigweed is a collection of embedded-focused libraries, which we call “modules”. These modules are designed for small-footprint MMU-less microcontrollers like the ST Micro STM32L452 or the Nordic NRF82832. The modules are designed to facilitate easy integration into existing codebases.
Pigweed is in the early stages of development.
$ git clone sso://pigweed.googlesource.com/pigweed/pigweed ~/pigweed $ cd ~/pigweed $ env_setup/cipd/cipd.py auth-login # Once per machine. $ . env_setup/setup.sh
The environment setup script will pull down the versions of tools necessary to build Pigweed and add them to your environment. You can then build with either GN or Bazel. You can also confirm you're getting the right versions of tools—they should be installed under env_setup/
.
$ which gn ~/pigweed/env_setup/cipd/tools/gn $ gn gen out/host $ ninja -C out/host
$ which bazel ~/pigweed/env_setup/cipd/tools/bazel $ bazel test //...
And do the following to test on hardware. (The bazel build does not yet support building for hardware.)
$ gn gen --args='pw_target_config = "//targets/stm32f429i-disc1/target_config.gni"' out/disco $ ninja -C out/disco
If any of this doesn't work please file a bug.