Skip to content

Conversation

@MirkoCovizzi
Copy link
Contributor

@MirkoCovizzi MirkoCovizzi commented Apr 2, 2024

This commit updates the cmake configuration file to
recognize the new SOC names defined with HWMv2.

@MirkoCovizzi MirkoCovizzi self-assigned this Apr 2, 2024
@MirkoCovizzi MirkoCovizzi changed the title nrf_modem: update for upmerge nrf_modem: fix binary linking for upmerge Apr 2, 2024
@MirkoCovizzi MirkoCovizzi added the DNM Do not merge label Apr 2, 2024
@MirkoCovizzi MirkoCovizzi force-pushed the upmerge branch 2 times, most recently from 04477f7 to 4b2642d Compare April 2, 2024 11:06
@MirkoCovizzi MirkoCovizzi changed the title nrf_modem: fix binary linking for upmerge nrf_modem: fix binary linking for upmerge 25-03-2024 Apr 2, 2024
@MirkoCovizzi MirkoCovizzi requested a review from anhmolt April 2, 2024 11:21
@MirkoCovizzi MirkoCovizzi removed the DNM Do not merge label Apr 2, 2024
@MirkoCovizzi MirkoCovizzi force-pushed the upmerge branch 2 times, most recently from b6bbb84 to 0f38d84 Compare April 2, 2024 14:32

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$")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(NOT arch_soc_dir MATCHES "^nRF9160$")
if(${CONFIG_SOC} MATCHES "^nrf91[356]1$")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think we can completely remove the if, because the substitution happens only if the regex matches.

This commit updates the cmake configuration file to
recognize the new SOC names defined with HWMv2.

Signed-off-by: Mirko Covizzi <[email protected]>
Copy link
Contributor

@eivindj-nordic eivindj-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, though it has to be linked or cherry-picked in the upmerge.

@MirkoCovizzi
Copy link
Contributor Author

Looks good to me, though it has to be linked or cherry-picked in the upmerge.

I'm aware, I've already notified the upmerge maintainer.

@jciupis jciupis mentioned this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants