Skip to content

Commit

Permalink
update sdk build gn
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs committed Sep 28, 2022
1 parent d9269b8 commit 5dab799
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion third_party/silabs/efr32_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ template("efr32_sdk") {
_include_dirs = [
"${efr32_sdk_root}",
"${efr32_sdk_root}/hardware/kit/common/bsp",
"${efr32_sdk_root}/app/common/util/app_assert/",
"${efr32_sdk_root}/hardware/board/inc",
"${efr32_sdk_root}/hardware/driver/memlcd/inc",
"${efr32_sdk_root}/hardware/driver/memlcd/src/ls013b7dh03",
Expand Down Expand Up @@ -134,6 +135,7 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/base/hal/plugin/psstore",
"${efr32_sdk_root}/platform/base/hal/plugin/antenna",
"${efr32_sdk_root}/protocol/bluetooth/inc/",
"${efr32_sdk_root}/app/bluetooth/common/in_place_ota_dfu/",
"${efr32_sdk_root}/util/plugin/plugin-common/fem-control",
"${efr32_sdk_root}/util/silicon_labs/silabs_core/graphics",
"${efr32_sdk_root}/util/silicon_labs/silabs_core/memory_manager",
Expand Down Expand Up @@ -385,6 +387,7 @@ template("efr32_sdk") {
source_set(sdk_target_name) {
sources = [
"${chip_root}/third_party/mbedtls/repo/include/mbedtls/platform.h",
"${efr32_sdk_root}/app/bluetooth/common/in_place_ota_dfu/sl_bt_in_place_ota_dfu.c",
"${efr32_sdk_root}/hardware/board/src/sl_board_control_gpio.c",
"${efr32_sdk_root}/hardware/board/src/sl_board_init.c",
"${efr32_sdk_root}/platform/CMSIS/RTOS2/Source/os_systick.c",
Expand Down Expand Up @@ -554,6 +557,7 @@ template("efr32_sdk") {
"${efr32_sdk_root}/util/third_party/freertos/kernel/stream_buffer.c",
"${efr32_sdk_root}/util/third_party/freertos/kernel/tasks.c",
"${efr32_sdk_root}/util/third_party/freertos/kernel/timers.c",
"${sdk_support_root}/matter/efr32/${silabs_family}/${silabs_board}/autogen/gatt_db.c",
"${sdk_support_root}/matter/efr32/${silabs_family}/${silabs_board}/autogen/sl_bluetooth.c",
"${sdk_support_root}/matter/efr32/${silabs_family}/${silabs_board}/autogen/sl_board_default_init.c",
"${sdk_support_root}/matter/efr32/${silabs_family}/${silabs_board}/autogen/sl_device_init_clocks.c",
Expand Down Expand Up @@ -641,6 +645,7 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_emu_s1.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_hfxo_s1.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_lfxo_s1.c",
"${efr32_sdk_root}/protocol/bluetooth/src/sl_apploader_util_s1.c",
"${efr32_sdk_root}/util/third_party/freertos/kernel/portable/GCC/ARM_CM4F/port.c",
]
} else if (silabs_family == "efr32mg21") {
Expand Down Expand Up @@ -688,11 +693,11 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/Device/SiliconLabs/EFR32MG24/Source/system_efr32mg24.c",
"${efr32_sdk_root}/platform/radio/rail_lib/plugin/pa-conversions/pa_curves_efr32.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_dcdc_s2.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_dpll_s2.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_emu_s2.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_hfxo_s2.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_lfxo_s2.c",
"${efr32_sdk_root}/platform/service/hfxo_manager/src/sl_hfxo_manager_hal_s2.c",
"${efr32_sdk_root}/protocol/bluetooth/src/sl_apploader_util_s2.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_attestation.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_cipher.c",
Expand Down Expand Up @@ -732,6 +737,7 @@ template("efr32_sdk") {
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_hfxo_mgm24.c",
"${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_lfxo_s2.c",
"${efr32_sdk_root}/platform/service/hfxo_manager/src/sl_hfxo_manager_hal_s2.c",
"${efr32_sdk_root}/protocol/bluetooth/src/sl_apploader_util_s2.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_attestation.c",
"${efr32_sdk_root}/util/third_party/crypto/sl_component/se_manager/src/sl_se_manager_cipher.c",
Expand Down Expand Up @@ -763,6 +769,11 @@ template("efr32_sdk") {
]
}

if (silabs_board == "BRD4186A" || silabs_board == "BRD4186C" ||
silabs_board == "BRD4187A" || silabs_board == "BRD4187C") {
sources += [ "${efr32_sdk_root}/platform/service/device_init/src/sl_device_init_dpll_s2.c" ]
}

public_deps = [
":efr32_mbedtls_config",
"${segger_rtt_root}:segger_rtt",
Expand Down

0 comments on commit 5dab799

Please sign in to comment.