commit | cd1921ac732d548db2d955aaf0a9eecb208347c6 | [log] [tgz] |
---|---|---|
author | pigweed-roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> | Wed Dec 06 09:34:28 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 06 09:34:28 2023 +0000 |
tree | bd83d329ae9fc51c0508d43e71824644d32c3b76 | |
parent | aec69256591ddcbff7af342412e8d4a8ec9f014d [diff] |
[third_party/pigweed] Roll 4 commits 65e429cf96e79e1 pw_build: Fix use of TARGET_COMPATIBLE_WITH_HOST_S 4f809be10d9f000 pw_web: Switch to pre-made subset of icon fonts f25590ccd6f2053 pw_tokenizer: Mark `pw_tokenizer_core` as `no_std` 692407c186591b0 pw_bluetooth_sapphire: Update name of ISO host sup https://pigweed.googlesource.com/pigweed/pigweed third_party/pigweed Rolled-Commits: a096b2129236808..65e429cf96e79e1 Roller-URL: https://ci.chromium.org/b/8762469461912041681 GitWatcher: ignore CQ-Do-Not-Cancel-Tryjobs: true Change-Id: Ic64d80cb5eec3dddaab3d3890ad199ee11014509 Reviewed-on: https://pigweed-review.googlesource.com/c/gonk/+/184131 Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com> Commit-Queue: 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