Skip to content

Commit

Permalink
added changes in efr32_sdk.gni for wifi sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bhmanda-silabs committed Aug 9, 2023
1 parent 06ab053 commit acd0ce1
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import("silabs_board.gni")
if (use_rs9116) {
wifi_sapi_root = "${chip_root}/third_party/silabs/wiseconnect-wifi-bt-sdk"
} else {
wifi_sapi_root = "${chip_root}/third_party/silabs/wisemcu-wifi-bt-sdk"
# wifi_sapi_root = "${chip_root}/third_party/silabs/wisemcu-wifi-bt-sdk"
wifi_sdk_root = "${chip_root}/third_party/silabs/wifi_sdk"
}

declare_args() {
Expand Down Expand Up @@ -181,6 +182,23 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/driver/debug/inc",
"${silabs_gen_folder}/config",
"${silabs_gen_folder}/autogen",
# si91x component
"${wifi_sdk_root}/components/si91x/inc",
"${wifi_sdk_root}/components/si91x/memory",
"${wifi_sdk_root}/components/si91x/sl_net/inc",
# wifi component
"${wifi_sdk_root}/components/protocol/wifi/inc",

# si91x_support component
"${wifi_sdk_root}/components/si91x_support/inc",

# wifi_resources component
"${wifi_sdk_root}/resources/certificates",
"${wifi_sdk_root}/resources/defaults",
"${wifi_sdk_root}/resources/other",

# network_manager component
"${wifi_sdk_root}/components/service/network_manager/inc",

# Headers needed for Init no function will be called if OT is not used
"${sl_ot_efr32_root}",
Expand All @@ -194,7 +212,7 @@ template("efr32_sdk") {
}

if (chip_enable_ble_rs911x) {
_include_dirs += [ "${wifi_sapi_root}/sapi/include" ]
_include_dirs += [ "${wifi_sdk_root}/components/si91x/ble/inc" ]
_include_dirs += [ "${chip_root}/src/platform/silabs/rs911x" ]
}

Expand Down Expand Up @@ -732,10 +750,18 @@ template("efr32_sdk") {

if (chip_enable_ble_rs911x) {
sources += [
"${wifi_sapi_root}/sapi/bluetooth/rsi_ble_gap_apis.c",
"${wifi_sapi_root}/sapi/bluetooth/rsi_ble_gatt_apis.c",
"${wifi_sapi_root}/sapi/bluetooth/rsi_bt_common_apis.c",
"${wifi_sapi_root}/sapi/driver/rsi_bt_ble.c",
# "${wifi_sapi_root}/sapi/bluetooth/rsi_ble_gap_apis.c",
# "${wifi_sapi_root}/sapi/bluetooth/rsi_ble_gatt_apis.c",
# "${wifi_sapi_root}/sapi/bluetooth/rsi_bt_common_apis.c",
# "${wifi_sapi_root}/sapi/driver/rsi_bt_ble.c",
# ble component
"${wifi_sdk_root}/components/si91x/ble/src/rsi_ble_gap_apis.c",
"${wifi_sdk_root}/components/si91x/ble/src/rsi_ble_gatt_apis.c",
"${wifi_sdk_root}/components/si91x/ble/src/rsi_bt_common_apis.c",
"${wifi_sdk_root}/components/si91x/ble/src/rsi_bt_ble.c",
"${wifi_sdk_root}/components/si91x/ble/src/rsi_common_apis.c",
"${wifi_sdk_root}/components/si91x/ble/src/rsi_utils.c",
"${wifi_sdk_root}/components/si91x/ble/src/sl_si91x_ble.c",
]
} else {
sources += [
Expand Down

0 comments on commit acd0ce1

Please sign in to comment.