Fix build

1. The pigweed_config no longer exists in ToT Pigweed.
2. The BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN setting is required on dev VMs
   with no local gcc.

Bug: b/299994234
Change-Id: I14c40622eb6d6034433e49da34d230dff6a620d7
Reviewed-on: https://pigweed-review.googlesource.com/c/example/echo/+/174556
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Ted Pudlik <tpudlik@google.com>
2 files changed
tree: 081ce185129cefb5871c93f694963a9f8c69882b
  1. src/
  2. targets/
  3. third_party/
  4. .bazelrc
  5. .gitignore
  6. .gitmodules
  7. README.md
  8. 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/example/echo

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

To build for the host, run

bazel build //...

To build for the STM32 Discovery Board:

bazel build --platforms=//target:stm32 //...

Flashing

TODO: b/299994234 - Add tools and instructions for flashing.

Running

TODO: b/299994234 - Add tools and instructions for talking to the device after flashing.