commit | 2c710943e64693c9aa3b4b8a58176c506915ae9b | [log] [tgz] |
---|---|---|
author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Thu Nov 16 19:24:04 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 16 19:24:04 2023 +0000 |
tree | 85c442f446dd7ed8ae9bfe49060dc99cf29443be | |
parent | 5f8887ec1de6ba18b18ef0a83d4627c493adca0b [diff] |
[third_party/pigweed] Roll 5 commits cd0d5b86bcd9be5 pw_bluetooth: Add LEAdvertisingReportSubevent ccc80a68098b49e docs: Add Google Developer Documentation Style b0e8a127d220c10 docs: Update OS support matrix f6a4f66c46a6558 SEED-0117: Claim SEED number c9e87ff66e8bad4 pw_format: Fix compilation warnings https://pigweed.googlesource.com/pigweed/pigweed third_party/pigweed Rolled-Commits: 4220d40b339b05b..cd0d5b86bcd9be5 Roller-URL: https://ci.chromium.org/b/8764244458229195553 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: Ic56d23df1a95684253ec91e577ce1d554b906fa5 Reviewed-on: https://pigweed-review.googlesource.com/c/gonk/+/181265 Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Clone the repo
git clone https://pigweed.googlesource.com/pigweed/gonk
Source bootstrap.sh
to download all compilers and tooling into the environment
directory:
. ./bootstrap.sh
This should init all git submodules for you.
From here on the Pigweed environment is activated. You can activate the environment in a new shell without re-running bootstrap by sourcing activate.sh
. ./activate.sh
Build for the host and device by running:
pw build
This is mostly a shortcut with nice output for running gn gen out/gn
and ninja -C out/gn
.
The build commands are defined in: //tools/gonk_tools/build_project.py
.
Run the host app and connect to it via pw-system-console
:
./out/gn/host_device_simulator.speed_optimized/obj/applications/system_example/bin/system_example & \ pw-system-console --socket-addr default \ --proto-globs third_party/pigweed/pw_rpc/echo.proto ; \ killall system_example
Flashing
openocd -s $PW_PIGWEED_CIPD_INSTALL_DIR/share/openocd/scripts \ -f $GONK_ROOT/targets/stm32f769i_disc0_stm32cube/openocd_stm32f7xx.cfg \ -c "program out/gn/stm32f769i_disc0_stm32cube.size_optimized/obj/applications/system_example/bin/system_example.elf reset exit"
Checkout the desired commits in each of these submodules:
third_party/stm32cube_f7/cmsis_core third_party/stm32cube_f7/cmsis_device third_party/stm32cube_f7/hal_driver
Then run from Gonk root:
python -m pw_stm32cube_build gen_file_list third_party/stm32cube_f7