Skip to content

Conversation

magp-nordic
Copy link
Contributor

@magp-nordic magp-nordic commented Oct 1, 2025

Align sdk-zephyr to having external BSP outside of nrfx directory.

Upstream PR #: 96842

Comment on lines +33 to +37
zephyr_compile_definitions(NRFX_BSP_NRF_PATH="mdk/nrf.h")
zephyr_compile_definitions(NRFX_BSP_ERRATAS_PATH="mdk/nrf_erratas.h")
zephyr_compile_definitions(NRFX_BSP_SOC_IRQS_PATH="soc/nrfx_irqs.h")
zephyr_compile_definitions(NRFX_BSP_NRFX_EXT_PATH="nrfx_ext.h")
zephyr_compile_definitions(NRFX_BSP_NRFX_COREDEP_PATH="soc/nrfx_coredep_defs.h")
Copy link
Contributor

Choose a reason for hiding this comment

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

This implicitly removes need for those compile definitions in BSP dispatcher.
Is that by design?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@masz-nordic yes, it is. Chosen BSP dir is added to include path anyway above, and paths containing BSP are no longer valid since they can be placed anywhere in NCS, even in directories that are not in include path (for example, when I tested it with #3336 I set the BSP external path to modules/hal/bspexternal and building failed on those lines before I removed CONFIG_SOC_NORDIC_BSP_NAME).

Copy link
Contributor

Choose a reason for hiding this comment

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

Then a PR removing compile definitions usage in nrfx should be created too.

Align sdk-zephyr to having external BSP outside of nrfx directory.

Upstream PR #: 96842

Signed-off-by: Magdalena Pastula <[email protected]>
@magp-nordic magp-nordic force-pushed the NRFX-8370-new-bsps-outside-of-hal-nordic branch from 7982f5d to f290871 Compare October 13, 2025 12:14
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.

2 participants