Skip to content

Commit

Permalink
[Ameba] Fix rpc compile error (#15254)
Browse files Browse the repository at this point in the history
* Fix compile errors in RPC
Change position of CONFIG_ENABLE_ROTATING_DEVICE_ID macro

* Add application specific macros
  • Loading branch information
pankore authored and pull[bot] committed Jul 19, 2023
1 parent 2597196 commit 9786716
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/all-clusters-app/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ pw_proto_library(locking_service

pw_proto_library(wifi_service
SOURCES
${chip_dir}/examples/ipv6only-app/common/wifi_service/wifi_service.proto
${chip_dir}/examples/common/pigweed/protos/wifi_service.proto
INPUTS
${chip_dir}/examples/ipv6only-app/common/wifi_service/wifi_service.options
${chip_dir}/examples/common/pigweed/protos/wifi_service.options
PREFIX
wifi_service
DEPS
pw_protobuf.common_protos
STRIP_PREFIX
${chip_dir}/examples/ipv6only-app/common/wifi_service
${chip_dir}/examples/common/pigweed/protos
)

endif(matter_enable_rpc)
Expand Down Expand Up @@ -222,6 +222,8 @@ list(
-DUSE_ZAP_CONFIG
-DCHIP_HAVE_CONFIG_H
-DMBEDTLS_CONFIG_FILE=<mbedtls_config.h>
-DCONFIG_ENABLE_ROTATING_DEVICE_ID=1
-DMATTER_ALL_CLUSTERS_APP=1
)

if (matter_enable_rpc)
Expand All @@ -234,7 +236,6 @@ list(
-DPW_RPC_LIGHTING_SERVICE=1
-DPW_RPC_LOCKING_SERVICE=1
-DCONFIG_ENABLE_PW_RPC=1
-DCONFIG_ENABLE_ROTATING_DEVICE_ID=1
)
endif (matter_enable_rpc)

Expand Down
1 change: 1 addition & 0 deletions examples/lighting-app/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ list(
-DUSE_ZAP_CONFIG
-DCHIP_HAVE_CONFIG_H
-DMBEDTLS_CONFIG_FILE=<mbedtls_config.h>
-DMATTER_LIGHTING_APP=1
)

if (matter_enable_ota_requestor)
Expand Down
1 change: 1 addition & 0 deletions examples/ota-requestor-app/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ list(
-DUSE_ZAP_CONFIG
-DCHIP_HAVE_CONFIG_H
-DMBEDTLS_CONFIG_FILE=<mbedtls_config.h>
-DMATTER_OTA_REQUESTOR_APP=1
)

list(
Expand Down
1 change: 1 addition & 0 deletions examples/pigweed-app/ameba/chip_main.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ list(
-DCHIP_HAVE_CONFIG_H
-DMBEDTLS_CONFIG_FILE=<mbedtls_config.h>
-DCONFIG_ENABLE_PW_RPC=1
-DMATTER_PIGWEED_APP=1
)

list(
Expand Down

0 comments on commit 9786716

Please sign in to comment.