mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-11 23:58:36 +00:00
Bluetooth interacts with real-world hardware and thus requires the QEMU target to follow wall time, and not have a free running timer that is much faster than actual wall time. Diable the QEMU icount mechanism when Bluetooth is enabled. Fixes #26242 Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config BOARD_DEPRECATED_RELEASE
|
|
string
|
|
help
|
|
This hidden option is set in the board configuration and indicates
|
|
the Zephyr release that the board configuration will be removed.
|
|
When set, any build for that board will generate a clearly visible
|
|
deprecation warning.
|
|
|
|
config QEMU_TARGET
|
|
bool
|
|
help
|
|
Mark all QEMU targets with this variable for checking whether we are
|
|
running in an emulated environment.
|
|
|
|
# Note: $BOARD_DIR might be a glob pattern
|
|
|
|
choice
|
|
prompt "Board Selection"
|
|
|
|
source "$(BOARD_DIR)/Kconfig.board"
|
|
|
|
endchoice
|
|
|
|
# Parse shields references
|
|
# Don't do it as a menuconfig, as shield selection is a CMake feature.
|
|
rsource "shields/*/Kconfig.shield"
|
|
|
|
menu "Board Options"
|
|
config QEMU_ICOUNT
|
|
bool "QEMU icount mode"
|
|
depends on QEMU_TARGET
|
|
default y if !NETWORKING && !BT
|
|
help
|
|
Enable QEMU virtual instruction counter. The virtual cpu will
|
|
execute one instruction every 2^N ns of virtual time. This will
|
|
give deterministic execution times from the guest point of view.
|
|
|
|
# There might not be any board options, hence the optional source
|
|
osource "$(BOARD_DIR)/Kconfig"
|
|
endmenu
|