blob: d240812d8106f4beb941ee7a5fc666837c877a69 [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/bl602_sdk.gni")
import("//build_overrides/chip.gni")
import("//build_overrides/mbedtls.gni")
import("bl602_board.gni")
declare_args() {
# Location of the bl602 SDK.
bl602_sdk_root = "${chip_root}/third_party/bouffalolab/bl602_sdk/repo"
}
assert(bl602_sdk_root != "", "bl602_sdk_root must be specified")
# Defines an bl602 SDK build target.
#
# Parameters:
# bl602_sdk_root - The location of the bl602 SDK.
# sources - The sources files to build.
template("bl602_sdk") {
if (defined(invoker.bl602_sdk_root)) {
bl602_sdk_root = invoker.bl602_sdk_root
}
assert(bl602_sdk_root != "", "bl602_sdk_root must be specified")
sdk_target_name = target_name
config("${sdk_target_name}_config") {
include_dirs = []
libs = []
if (defined(invoker.include_dirs)) {
include_dirs += invoker.include_dirs
}
# Treat these includes as system includes, so warnings in them are not fatal.
_include_dirs = [
"${bl602_sdk_root}",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/config",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/portable/GCC/RISC-V",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/portable/GCC/RISC-V/chip_specific_extensions/RV32F_float_abi_single",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/panic",
"${bl602_sdk_root}/components/network/lwip/lwip-port/config",
"${bl602_sdk_root}/components/network/lwip/src/include",
"${bl602_sdk_root}/components/network/lwip/src/include/lwip",
"${bl602_sdk_root}/components/network/lwip/src/include/lwip/apps",
"${bl602_sdk_root}/components/network/lwip/lwip-port",
"${bl602_sdk_root}/components/network/lwip/lwip-port/FreeRTOS",
"${bl602_sdk_root}/components/network/lwip_mdns",
# "${bl602_sdk_root}/components/network/lwip_dhcpd",
"${bl602_sdk_root}/components/platform/hosal",
"${bl602_sdk_root}/components/platform/hosal/include",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal",
"${bl602_sdk_root}/components/utils/include",
"${bl602_sdk_root}/components/security/blcrypto_suite/priv_inc",
"${bl602_sdk_root}/components/security/blcrypto_suite/inc/blcrypto_suite",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Inc",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Device/Bouffalo/BL602/Peripherals",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/RISCV/Device/Bouffalo/BL602/Startup",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Common/platform_print",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/RISCV/Core/Include",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Common/soft_crc",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Common/partition",
"${bl602_sdk_root}/components/sys/bltime/include",
"${bl602_sdk_root}/components/stage/easyflash4/inc",
"${bl602_sdk_root}/components/sys/blmtd/include",
"${bl602_sdk_root}/components/stage/blfdt/inc",
"${bl602_sdk_root}/components/stage/blog",
"${bl602_sdk_root}/components/stage/cli/cli/include",
"${bl602_sdk_root}/components/utils/include",
"${chip_root}/third_party/mbedtls/repo/include",
"${bl602_sdk_root}/components/sys/bloop/bloop/include",
"${bl602_sdk_root}/components/sys/bloop/loopset/include",
"${bl602_sdk_root}/components/sys/bloop/looprt/include",
"${bl602_sdk_root}/components/fs/vfs/include",
"${bl602_sdk_root}/components/stage/yloop/include",
"${bl602_sdk_root}/components/network/wifi/include",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal",
"${bl602_sdk_root}/components/stage/yloop/include/aos",
"${bl602_sdk_root}/components/stage/yloop/include/aos",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/include/zephyr",
"${bl602_sdk_root}/components/network/ble/blestack/src/port/include",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/include",
"${bl602_sdk_root}/components/network/ble/blestack/src/include",
"${bl602_sdk_root}/components/network/ble/blestack/src/include/bluetooth",
"${bl602_sdk_root}/components/network/ble/blecontroller/ble_inc",
"${bl602_sdk_root}/components/network/ble/blestack/src/host",
"${bl602_sdk_root}/components/network/ble/blestack/src/include/drivers/bluetooth",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/include/misc",
"${bl602_sdk_root}/components/network/ble/blestack/src/common",
"${bl602_sdk_root}/components/network/ble/blestack/src/bl_hci_wrapper",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/tinycrypt/include/tinycrypt",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/include",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver",
"${bl602_sdk_root}/components/network/dns_server/include",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Inc",
"${bl602_sdk_root}/components/security/blcrypto_suite/inc/blcrypto_suite",
"${bl602_sdk_root}/components/security/blcrypto_suite/priv_inc",
"${bl602_sdk_root}/components/network/wifi/modules/supplicant/src/sae",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Common/platform_print",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Common/ring_buffer",
"${bl602_sdk_root}/components/utils/include",
"${bl602_sdk_root}/components/stage/cli/cli/include/",
"${bl602_sdk_root}/components/sys/blota/include",
"${bl602_sdk_root}/components/utils/include/",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Inc/",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/",
"${bl602_sdk_root}/components/utils/async_log/",
]
# if (bl602_board == "BL-HWC-G1") {
# _include_dirs += [ "${bl602_sdk_root}/hardware/board/config/bl_hwc_g1" ]
# }
bl_sdk_ver = getenv("BL_SDK_VER")
defines = [
"MBEDTLS_CONFIG_FILE=\"bl602-chip-mbedtls-config.h\"",
"__STARTUP_CLEAR_BSS",
"HARD_FAULT_LOG_ENABLE",
"RETARGET_VCOM",
"RETARGET_USART0",
"ARCH_RISCV",
"portasmHANDLE_INTERRUPT=interrupt_entry",
"SYS_APP_TASK_STACK_SIZE=1024",
"SYS_APP_TASK_PRIORITY=28",
"BL_SDK_VER=\"$bl_sdk_ver\"",
"SYS_BLOG_ENABLE=1",
"SYS_VFS_ENABLE=1",
"SYS_AOS_LOOP_ENABLE=1",
"BL602_USE_HAL_DRIVER=1",
"BL602=BL602",
"SYS_LOOPRT_ENABLE=1",
"CFG_TXDESC=2",
"CFG_STA_MAX=1",
# "SYS_AOS_CLI_ENABLE=1",
# set CONFIG_RENDEZVOUS_MODE to RENDEZVOUS_MODE_BLE (2)
"CONFIG_RENDEZVOUS_MODE=2",
# bluetooth
"CONFIG_SET_TX_PWR",
"CFG_BLE_ENABLE",
"BFLB_BLE",
"CFG_BLE",
"CFG_SLEEP",
"OPTIMIZE_DATA_EVT_FLOW_FROM_CONTROLLER",
"CFG_BT_RESET",
"CFG_CON=1",
"CFG_BLE_TX_BUFF_DATA=2",
# "CONFIG_BLE_TX_BUFF_DATA=2",
"CONFIG_BT_PERIPHERAL=1",
"CONFIG_BT_L2CAP_DYNAMIC_CHANNEL",
"CONFIG_BT_GATT_CLIENT",
"CONFIG_BT_CONN=1",
"CONFIG_BT_GATT_DIS_PNP",
"CONFIG_BT_GATT_DIS_SERIAL_NUMBER",
"CONFIG_BT_GATT_DIS_FW_REV",
"CONFIG_BT_GATT_DIS_HW_REV",
"CONFIG_BT_GATT_DIS_SW_REV",
"CONFIG_BT_ECC",
"CONFIG_BT_GATT_DYNAMIC_DB",
"CONFIG_BT_GATT_SERVICE_CHANGED",
"CONFIG_BT_KEYS_OVERWRITE_OLDEST",
"CONFIG_BT_KEYS_SAVE_AGING_COUNTER_ON_PAIRING",
"CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS",
"CONFIG_BT_BONDABLE",
"CONFIG_BT_HCI_VS_EVT_USER",
"CONFIG_BT_ASSERT",
"CONFIG_BT_SETTINGS_CCC_LAZY_LOADING",
"CONFIG_BT_SETTINGS_USE_PRINTK",
"CFG_BLE_STACK_DBG_PRINT",
"__FILENAME__=__FILE__",
"BL602_LOG_ENABLED=1",
# "${bl602_mcu}=1",
# "${bl602_board}=1",
# "CHIP_KVS_SECTOR_COUNT=4",
# "CHIP_KVS_BASE_SECTOR_INDEX=((FLASH_SIZE/FLASH_PAGE_SIZE)-(CHIP_KVS_SECTOR_COUNT))",
"__HEAP_SIZE=0",
#dump backtrace
"CONF_ENABLE_FRAME_PTR=1",
"CONF_ENABLE_FUNC_BACKTRACE_ELF=connectedhomeip/examples/lock-app/bl602/out/debug/chip-bl602-lock-example.out",
"CHIP_SYSTEM_CRYPTO_HEADER_RESERVE_SIZE=128",
]
if (bl602_board == "BL-HWC-G1") {
defines += [
"BL602_UART0_TX_GPIO=16",
"BL602_UART0_RX_GPIO=7",
]
} else if (bl602_board == "3R-HWC-G1") {
defines += [
"BL602_UART0_TX_GPIO=2",
"BL602_UART0_RX_GPIO=1",
]
}
defines += board_defines
# if (bl_family == "bl602") {
# _include_dirs += [
# "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG12P/Include",
# ]
#
# libs += [
# "${efr32_sdk_root}/protocol/bluetooth/lib/EFR32MG12P/GCC/libbluetooth.a",
# ]
# defines += [ "EFR32MG12" ]
# }
libs += [
"${bl602_sdk_root}/components/network/wifi/lib/libwifi.a",
"${bl602_sdk_root}/components/network/ble/blecontroller/lib/libblecontroller.a",
]
cflags = [
"-include",
rebase_path(
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/errno.h",
root_build_dir),
]
#cflags = ["-include", rebase_path("${bl602_sdk_root}/components/network/ble/blestack/src/common/include/errno.h", root_build_dir), ]
# for src/platform/bouffalolab/BL602/BLEManagerImpl.cpp
# TODO: 3R
#cflags += [ "-fpermissive" ]
cflags += [
"-Wno-maybe-uninitialized",
"-Wno-shadow",
"-Wno-error",
]
cflags_cc = [ "-fpermissive" ]
cflags_cc += [ "-std=c++17" ]
cflags_cc += [ "-D _GNU_SOURCE" ]
foreach(include_dir, _include_dirs) {
cflags += [ "-isystem" + rebase_path(include_dir, root_build_dir) ]
}
cflags += [ "-save-temps=obj" ]
cflags += [ "-Wno-maybe-uninitialized" ]
if (defined(invoker.defines)) {
defines += invoker.defines
}
}
source_set(sdk_target_name) {
sources = [
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_boot2.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_flash.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_wdt.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hosal_ota.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_flash.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_sf_cfg_ext.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_sflash_ext.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_timer.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_xip_sflash_ext.c",
"${bl602_sdk_root}/components/stage/cli/cli/cli.c",
"${bl602_sdk_root}/components/stage/easyflash4/src/easyflash.c",
"${bl602_sdk_root}/components/stage/easyflash4/src/ef_env.c",
"${bl602_sdk_root}/components/stage/easyflash4/src/ef_port.c",
"${bl602_sdk_root}/components/stage/easyflash4/src/ef_utils.c",
"${bl602_sdk_root}/components/sys/blmtd/bl_mtd.c",
"${bl602_sdk_root}/components/sys/blota/bl_sys_ota_cli.c",
"${bl602_sdk_root}/components/utils/src/utils_hexdump.c",
"${bl602_sdk_root}/components/utils/src/utils_sha256.c",
"${chip_root}/third_party/mbedtls/repo/library/aes.c",
"${chip_root}/third_party/mbedtls/repo/library/asn1parse.c",
"${chip_root}/third_party/mbedtls/repo/library/asn1write.c",
"${chip_root}/third_party/mbedtls/repo/library/bignum.c",
"${chip_root}/third_party/mbedtls/repo/library/ccm.c",
"${chip_root}/third_party/mbedtls/repo/library/cipher.c",
"${chip_root}/third_party/mbedtls/repo/library/cipher_wrap.c",
"${chip_root}/third_party/mbedtls/repo/library/constant_time.c",
"${chip_root}/third_party/mbedtls/repo/library/ctr_drbg.c",
"${chip_root}/third_party/mbedtls/repo/library/ecdh.c",
"${chip_root}/third_party/mbedtls/repo/library/ecdsa.c",
"${chip_root}/third_party/mbedtls/repo/library/ecp.c",
"${chip_root}/third_party/mbedtls/repo/library/ecp_curves.c",
"${chip_root}/third_party/mbedtls/repo/library/entropy.c",
"${chip_root}/third_party/mbedtls/repo/library/hkdf.c",
"${chip_root}/third_party/mbedtls/repo/library/hmac_drbg.c",
"${chip_root}/third_party/mbedtls/repo/library/md.c",
"${chip_root}/third_party/mbedtls/repo/library/oid.c",
"${chip_root}/third_party/mbedtls/repo/library/pk.c",
"${chip_root}/third_party/mbedtls/repo/library/pk_wrap.c",
"${chip_root}/third_party/mbedtls/repo/library/pkcs5.c",
"${chip_root}/third_party/mbedtls/repo/library/pkwrite.c",
"${chip_root}/third_party/mbedtls/repo/library/platform.c",
"${chip_root}/third_party/mbedtls/repo/library/platform_util.c",
"${chip_root}/third_party/mbedtls/repo/library/sha256.c",
"${chip_root}/third_party/mbedtls/repo/library/sha512.c",
"${chip_root}/third_party/mbedtls/repo/library/x509_create.c",
"${chip_root}/third_party/mbedtls/repo/library/x509write_csr.c",
]
if (defined(enable_fem)) {
sources += [
# "${efr32_sdk_root}/util/plugin/plugin-common/fem-control/fem-control.c",
]
}
if (defined(invoker.show_qr_code)) {
if (invoker.show_qr_code) {
sources += [
# "${efr32_sdk_root}/hardware/kit/common/drivers/display.c",
]
}
}
# if (bl_family == "bl602") {
# sources += [
# "${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG12P/Source/system_efr32mg12p.c",
# ]
# }
# if (bl_family == "bl602") {
sources += [
"${bl602_sdk_root}/components/fs/vfs/device/vfs_uart.c",
"${bl602_sdk_root}/components/fs/vfs/src/vfs.c",
"${bl602_sdk_root}/components/fs/vfs/src/vfs_file.c",
"${bl602_sdk_root}/components/fs/vfs/src/vfs_inode.c",
"${bl602_sdk_root}/components/fs/vfs/src/vfs_register.c",
"${bl602_sdk_root}/components/libc/newlibc/stdatomic.c",
"${bl602_sdk_root}/components/libc/newlibc/syscalls.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/bl_hci_wrapper/bl_hci_wrapper.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/atomic_c.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/buf.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/dec.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/log.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/poll.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/common/work_q.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/hci_onchip/hci_driver.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/att.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/bl_host_assist.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/conn.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/crypto.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/gatt.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/hci_core.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/l2cap.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/settings.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/host/uuid.c",
"${bl602_sdk_root}/components/network/ble/blestack/src/port/bl_port.c",
"${bl602_sdk_root}/components/network/dns_server/src/dns_server.c",
"${bl602_sdk_root}/components/network/dns_server/src/web_server.c",
"${bl602_sdk_root}/components/network/lwip/lwip-port/FreeRTOS/ethernetif.c",
"${bl602_sdk_root}/components/network/lwip/lwip-port/FreeRTOS/sys_arch.c",
"${bl602_sdk_root}/components/network/lwip/src/api/api_lib.c",
"${bl602_sdk_root}/components/network/lwip/src/api/api_msg.c",
"${bl602_sdk_root}/components/network/lwip/src/api/err.c",
"${bl602_sdk_root}/components/network/lwip/src/api/if_api.c",
"${bl602_sdk_root}/components/network/lwip/src/api/netbuf.c",
"${bl602_sdk_root}/components/network/lwip/src/api/netdb.c",
"${bl602_sdk_root}/components/network/lwip/src/api/netifapi.c",
"${bl602_sdk_root}/components/network/lwip/src/api/sockets.c",
"${bl602_sdk_root}/components/network/lwip/src/api/tcpip.c",
"${bl602_sdk_root}/components/network/lwip/src/apps/altcp_tls/altcp_tls_mbedtls.c",
"${bl602_sdk_root}/components/network/lwip/src/apps/altcp_tls/altcp_tls_mbedtls_mem.c",
"${bl602_sdk_root}/components/network/lwip/src/core/altcp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/altcp_alloc.c",
"${bl602_sdk_root}/components/network/lwip/src/core/altcp_tcp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/def.c",
"${bl602_sdk_root}/components/network/lwip/src/core/dns.c",
"${bl602_sdk_root}/components/network/lwip/src/core/inet_chksum.c",
"${bl602_sdk_root}/components/network/lwip/src/core/init.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ip.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/autoip.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/dhcp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/etharp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/icmp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/igmp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/ip4.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/ip4_addr.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv4/ip4_frag.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/dhcp6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/ethip6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/icmp6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/inet6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/ip6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/ip6_addr.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/ip6_frag.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/mld6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/ipv6/nd6.c",
"${bl602_sdk_root}/components/network/lwip/src/core/mem.c",
"${bl602_sdk_root}/components/network/lwip/src/core/memp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/netif.c",
"${bl602_sdk_root}/components/network/lwip/src/core/pbuf.c",
"${bl602_sdk_root}/components/network/lwip/src/core/raw.c",
"${bl602_sdk_root}/components/network/lwip/src/core/stats.c",
"${bl602_sdk_root}/components/network/lwip/src/core/sys.c",
"${bl602_sdk_root}/components/network/lwip/src/core/tcp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/tcp_in.c",
"${bl602_sdk_root}/components/network/lwip/src/core/tcp_out.c",
"${bl602_sdk_root}/components/network/lwip/src/core/timeouts.c",
"${bl602_sdk_root}/components/network/lwip/src/core/udp.c",
"${bl602_sdk_root}/components/network/lwip/src/core/utils.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/bridgeif.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/bridgeif_fdb.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/ethernet.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/lowpan6.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/lowpan6_ble.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/lowpan6_common.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/slipif.c",
"${bl602_sdk_root}/components/network/lwip/src/netif/zepif.c",
"${bl602_sdk_root}/components/network/lwip_dhcpd/dhcp_server_raw.c",
"${bl602_sdk_root}/components/network/lwip_mdns/mdns_server.c",
"${bl602_sdk_root}/components/network/sntp/sntp.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_cmds.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_irqs.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_main.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_mod_params.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_msg_rx.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_msg_tx.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_platform.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_rx.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_tx.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/bl_utils.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/ipc_host.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/os_hal.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/stateMachine.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_mgmr.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_mgmr_api.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_mgmr_cli.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_mgmr_event.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_mgmr_ext.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_mgmr_profile.c",
"${bl602_sdk_root}/components/network/wifi_manager/bl60x_wifi_driver/wifi_netif.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_chip.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_dma.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_efuse.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_gpio.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_hbn.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_irq.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_pds.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_pm.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_pwm.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_rtc.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_sec.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_sec_sha.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_sys.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_timer.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_uart.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/bl_wifi.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_board.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_boot2.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_button.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_gpio.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_hbn.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_sys.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hal_wifi.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hosal_dma.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hosal_pwm.c",
"${bl602_sdk_root}/components/platform/hosal/bl602_hal/hosal_uart.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602/bfl_main.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602/evb/src/boot/gcc/start.S",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602/evb/src/debug.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602/evb/src/strntoumax.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/Common/platform_print/platform_device.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_dma.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_ef_ctrl.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_glb.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_hbn.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_efuse.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_media.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_pwm.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_romapi.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_sec_eng.c",
"${bl602_sdk_root}/components/platform/soc/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_uart.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/event_groups.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/list.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/misaligned/fp_asm.S",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/misaligned/misaligned_ldst.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/panic/panic_c.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/portable/GCC/RISC-V/port.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/portable/GCC/RISC-V/portASM.S",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/portable/MemMang/heap_5.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/queue.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/stream_buffer.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/tasks.c",
"${bl602_sdk_root}/components/platform/soc/bl602/freertos_riscv_ram/timers.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_aes.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_bignum.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_ecp.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_ecp_curves.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_export_fw.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_fw_api.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_hacc.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_hacc_glue.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_hacc_secp256r1_mul.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_platform_util.c",
"${bl602_sdk_root}/components/security/blcrypto_suite/src/blcrypto_suite_porting.c",
"${bl602_sdk_root}/components/stage/blfdt/src/fdt.c",
"${bl602_sdk_root}/components/stage/blfdt/src/fdt_ro.c",
"${bl602_sdk_root}/components/stage/blog/blog.c",
"${bl602_sdk_root}/components/stage/yloop/src/aos_freertos.c",
"${bl602_sdk_root}/components/stage/yloop/src/device.c",
"${bl602_sdk_root}/components/stage/yloop/src/local_event.c",
"${bl602_sdk_root}/components/stage/yloop/src/select.c",
"${bl602_sdk_root}/components/stage/yloop/src/yloop.c",
"${bl602_sdk_root}/components/sys/bloop/bloop/src/bloop_base.c",
"${bl602_sdk_root}/components/sys/bloop/bloop/src/bloop_handler_sys.c",
"${bl602_sdk_root}/components/sys/bloop/looprt/src/looprt.c",
"${bl602_sdk_root}/components/sys/bloop/loopset/src/loopset_led.c",
"${bl602_sdk_root}/components/sys/bltime/bl_sys_time.c",
"${bl602_sdk_root}/components/utils/async_log/async_log.c",
"${bl602_sdk_root}/components/utils/src/utils_crc.c",
"${bl602_sdk_root}/components/utils/src/utils_dns.c",
"${bl602_sdk_root}/components/utils/src/utils_hmac_sha1_fast.c",
"${bl602_sdk_root}/components/utils/src/utils_list.c",
"${bl602_sdk_root}/components/utils/src/utils_log.c",
"${bl602_sdk_root}/components/utils/src/utils_notifier.c",
"${bl602_sdk_root}/components/utils/src/utils_psk_fast.c",
"${bl602_sdk_root}/components/utils/src/utils_rbtree.c",
"${bl602_sdk_root}/components/utils/src/utils_tlv_bl.c",
]
# } else if (bl_family == "bl706") {
# sources += [
# ]
# }
public_deps = [
# "${segger_rtt_root}:segger_rtt",
# "${segger_rtt_root}:segger_rtt_printf",
# "${segger_rtt_root}:segger_rtt_syscalls",
]
if (defined(invoker.sources)) {
sources += invoker.sources
}
public_configs = [ ":${sdk_target_name}_config" ]
}
}