Skip to content

Commit

Permalink
add pw_rpc.gni to light-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Aug 4, 2023
1 parent e8d6b47 commit 923df9d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions examples/light-switch-app/silabs/with_pw_rpc.gni
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# add this gni as import in your build args to use pigweed in the example
# 'import("//with_pw_rpc.gni")'

import("//build_overrides/chip.gni")
import("${chip_root}/config/efr32/lib/pw_rpc/pw_rpc.gni")
import("${chip_root}/examples/platform/silabs/args.gni")

silabs_sdk_target = get_label_info(":sdk", "label_no_toolchain")

app_data_model = "${chip_root}/examples/light-switch-app/light-switch-common"
chip_enable_pw_rpc = true
chip_enable_openthread = true

# Light-Swithc app on EFR enables tracing server
pw_trace_BACKEND = "$dir_pw_trace_tokenized"

0 comments on commit 923df9d

Please sign in to comment.