boards nrf*bsim: Move common kconfig selection to common place

Reduce a bit the amount of boilerplate by placing common
Kconfig selections in common options.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-01-05 13:50:57 +01:00 committed by Carles Cufí
parent 6fee105b1d
commit 0aa0bc9af0
2 changed files with 9 additions and 22 deletions

View file

@ -17,19 +17,25 @@ endif # SOC_SERIES_BSIM_NRFXX
config SOC_SERIES_BSIM_NRFXX
bool
depends on SOC_POSIX
select NATIVE_LIBRARY
select SOC_COMPATIBLE_NRF
select HAS_NRFX
select HAS_NORDIC_DRIVERS
select PINCTRL_DYNAMIC if PINCTRL
help
Any NRF simulated SOC with BabbleSim, based on the POSIX arch
config SOC_SERIES_BSIM_NRF52X
bool
depends on SOC_SERIES_BSIM_NRFXX
select SOC_SERIES_BSIM_NRFXX
select SOC_COMPATIBLE_NRF52X
help
Any NRF52 simulated SOC with BabbleSim, based on the POSIX arch
config SOC_SERIES_BSIM_NRF53X
bool
depends on SOC_SERIES_BSIM_NRFXX
select SOC_SERIES_BSIM_NRFXX
select SOC_COMPATIBLE_NRF53X
help
Any NRF53 simulated SOC with BabbleSim, based on the POSIX arch

View file

@ -2,49 +2,30 @@
config BOARD_NRF52_BSIM
bool "NRF52 simulation model"
select SOC_SERIES_BSIM_NRFXX
select SOC_SERIES_BSIM_NRF52X
select SOC_COMPATIBLE_NRF
select SOC_COMPATIBLE_NRF52X
select SOC_COMPATIBLE_NRF52833
select NRF_RTC_TIMER
select CLOCK_CONTROL
select HAS_NRFX
select HAS_NORDIC_DRIVERS
select NATIVE_LIBRARY
select PINCTRL_DYNAMIC if PINCTRL
help
Will produce a console Linux process which can be executed natively.
It needs the BabbleSim simulator both in compile time and to execute
config BOARD_NRF5340BSIM_NRF5340_CPUNET
bool "Simulated NRF53 Network core"
select SOC_SERIES_BSIM_NRFXX
select SOC_SERIES_BSIM_NRF53X
select SOC_COMPATIBLE_NRF
select SOC_COMPATIBLE_NRF53X
select SOC_COMPATIBLE_NRF5340_CPUNET
select NRF_RTC_TIMER
select CLOCK_CONTROL
select HAS_NRFX
select HAS_NORDIC_DRIVERS
select NATIVE_LIBRARY
help
Will produce a console Linux process which can be executed natively.
It needs the BabbleSim simulator both in compile time and to execute
config BOARD_NRF5340BSIM_NRF5340_CPUAPP
bool "Simulated NRF53 Application core"
select SOC_SERIES_BSIM_NRFXX
select SOC_SERIES_BSIM_NRF53X
select SOC_COMPATIBLE_NRF
select SOC_COMPATIBLE_NRF53X
select SOC_COMPATIBLE_NRF5340_CPUAPP
select NRF_RTC_TIMER
select CLOCK_CONTROL
select HAS_NRFX
select HAS_NORDIC_DRIVERS
select NATIVE_LIBRARY
help
Will produce a console Linux process which can be executed natively.
It needs the BabbleSim simulator both in compile time and to execute