Skip to content

Commit

Permalink
nrf_modem: update for upmerge
Browse files Browse the repository at this point in the history
todo message

Signed-off-by: Mirko Covizzi <[email protected]>
  • Loading branch information
MirkoCovizzi committed Apr 2, 2024
1 parent d9d31fd commit 04477f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nrf_modem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

if(CONFIG_NRF_MODEM_LINK_BINARY)

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

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

if(CONFIG_FPU)
Expand Down

0 comments on commit 04477f7

Please sign in to comment.