Skip to content

Commit 4b2642d

Browse files
committed
nrf_modem: update binary linking to support HWMv2
This commit updates the cmake configuration file to recognize the new SOC names defined with HWMv2. Signed-off-by: Mirko Covizzi <[email protected]>
1 parent d9d31fd commit 4b2642d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nrf_modem/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
if(CONFIG_NRF_MODEM_LINK_BINARY)
88

9-
string(REGEX REPLACE "_[a-zA-Z][a-zA-Z][a-zA-Z][a-zA-Z]$" "" arch_soc_dir ${CONFIG_SOC})
9+
string(REPLACE "nrf" "nRF" arch_soc_dir ${CONFIG_SOC})
1010

11-
if(NOT arch_soc_dir MATCHES "nRF9160")
12-
string(REGEX REPLACE "nRF91[0-9]*" "nRF9120" arch_soc_dir ${arch_soc_dir})
11+
if(NOT arch_soc_dir MATCHES "^nRF9160$" AND NOT arch_soc_dir MATCHES "^nRF9120$")
12+
message(FATAL_ERROR "Unknown SOC. Expected ('nRF9160'|'nRF9120') got '${CONFIG_SOC}'.")
1313
endif()
1414

1515
if(CONFIG_FPU)

0 commit comments

Comments
 (0)