blob: 8b90982be93ca3e7e113e0f1e8eb2e0a295ea35f [file] [log] [blame]
# Copyright (c) 2020 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/chip.gni")
import("//build_overrides/nxp_sdk.gni")
import("//build_overrides/openthread.gni")
declare_args() {
chip_with_ot_cli = 0
chip_with_low_power = 0
sdk_release = 1
chip_use_plain_dac_key = false
}
nxp_platform = "k32w/k32w1"
nxp_sdk_name = "k32w1_sdk"
nxp_device_layer = "nxp/${nxp_platform}"
nxp_use_lwip = false
nxp_use_mbedtls_port = false
# ARM architecture flags will be set based on NXP board.
arm_platform_config = "${nxp_sdk_build_root}/${nxp_sdk_name}/nxp_arm.gni"
chip_device_platform = "nxp"
chip_device_project_config_include = "<CHIPProjectConfig.h>"
chip_project_config_include = "<CHIPProjectConfig.h>"
chip_inet_project_config_include = "<CHIPProjectConfig.h>"
chip_system_project_config_include = "<CHIPProjectConfig.h>"
chip_ble_project_config_include = "<CHIPProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/platform/${nxp_platform}/app/project_include" ]
chip_enable_openthread = true
chip_inet_config_enable_ipv4 = false
chip_inet_config_enable_tcp_endpoint = false
chip_build_tests = false
chip_detail_logging = true
chip_progress_logging = true
chip_mdns = "platform"
chip_system_config_use_open_thread_inet_endpoints = true
chip_with_lwip = false
mbedtls_target = "${nxp_sdk_build_root}/${nxp_sdk_name}:mbedtls"
openthread_external_mbedtls = mbedtls_target
openthread_project_core_config_file = "OpenThreadConfig.h"
openthread_core_config_platform_check_file =
"openthread-core-k32w1-config-check.h"
openthread_core_config_deps = [ "${chip_root}/examples/platform/nxp/k32w/k32w1:openthread_core_config_k32w1_chip_examples" ]
openthread_external_platform = "${chip_root}/third_party/openthread/platforms/nxp/k32w/k32w1:libopenthread-k32w1"