[roll third_party/pigweed] [fuchsia_infra] Roll 15 commits

8f25f36af3fa207 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
89f0abc7851319e [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
38a9124b034d926 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
4f7140801cf7dc0 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
03c6ce88dcd8a74 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
365fe6a9da16adc [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
14b81258c254bee [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
d90e46a47dc5fcc [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci
a4a2e961ef66ec5 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
87b6bfb2b24d5e3 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
9cefd38cb95a04f [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
823d7aae89f3544 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
3c79262d54e3c17 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci
b6b4e13f949f118 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
2bcc1af58003781 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci

https://fuchsia.googlesource.com/a/fuchsia-infra-bazel-rules
fuchsia_infra Rolled-Commits: bb7e1a43cedcf99..8f25f36af3fa207
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/209656
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>

https://pigweed.googlesource.com/pigweed/pigweed
third_party/pigweed Rolled-Commits: 253204ef5bcda85..f8ccffa43290479
Roller-URL: https://ci.chromium.org/b/8748186624478549857
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I4353e6d88edb69c3b4e56e890fab7781b54c39b3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/209658
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
1 file changed
tree: 0175c3fe30846086b8567e73e6bb6b1f8c2a7a2c
  1. .github/
  2. src/
  3. targets/
  4. third_party/
  5. tools/
  6. .bazelrc
  7. .bazelversion
  8. .gitignore
  9. .gitmodules
  10. BUILD.bazel
  11. echo.bzl
  12. LICENSE
  13. README.md
  14. requirements.in
  15. requirements_lock.txt
  16. WORKSPACE
README.md

Pigweed: minimal Bazel example

This repository contains a minimal example of a Bazel-based Pigweed project. It's an echo application for the STM32F429 Discovery Board.

Cloning

git clone --recursive https://pigweed.googlesource.com/pigweed/quickstart/bazel

If you already cloned but forgot to include --recursive, run git submodule update --init to pull all submodules.

TODO: b/300695111 - Don't require submodules for this example.

Building

We‘ll assume you already have Bazel on your system. If you don’t, the recommended way to get it is through Bazelisk.

To build the entire project (including building the application for both the host and the STM32 Discovery Board), run

bazel build //...

To run the application locally on your machine, run,

bazel run //src:echo

Flashing

To flash the firmware to a STM32F429 Discovery Board connected to your machine, run,

bazel run //tools:flash

Note that you don't need to build the firmware first: Bazel knows that the firmware images are needed to flash the board, and will build them for you. And if you edit the source of the firmware or any of its dependencies, it will get rebuilt when you flash.

Communicating

Run,

bazel run //tools:miniterm -- /dev/ttyACM0 --filter=debug

to communicate with the board. When you transmit a character, you should get the same character back!