#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 = [ "common/src/plc_mpdu_header.c", "common/src/plc_rf_scan_tbl.c", "common/src/plc_scan_tbl.c", "cvg/bwm/src/cvg_bwm.c", "cvg/bwm/src/cvg_bwm_cco.c", "cvg/bwm/src/cvg_bwm_rf.c", "cvg/common/src/cvg.c", "cvg/common/src/cvg_app.c", "cvg/common/src/cvg_app_sg.c", "cvg/common/src/cvg_app_spg.c", "cvg/common/src/cvg_beacon_sg.c", "cvg/common/src/cvg_beacon_spg.c", "cvg/common/src/cvg_task.c", "cvg/common/src/cvg_zc.c", # "cvg/min_clct/src/cvg_min_clct.c", # "cvg/min_clct/src/cvg_min_clct_cache.c", # "cvg/min_clct/src/cvg_min_clct_cco.c", # "cvg/min_clct/src/cvg_min_clct_sta.c", # "cvg/min_clct/src/cvg_min_clct_sta_spg.c", "cvg/nwm/src/cvg_nwm.c", "cvg/nwm/src/cvg_nwm_cco.c", "cvg/nwm/src/cvg_nwm_cco_app_filter.c", "cvg/nwm/src/cvg_nwm_cco_ctrl_proto.c", "cvg/nwm/src/cvg_nwm_cco_rf.c", "cvg/nwm/src/cvg_nwm_cco_sg.c", "cvg/nwm/src/cvg_nwm_cco_spg.c", "cvg/nwm/src/cvg_nwm_cco_zc.c", "cvg/nwm/src/cvg_nwm_ctrl_proto.c", "cvg/nwm/src/cvg_nwm_ctrl_proto_sg.c", "cvg/nwm/src/cvg_nwm_ctrl_proto_spg.c", "cvg/nwm/src/cvg_nwm_sg.c", "cvg/nwm/src/cvg_nwm_spg.c", "cvg/nwm/src/cvg_nwm_sta.c", "cvg/nwm/src/cvg_nwm_sta_app_filter.c", "cvg/nwm/src/cvg_nwm_sta_ctrl_proto.c", "cvg/nwm/src/cvg_nwm_sta_rf.c", "cvg/nwm/src/cvg_nwm_sta_rf_sg.c", "cvg/nwm/src/cvg_nwm_sta_rf_spg.c", "cvg/nwm/src/cvg_nwm_sta_sg.c", "cvg/nwm/src/cvg_nwm_sta_spg.c", "cvg/nwm/src/cvg_nwm_sta_zc.c", "cvg/prm/src/cvg_prm.c", # "cvg/prm/src/cvg_prm_feature.c", "cvg/prm/src/cvg_prm_matm.c", "cvg/rt/src/cvg_rt.c", "cvg/rt/src/cvg_rt_cco.c", "cvg/rt/src/cvg_rt_cco_rf.c", "cvg/rt/src/cvg_rt_rf.c", "cvg/rt/src/cvg_rt_rf_sg.c", "cvg/rt/src/cvg_rt_rf_spg.c", "cvg/rt/src/cvg_rt_sg.c", "cvg/rt/src/cvg_rt_spg.c", "cvg/rt/src/cvg_rt_sta.c", "cvg/rt/src/cvg_rt_sta_rf.c", "cvg/rt/src/cvg_rt_sta_sg.c", "cvg/rt/src/cvg_rt_sta_spg.c", "cvg/security/src/cvg_sec_auth.c", "cvg/security/src/cvg_sec_auth_ca.c", "cvg/security/src/cvg_sec_auth_ca_cco.c", "cvg/security/src/cvg_sec_auth_ca_cco_sg.c", "cvg/security/src/cvg_sec_auth_ca_sta.c", "cvg/security/src/cvg_sec_auth_ca_sta_sg.c", "cvg/security/src/cvg_sec_auth_dak.c", "cvg/security/src/cvg_sec_auth_dak_cco.c", "cvg/security/src/cvg_sec_auth_dak_sta.c", "cvg/security/src/cvg_sec_sign_cache.c", "cvg/security/src/cvg_sec_wl.c", "cvg/security/src/cvg_security.c", "halmac/avln/mac_avln.c", "halmac/beacon/beacon_frame.c", "halmac/beacon/rf_beacon_frame.c", "halmac/channel/mac_channel.c", "halmac/channel_tools/mac_channel_tools.c", "halmac/channel_tools/mac_mm_sniffer.c", "halmac/crc/mac_crc.c", "halmac/crypto/mac_crypto.c", "halmac/data/mac_data.c", "halmac/data/mac_rf_data.c", "halmac/dbg_pkt_mode/mac_dbg_pkt_mode.c", "halmac/desc/mac_desc_eng.c", "halmac/hplc_ext/mac_hplc_ext.c", "halmac/htbus/beacon_frame_htbus.c", "halmac/hw_desc/hw_rf_rx_mpdu.c", "halmac/hw_desc/hw_rf_tx_mpdu.c", "halmac/hw_desc/hw_rx_mpdu.c", "halmac/hw_desc/hw_tx_mpdu.c", # "halmac/hw_desc/mac_trx_desc_cmn.c", # "halmac/hw_desc/mac_rx_buf_ring.c", "halmac/init/mac_init.c", "halmac/init/plc_init.c", "halmac/key/mac_key.c", "halmac/mac_cfg/mac_cfg.c", "halmac/mac_check_spur/mac_che_spur_cco.c", "halmac/mac_check_spur/mac_che_spur_sta.c", "halmac/mac_check_spur/mac_check_spur.c", "halmac/mac_hw_tsfm/mac_hw_tsfm.c", "halmac/msdu/mac_msdu.c", "halmac/msdu/mac_rf_msdu.c", "halmac/multi_nid_sync/multi_nid_sync.c", "halmac/nn_cco/nn_cco.c", "halmac/pdev/mac_pdev.c", "halmac/pdev/mac_rf_pdev.c", "halmac/peer/mac_peer.c", "halmac/pm/mac_pm.c", "halmac/ppm_scan/mac_ppm_scan.c", "halmac/ppm_scan/mac_rf_scan.c", "halmac/rate/rate_control.c", "halmac/rate/rf_rate_control.c", "halmac/rf/mac_rf.c", "halmac/rx/rx_pb_reorder.c", "halmac/sched/mac_rf_sched.c", "halmac/sched/mac_sched.c", "halmac/status/mac_status.c", "halmac/stream/mac_stream.c", "halmac/sw_queue/mac_hwq_mgr.c", "halmac/sw_queue/mac_rf_hwq_mgr.c", "halmac/sw_sched/sw_sched.c", "halmac/task/mac_dsr.c", "halmac/task/mac_msg.c", "halmac/task/mac_task.c", "halmac/tx_power/mac_rf_tx_power.c", "halmac/tx_power/mac_tx_power.c", "halmac/utils/mac_utils.c", "halmac/vdev/mac_rf_vdev.c", "halmac/vdev/mac_vdev.c", "halmac/zc/mac_zc_cmn.c", "halmac/zc/zc_2/mac_zc.c", "halmac/test/mac_cert_test.c", "halmac/test/mac_rf_cert_test.c", "halmac/test/rf_tx_test_lib.c", "halmac/test/mac_cert_sec_lib.c", "halmac/test/tx_test_lib.c", # "halmac/rf_ext/mac_rf_ext.c", "halphy/multi_ppm/phy_multi_ppm.c", "halphy/phy_api.c", "halphy/phy_bbai_calu.c", "halphy/phy_bbai_calu_2.c", "halphy/phy_cfg.c", "halphy/phy_chn.c", "halphy/phy_data.c", "halphy/phy_data_ckb.c", "halphy/phy_init.c", "halphy/phy_math_tb.c", "halphy/phy_overstress.c", "halphy/phy_perf.c", "halphy/phy_rf_chn.c", "halphy/phy_rf_init.c", "halphy/phy_txrx_pwr.c", "halphy/rf_tone_map.c", "halphy/tone_map.c", "halphy/tone_mask.c", "halphy/test/phy_test_api.c", "htbus/src/cco/htbus_cco.c", "htbus/src/htbus.c", "htbus/src/htbus_test.c", "htbus/src/sta/htbus_sta.c", "halphy/hw3/plc/math_log10.c", "halphy/test/phy_tools.c", "halphy/hw_common/phy_hw_cmn.c", "halmac/hw3/rx/mac_rx_buf_ring.c", "halmac/hw_desc/mac_desc_api.c" ] if (target == "kunlun3") { sources += [ "halmac/hw3/common/mac_rf_common_hw.c", "halmac/hw3/common/mac_rf_timer.c", "halmac/hw3/isr/mac_isr.c", "halmac/hw3/isr/mac_rf_isr.c", "halmac/hw3/key/mac_key_hw.c", "halmac/hw3/misc/mac_hw_misc.c", "halmac/hw3/rawdata/mac_rawdata_hw.c", "halmac/hw3/reset/mac_reset.c", "halmac/hw3/rx/mac_rf_rx_buf_ring.c", "halmac/hw3/rx/mac_rf_rx_hw.c", # "halmac/hw3/rx/mac_rx_buf_ring_hw.c", "halmac/hw3/rx/mac_rx_hw.c", "halmac/hw3/sched/mac_rf_sched_hw.c", "halmac/hw3/sched/mac_sched_hw.c", "halmac/hw3/tx/mac_rf_tx_hw.c", "halmac/hw3/tx/mac_rf_txq_hw.c", "halmac/hw3/tx/mac_tx_hw.c", "halmac/hw3/tx/mac_txq_hw.c", "halmac/hw3/zc/mac_zc_hw.c", # "halmac/hw_common_v1/src/mac_status_v.c", # "halmac/hw_common_v1/src/mac_check_spur_v.c", # "halphy/hw_common_v1/src/phy_hw_cmn_v.c", # "halphy/hw_common_v1/src/phy_perf_v.c", # "halphy/hw_common_v1/src/phy_api_v.c", # "halphy/hw_common_v1/src/phy_tools_v.c", "halphy/hw3/plc/chip/phy_ana_plf.c", "halphy/hw3/plc/hw_phy_perf.c", "halphy/hw3/plc/hw_phy_txrx_pwr.c", "halphy/hw3/plc/phy_ada_dump.c", "halphy/hw3/plc/phy_agc.c", "halphy/hw3/plc/phy_ana.c", "halphy/hw3/plc/phy_bb.c", "halphy/hw3/plc/phy_cal.c", "halphy/hw3/plc/phy_dump.c", "halphy/hw3/plc/phy_gain_table_cal.c", "halphy/hw3/plc/phy_gepde_gpio.c", "halphy/hw3/plc/phy_isr.c", "halphy/hw3/plc/phy_mix.c", "halphy/hw3/plc/phy_nf.c", "halphy/hw3/plc/phy_phase.c", "halphy/hw3/plc/phy_pm.c", "halphy/hw3/plc/phy_ppm.c", "halphy/hw3/plc/phy_status.c", "halphy/hw3/plc/phy_temperature.c", "halphy/hw3/plc/phy_tmap.c", ] } include_dirs = [ "//", "//cli/communicator", "//common/os_shim/arm/inc", "//common/os_shim/inc", "//driver/inc", "//export/inc/socket", "//ftm/inc", "//inc", "//inc/cli", "//inc/cli/plc", "//inc/compiler/gcc", "//inc/crypto", "//inc/dbglog", "//inc/driver", "//inc/io_lib", "//inc/io_lib/", "//inc/ipc", "//inc/os_shim", "//inc/os_shim/", "//inc/pib", "//inc/pkt", "//inc/plc_lib", "//inc/socket", "//inc/swc_lib", "//inc/uart", "//inc/utils", "//os/freertos/src/portable/RISCV", "//plc/common/bwm/inc", "//plc/common/inc", "//plc/common/plc_cli/include", "//plc/common/plc_dbglog/include", "//plc/cvg/bwm/inc", "//plc/cvg/common/inc", "//plc/cvg/min_clct/inc", "//plc/cvg/nwm/inc", "//plc/cvg/prm/inc", "//plc/cvg/rt/inc", "//plc/cvg/security/inc", "//plc/halmac/inc", "//plc/halmac/test/inc", "//plc/halphy/inc", "//plc/halphy/test/inc", "//plc/htbus/inc", "//plc/inc", "//plc/inc/mme", "//plc/os_shim/arm/inc", "//plc/os_shim/inc", ] if (target == "kunlun3") { include_dirs += [ "//driver/src/hw3/inc", "//plc/halmac/hw3/inc", "//plc/halmac/hw3/inc/desc", "//plc/halmac/hw3/inc/reg", "//plc/halmac/hw3/plc_inc", "//plc/halmac/hw3/plc_inc/desc", "//plc/halmac/hw3/rf_inc", "//plc/halmac/hw3/rf_inc/desc", "//plc/halmac/hw_common_v1/inc", "//plc/halphy/hw_common_v1/inc", "//plc/halphy/hw3/inc", "//plc/halphy/hw3/plc/chip/inc", "//plc/halphy/hw3/plc/inc", "//plc/halphy/hw3/rf/inc", "//plc/halphy/test/hw3/inc", ] } }