zephyr/boards/Kconfig
Daniel Leung 0ffcfa9633 timing: introduce timing functions as a generic feature
Add timing functions and APIs.  This is now used with some of the tests
we have for performance and metrics and will be used whereever timing
informations are needed, for example for tracing, profiling and other
operations where timing info is critical.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-09-05 13:28:38 -05:00

56 lines
1.5 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.
config QEMU_ICOUNT_SHIFT
int "QEMU icount shift value"
depends on QEMU_ICOUNT
help
The virtual CPU will execute one instruction every 2^N nanoseconds
of virtual time, where N is the value provided here.
# There might not be any board options, hence the optional source
osource "$(BOARD_DIR)/Kconfig"
endmenu
config BOARD_HAS_TIMING_FUNCTIONS
bool
help
Should be selected if board provides custom method for retrieving
timestamps and cycle count.