Skip to content

Commit 561392d

Browse files
committed
modules: silabs: Link against RAIL Multiprotocol blobs when enabled
Enables RAIL Multiprotocol support by linking against the multiprotocol version of the RAIL blob when `CONFIG_SOC_GECKO_RAIL_MULTIPROTOCOL` is enabled. Signed-off-by: James Smith <[email protected]>
1 parent e914c1b commit 561392d

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

modules/hal_silabs/gecko/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ if(${CONFIG_SOC_GECKO_HAS_RADIO})
4949
zephyr_library_sources(${RADIO_DIR}/rail_lib/plugin/pa-conversions/pa_curves_efr32.c)
5050

5151
# prebuilt libs
52-
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_efr32xg${GECKO_SERIES_NUMBER}_gcc_release.a)
52+
if(CONFIG_SOC_GECKO_RAIL_MULTIPROTOCOL)
53+
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_multiprotocol_efr32xg${GECKO_SERIES_NUMBER}_gcc_release.a)
54+
else()
55+
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_efr32xg${GECKO_SERIES_NUMBER}_gcc_release.a)
56+
endif()
5357

5458
if(CONFIG_SOC_GECKO_CUSTOM_RADIO_PHY)
5559
zephyr_include_directories(

modules/hal_silabs/simplicity_sdk/CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,20 @@ if(CONFIG_SOC_GECKO_HAS_RADIO)
103103

104104
if(CONFIG_SILABS_DEVICE_IS_MODULE)
105105
# RAIL lib and config for modules
106-
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_module_efr32xg${SILABS_DEVICE_FAMILY_NUMBER}_gcc_release.a)
106+
if(CONFIG_SOC_GECKO_RAIL_MULTIPROTOCOL)
107+
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_multiprotocol_module_efr32xg${SILABS_DEVICE_FAMILY_NUMBER}_gcc_release.a)
108+
else()
109+
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_module_efr32xg${SILABS_DEVICE_FAMILY_NUMBER}_gcc_release.a)
110+
endif()
111+
107112
add_prebuilt_library(librail_config platform/radio/rail_lib/autogen/librail_release/librail_config_${CONFIG_SOC}_gcc.a)
108113
else()
109114
# generic RAIL lib for SoCs
110-
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_efr32xg${SILABS_DEVICE_FAMILY_NUMBER}_gcc_release.a)
115+
if(CONFIG_SOC_GECKO_RAIL_MULTIPROTOCOL)
116+
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_multiprotocol_efr32xg${SILABS_DEVICE_FAMILY_NUMBER}_gcc_release.a)
117+
else()
118+
add_prebuilt_library(librail platform/radio/rail_lib/autogen/librail_release/librail_efr32xg${SILABS_DEVICE_FAMILY_NUMBER}_gcc_release.a)
119+
endif()
111120
endif()
112121

113122
zephyr_include_directories_ifdef(CONFIG_SOC_GECKO_CUSTOM_RADIO_PHY

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ manifest:
235235
groups:
236236
- hal
237237
- name: hal_silabs
238-
revision: 190a144a16bed9a938a94543ed5bbc70c0552e0f
238+
revision: pull/126/head
239239
path: modules/hal/silabs
240240
groups:
241241
- hal

0 commit comments

Comments
 (0)