Files
kunlun/ftm/BUILD.gn
2025-01-17 16:35:20 +08:00

106 lines
3.7 KiB
Plaintext

#Copyright(c) 2024 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
#This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
#be copied by any method or incorporated into another program without
#the express written consent of Aerospace C.Power. This Information or any portion
#thereof remains the property of Aerospace C.Power. The Information contained herein
#is believed to be accurate and Aerospace C.Power assumes no responsibility or
#liability for its use in any way and conveys no license or title under
#any patent or copyright and makes no representation or warranty that this
#Information is free from patent or copyright infringement.
import("//build/buildcfg.gni")
module_name = "kl_sdk"
kernel_module(module_name) {
sources = [
"src/iot_ftm_case.c",
"src/iot_ftm_cmd.c",
"src/iot_ftm.c",
"mp/iot_pt_func.c",
"mp/zero_cross_detec.c",
"mp/iot_pt_rf_func.c",
"mp/voltage_detec.c",
"mp/mp_mode.c",
"mp/cli/cli_rf_ic_tool.c",
"mp/cli/cli_plc_ic_tool.c",
"mp/cli/cli_ic_tool.c",
"cus/iot_ftm_cus_cmd.c",
"../bb_cpu/bb/bb_rf_tone_tbl.c",
"../bb_cpu/bb/bb_rf_hw_tbl.c",
"../bb_cpu/bb/bb_rf_cfg.c",
"../bb_cpu/bb/bb_init.c",
"../bb_cpu/common/rf_spi_api.c",
"../bb_cpu/common/bb_cpu_utils.c",
"../bb_cpu/common/bb_cpu_timer.c",
]
include_dirs = [
"//ftm/inc",
"//ftm/mp/cli",
"//ftm/mp/pt_board/inc",
"//bb_cpu/inc",
"//dtest/ate_test",
"//plc/inc",
"//plc/common/inc",
"//plc/halmac/inc",
"//plc/halmac/test/inc",
"//plc/halphy/inc",
"//plc/halphy/test/inc",
]
if (target == "kunlun3") {
sources += [
# "../bb_cpu/bb/v1/bb_rf_cfg.c",
# "../bb_cpu/bb/v1/bb_init.c",
"../dtest/dtest3/mac_rx_test/hal/hal_rx.c",
"../dtest/dtest3/mac_tx_test/hw3/hw_tx.c",
"../dtest/dtest3/mac_tx_test/hw3/tx_entry.c",
"../dtest/dtest3/mac_rx_test/hw3/rx_entry.c",
"../dtest/dtest3/mac_rx_test/hw3/hw_rx.c",
"../dtest/dtest3/mac_phy/rf_mac/rf_mac_rx.c",
"../dtest/dtest3/mac_phy/rf_mac/mac_ntb_wrap_test.c",
"../dtest/dtest3/mac_phy/rf_mac/rf_mac_tx.c",
"../dtest/dtest3/mac_phy/rf_mac/mac_zc_dtest.c",
"../dtest/dtest3/mac_phy/rf_mac/rf_bb_isr_test.c",
"../dtest/dtest3/mac_phy/rf_mac/rf_mac_isr_test.c",
"../dtest/dtest3/mac_phy/rf_mac/rf_mac_main.c",
"../dtest/dtest3/mac_phy/rf_mac/rf_bb_main.c",
"../dtest/dtest3/mac_phy/rf_phy/rf_phy_rx.c",
"../dtest/dtest3/mac_phy/rf_phy/rf_phy_tx.c",
"../dtest/dtest3/mac_phy/common/rf_mac_common.c",
]
if (ftm_build == "1") {
sources += [
"../dtest/dtest3/mac_phy/double_cpu/kl3_core0/kl3_core0_test.c",
]
}
include_dirs += [
"//plc/halmac/hw3/plc_inc/desc",
"//plc/halmac/hw3/plc_inc",
"//plc/halmac/hw3/rf_inc/desc",
"//plc/halmac/hw3/rf_inc",
"//plc/halmac/hw3/inc",
"//plc/halmac/hw3/inc/desc",
"//plc/halmac/hw_common_v1/inc",
"//plc/halphy/hw_common_v1/inc",
"//plc/halphy/hw3/plc/inc",
"//plc/halphy/hw3/rf/inc",
"//plc/halphy/hw3/plc/inc",
"//plc/halphy/hw3/rf/inc",
"//plc/halphy/hw3/inc",
"//plc/halphy/test/hw3/inc",
"//startup/riscv3/inc",
"//dtest/dtest3/mac_rx_test/hw3/inc",
"//dtest/dtest3/mac_tx_test/hw3/inc",
"//dtest/dtest3/mac_rx_test/hal/inc",
"//dtest/dtest3/mac_rx_test/inc",
"//dtest/dtest3/mac_tx_test/inc",
"//dtest/dtest3/mac_phy/inc",
"//dtest/dtest3/mac_phy/common",
"//dtest/dtest3/mac_phy/rf_mac/inc",
"//dtest/dtest3/mac_phy/rf_phy/inc",
"//dtest/dtest3/mac_phy/double_cpu/kl3_core0",
]
}
}