This option existed only to make the transition from native_posix to native_sim easier. As native_posix is going to be removed in v4.2 we deprecate this option now, so it will also be removed. We also switch this option to default to false already now. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
55 lines
2 KiB
Text
55 lines
2 KiB
Text
# Copyright (c) 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config BOARD_NATIVE_SIM
|
|
bool
|
|
select POSIX_ARCH_CONSOLE
|
|
select NATIVE_LIBRARY
|
|
select NATIVE_POSIX_TIMER
|
|
select 64BIT if BOARD_NATIVE_SIM_NATIVE_64
|
|
imply BOARD_NATIVE_POSIX if NATIVE_SIM_NATIVE_POSIX_COMPAT
|
|
help
|
|
Native simulator (Single Core)
|
|
Will produce a console Linux process which can be executed natively.
|
|
|
|
if BOARD_NATIVE_SIM
|
|
|
|
comment "Native Simular (Single Core) options"
|
|
|
|
config NATIVE_SIM_NATIVE_POSIX_COMPAT
|
|
bool "Pretend to be a native_posix board"
|
|
select DEPRECATED
|
|
help
|
|
When this option is set the native_sim board will pretend to be
|
|
a native_posix board from kconfig point of view, to allow using it directly with
|
|
code which was meant for the native_posix board and checks for the macro
|
|
CONFIG_BOARD_NATIVE_POSIX, or requires other kconfig options which depend on it.
|
|
This option is deprecated and will be removed in Zephyr v4.3
|
|
|
|
config NATIVE_SIM_SLOWDOWN_TO_REAL_TIME
|
|
bool "Slow down execution to real time"
|
|
default n if ARCH_POSIX_LIBFUZZER
|
|
default y if BT_USERCHAN || !TEST
|
|
help
|
|
When selected the execution of the process will be slowed down to real time.
|
|
(if there is a lot of load it may be slower than real time)
|
|
If deselected, the process will run as fast as possible.
|
|
Note that this only decouples simulated time from real/wall time. In either
|
|
case the zephyr kernel and application cannot tell the difference unless they
|
|
interact with some other driver/device which runs at real time.
|
|
|
|
# This option definition exists only to enable NATIVE_SIM_NATIVE_POSIX_COMPAT
|
|
config BOARD_NATIVE_POSIX
|
|
bool
|
|
|
|
config NATIVE_POSIX_SLOWDOWN_TO_REAL_TIME
|
|
bool "Slow down execution to real time (native_posix compat)"
|
|
select NATIVE_SIM_SLOWDOWN_TO_REAL_TIME
|
|
help
|
|
Transitional option which allows applications which targeted native_posix
|
|
to set the correct native_sim option (CONFIG_NATIVE_SIM_SLOWDOWN_TO_REAL_TIME)
|
|
|
|
source "boards/native/common/sdl/Kconfig"
|
|
source "boards/native/common/extra_args/Kconfig"
|
|
|
|
endif # BOARD_NATIVE_SIM
|