zephyr/boards/native/nrf_bsim/Kconfig.defconfig
Johan Hedberg 8b02141ca7 Bluetooth: Controller: Replace BT_CTLR with HAS_BT_CTLR
Deprecate BT_CTLR, and add a new HAS_BT_CTLR as a virtual option which
specific users (like BT_LL_SW_SPLIT) select. This also means that we can
remove all places that were forcefully enabling the BT_CTLR option, and
instead we now depend on devicetree to get some local LL HCI driver
enabled which in turn also enables the HAS_BT_CTLR option.

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2024-12-03 10:16:44 +01:00

83 lines
2.3 KiB
Text

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 Nordic Semiconductor ASA
if SOC_SERIES_BSIM_NRFXX
config BUILD_OUTPUT_BIN
default n
config BUILD_OUTPUT_EXE
# When the IPC service is used, the net core image requires the application core image, as it needs
# access to its IPC buffer. Without it, the executable cannot be built.
default y if !(BOARD_NRF5340BSIM_NRF5340_CPUNET && IPC_SERVICE && (NATIVE_SIMULATOR_EXTRA_IMAGE_PATHS = ""))
config OUTPUT_PRINT_MEMORY_USAGE
default n
config NATIVE_SIMULATOR_NUMBER_MCUS
default 2 if BOARD_NRF5340BSIM_NRF5340_CPUNET || BOARD_NRF5340BSIM_NRF5340_CPUAPP
default 1
config NATIVE_SIMULATOR_MCU_N
default 1 if BOARD_NRF5340BSIM_NRF5340_CPUNET
default 0
config NATIVE_SIMULATOR_AUTOSTART_MCU
default y if BOARD_NRF5340BSIM_NRF5340_CPUNET
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
default 1 if SOC_SERIES_BSIM_NRF53X
default 0
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 1000000 if NRF_GRTC_TIMER
default 32768
config SYS_CLOCK_TICKS_PER_SEC
default 128 if !TICKLESS_KERNEL
default 10000 if NRF_GRTC_TIMER
default 32768
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 4096 if BT_HCI_IPC
default 4096 if NRF_802154_SER_HOST && BOARD_NRF5340BSIM_NRF5340_CPUAPP
default 4096 if NRF_802154_SER_RADIO && BOARD_NRF5340BSIM_NRF5340_CPUNET
if BOARD_NRF5340BSIM_NRF5340_CPUAPP
config IPC_SERVICE_BACKEND_RPMSG_SHMEM_RESET
default y if IPC_SERVICE_BACKEND_RPMSG
config BT_HCI_IPC
default y if BT
endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP
if BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM
# BT relies on PSA Crypto API to perform crypto operations. On this platform
# this is implemented by Mbed TLS which requires a (possibly true) random
# number generator to initialize properly. We enable ENTROPY_GENERATOR here
# instead of manually adding it to all samples/tests configuration files because
# it looks more compact and easier to maintain.
config ENTROPY_GENERATOR
bool
default y if BT
endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP || BOARD_NRF52_BSIM
# The 15.4 driver Tx encryption is currently not functional with this
# simulated board => we disable it by default. With this Openthread will normally
# default to encrypt packets on its own.
config NRF_802154_ENCRYPTION
default n
if CONSOLE
config POSIX_ARCH_CONSOLE
default y
endif # CONSOLE
endif # SOC_SERIES_BSIM_NRFXX