Skip to content

Commit

Permalink
bluetooth: Use different arch directory per bsim platform
Browse files Browse the repository at this point in the history
A seperate arch directory is defined per bsim platform to
be able to use different plarforms in the same build process

Signed-off-by: Ilhan Ates <[email protected]>
  • Loading branch information
ilhanates authored and nordicjm committed Aug 29, 2024
1 parent 9e4d3e4 commit 395a929
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ function(nrfxlib_calculate_lib_path lib_path)
elseif(DEFINED CONFIG_SOC_NRF54H20_CPURAD)
set(arch_soc_dir ${arch_soc_dir}_cpurad)
endif()
elseif(CONFIG_SOC_SERIES_BSIM_NRFXX)
set(arch_soc_dir "bsim_nrfxx")
elseif(CONFIG_SOC_SERIES_BSIM_NRF52X)
set(arch_soc_dir "bsim_nrf52")
elseif(CONFIG_SOC_SERIES_BSIM_NRF53X)
set(arch_soc_dir "bsim_nrf53")
elseif(CONFIG_SOC_SERIES_BSIM_NRF54LX)
set(arch_soc_dir "bsim_nrf54l")
else()
# Add Arch type
assert(GCC_M_CPU "GCC_M_CPU must be set to find correct lib.")
Expand Down
6 changes: 4 additions & 2 deletions mpsl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ if MPSL_BUILD_TYPE_LIB
config MPSL_LIB_DIR
string
default "nrf52" if SOC_SERIES_NRF52X
default "nrf53" if SOC_COMPATIBLE_NRF5340_CPUNET
default "nrf53" if SOC_NRF5340_CPUNET
default "nrf54h" if SOC_NRF54H20_CPURAD
default "nrf54l_ns" if SOC_SERIES_NRF54LX && TRUSTED_EXECUTION_NONSECURE
default "nrf54l" if SOC_SERIES_NRF54LX && !TRUSTED_EXECUTION_NONSECURE
default "bsim_nrfxx" if SOC_SERIES_BSIM_NRFXX
default "bsim_nrf52" if SOC_SERIES_BSIM_NRF52X
default "bsim_nrf53" if SOC_SERIES_BSIM_NRF53X
default "bsim_nrf54l" if SOC_SERIES_BSIM_NRF54LX
help
Hidden helper option to calculate the library path

Expand Down

0 comments on commit 395a929

Please sign in to comment.