commit | 16fd4b1c06b2155f250fe3f9474a6c1a27de3385 | [log] [tgz] |
---|---|---|
author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Mon Nov 13 09:34:15 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 13 09:34:15 2023 +0000 |
tree | 612c3ddfd606095ff3149ba680484b93708a7d2a | |
parent | c4e666fd07fecb62bcfc15ce1105f8fa32085b36 [diff] |
[third_party/pigweed] Roll 9 commits 5eccd87a773568f roll: host_tools 0280acaad36a254 roll: 310, 311, 38, 39 5a48b57f5270aa0 pw_stream: Fix use of shutdown on Windows 29b0e93f0baefa2 bazel: Set --incompatible_default_to_explicit_init e596056be5c19aa pw_perf_test: Reogranize source files 998bcf980e9d1e2 SEED-0113: Add modular Bazel C/C++ toolchain API 50d8c114135f26b pw_rpc_transport: Close sockets when stopping ff3867abc82227b pw_env_setup: Update Bazel to 7.0.0 pre-release 8b0de7e74e763ba pw_transfer: Use project-absolute imports for test https://pigweed.googlesource.com/pigweed/pigweed third_party/pigweed Rolled-Commits: 563393f56a8c41b..5eccd87a773568f Roller-URL: https://ci.chromium.org/b/8764553191998727121 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I085c2256655db2ef1ffac97ad4e66dc4204b9399 Reviewed-on: https://pigweed-review.googlesource.com/c/gonk/+/180751 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