Skip to content

Commit

Permalink
Chef - Fix broken esp32 RPC build caused by #18621 (#19876)
Browse files Browse the repository at this point in the history
* Chef - Fix broken esp32 RPC build caused by #18621

* Chef - Fix esp32 RPC build issue caused by pigweed update
  • Loading branch information
cpagravel authored and pull[bot] committed Jul 5, 2022
1 parent fe12f87 commit 37ce380
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,9 @@ def main(argv: Sequence[str]) -> None:

else:
flush_print("RPC PW disabled")
if (options.build_target == "esp32"):
shell.run_cmd(
f"export SDKCONFIG_DEFAULTS={_CHEF_SCRIPT_PATH}/esp32/sdkconfig.defaults")
if (options.build_target == "esp32"):
shell.run_cmd(
f"export SDKCONFIG_DEFAULTS={_CHEF_SCRIPT_PATH}/esp32/sdkconfig.defaults")

flush_print(
f"Product ID 0x{options.pid:02X} / Vendor ID 0x{options.vid:02X}")
Expand Down
3 changes: 3 additions & 0 deletions examples/chef/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ flashing_script()
if (CONFIG_ENABLE_PW_RPC)
get_filename_component(CHIP_ROOT ./third_party/connectedhomeip REALPATH)
include(third_party/connectedhomeip/third_party/pigweed/repo/pw_build/pigweed.cmake)

pw_set_module_config(pw_rpc_CONFIG pw_rpc.disable_global_mutex_config)

pw_set_backend(pw_log pw_log_basic)
pw_set_backend(pw_assert.check pw_assert_log.check_backend)
pw_set_backend(pw_assert.assert pw_assert.assert_compatibility_backend)
Expand Down
4 changes: 2 additions & 2 deletions examples/chef/esp32/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pw_proto_library(descriptor_service
STRIP_PREFIX
${CHIP_ROOT}/examples/common/pigweed/protos
DEPS
pw_protobuf.common_protos
pw_protobuf.common_proto
)

pw_proto_library(device_service
Expand All @@ -178,7 +178,7 @@ pw_proto_library(wifi_service
PREFIX
wifi_service
DEPS
pw_protobuf.common_protos
pw_protobuf.common_proto
STRIP_PREFIX
${CHIP_ROOT}/examples/common/pigweed/protos
)
Expand Down

0 comments on commit 37ce380

Please sign in to comment.