blob: 9842ba2b23ec24202094254c13cb2da2e2d1f98c [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/bouffalolab_iot_sdk.gni")
import("//build_overrides/openthread.gni")
import("${bl702_sdk_build_root}/bl702_sdk.gni")
declare_args() {
# Build target to use for bl702 SDK. Use this to set global SDK defines.
bl702_sdk_target = ""
}
assert(bl702_sdk_target != "", "bl702_sdk_target must be specified")
config("bl702_mbedtls_config") {
defines = [ "MBEDTLS_CONFIG_FILE=\"bl702-chip-mbedtls-config.h\"" ]
}
mbedtls_target("mbedtls") {
public_configs = [ ":bl702_mbedtls_config" ]
include_dirs = [ "${chip_root}/src/platform/bouffalolab/BL702" ]
}
group("bl702_sdk") {
public_deps = [ bl702_sdk_target ]
}