blob: 5d523bd3a65d8c3742fcfc225f23ece754d2ea7c [file] [log] [blame]
# 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.
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
import("//build_overrides/efr32_sdk.gni")
import("//build_overrides/pigweed.gni")
import("${chip_root}/examples/platform/silabs/args.gni")
import("${chip_root}/src/crypto/crypto.gni")
# ARM architecture flags will be set based on silabs_family.
arm_platform_config = "${efr32_sdk_build_root}/silabs_arm.gni"
mbedtls_target = "${efr32_sdk_build_root}:efr32_sdk"
# default to platform crypto implementation but allow commandline override
if (chip_crypto == "") {
chip_crypto = "platform"
}
# Transitional CommissionableDataProvider not used anymore
# examples/platform/silabs/SilabsDeviceDataProvider is now used.
chip_use_transitional_commissionable_data_provider = false
# Use GSDK lwip instead of CHIP
lwip_root = "${efr32_sdk_build_root}/silabs_lwip"
#lwip_platform = "external"
lwip_platform = "silabs"
lwip_ipv6 = true
lwip_ipv4 = false
lwip_api = true
lwip_ethernet = true
chip_enable_wifi = true
chip_enable_openthread = false
chip_inet_config_enable_ipv4 = false
chip_inet_config_enable_dns_resolver = false
chip_inet_config_enable_tcp_endpoint = false
chip_build_tests = false
chip_config_memory_management = "platform"
chip_mdns = "minimal"
chip_enable_pw_rpc = false
pw_build_LINK_DEPS = [
"$dir_pw_assert:impl",
"$dir_pw_log:impl",
]