blob: 404daaa3e916dbc48c04d74f4d3bb828643b09da [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")
nxp_platform = "k32w/k32w0"
nxp_sdk_name = "k32w0_sdk"
nxp_device_layer = "nxp/${nxp_platform}"
nxp_use_lwip = false
nxp_use_mbedtls_port = false
if (getenv("NXP_K32W0_SDK_ROOT") == "") {
k32w0_sdk_root = "${chip_root}/third_party/nxp/k32w0_sdk/repo/core"
} else {
k32w0_sdk_root = getenv("NXP_K32W0_SDK_ROOT")
}
# 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_openthread_ftd = false
chip_inet_config_enable_ipv4 = false
chip_inet_config_enable_tcp_endpoint = false
chip_build_tests = false
chip_mdns = "platform"
# Logs are enabled by default, but can be disabled by setting
# chip_logging=false in the build command.
# Alternatively, a user can overwrite the value for different logging levels
# by uncommenting the lines below and setting the corresponding value.
# A user can disable some logging levels to decrease flash usage.
#chip_detail_logging = true
#chip_progress_logging = true
#chip_automation_logging = true
#chip_error_logging = true
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-k32w061-config-check.h"
openthread_core_config_deps = [ "${chip_root}/examples/platform/nxp/k32w/k32w0:openthread_core_config_k32w0_chip_examples" ]
openthread_external_platform = "${chip_root}/third_party/openthread/platforms/nxp/k32w/k32w0:libopenthread-k32w0"