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

dc0007365302ab3 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
d801502194a4d4f [roll] Roll fuchsia-infra-bazel-rules-shac-cipd pa
ac1696a4fce2a4a [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
e3c2c55ed03af92 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
bec80ad4f2be3ab [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
50738c55485e4d9 [roll] Roll fuchsia-infra-bazel-rules-orchestrate-
4a7a2bb76d62e5d [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
9afb3b2beac6955 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
7a16c3e2620caed [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
d9f54a692698a28 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
727d8879ecbfa3b [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
87539749d037b56 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
39db04a0c904ede [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
266ad0c66bf531b [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
a4c377c0b310cb3 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci
30cd98706eb1471 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci
0cae81e4ebc4e21 [roll] Roll fuchsia-infra-bazel-rules-luci-auth-ci
cad00f9d9a8f613 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
92f0b5473b2969c [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
66dd3102fe09222 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
dc5c268f2b76c86 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
5506321e4d955a0 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
c759c3b8db8608b [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
6f9c87a95fa5b32 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
d8b315d8584d63d [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
8601764f1bb7a4d [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
fd87e11ec694f16 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
e073177db1bbd7a [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci
26768cd00a2bc54 [roll] Roll fuchsia-infra-bazel-rules-bazel-sdk-ci

https://fuchsia.googlesource.com/a/fuchsia-infra-bazel-rules
fuchsia_infra Rolled-Commits: edb37415fa6a9bc..dc0007365302ab3
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/213291
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: ff21b928c01c169..386a40b1ab0043a
Roller-URL: https://ci.chromium.org/b/8746283093686649185
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I9cc0337bf1f07a40ae2a8669dda77939ce732a74
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/213331
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: 301a224f843c6aa333bf07311e723bb29757947d
  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!