| # 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/telink.gni") |
| |
| config("telink_sdk_config") { |
| include_dirs = [ |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/drivers/B91", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/stack/ble", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/stack/ble/controller", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/vendor/common", |
| ] |
| |
| libs = [ |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/proj_lib/libB91_ble_lib.a", |
| ] |
| |
| defines = [ |
| "USE_ZEPHYR_HAL_HEADERS", |
| "MCU_CORE_TYPE = MCU_CORE_9518", |
| ] |
| |
| cflags = [] |
| } |
| |
| source_set("telink_sdk") { |
| sources = [ |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/common/utility.c", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/drivers/B91/aes.c", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/drivers/B91/ext_driver/software_pa.c", |
| "${telink_sdk_build_root}/repo/eagle_ble_sdk/vendor/common/blt_common.c", |
| ] |
| |
| public_configs = [ ":telink_sdk_config" ] |
| } |