| # Copyright (c) 2023 Nordic Semiconductor ASA |
| # Copyright (c) 2025 GARDENA GmbH |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| config BOARD_NATIVE_SIM |
| bool |
| select POSIX_ARCH_CONSOLE |
| select NATIVE_LIBRARY |
| select NATIVE_SIM_TIMER |
| select 64BIT if BOARD_NATIVE_SIM_NATIVE_64 |
| help |
| Native simulator (Single Core) |
| Will produce a console Linux process which can be executed natively. |
| |
| if BOARD_NATIVE_SIM |
| |
| comment "Native Simulator (Single Core) options" |
| |
| 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. |
| |
| config NATIVE_POSIX_SLOWDOWN_TO_REAL_TIME |
| bool "Slow down execution to real time (native_posix compat)" |
| select NATIVE_SIM_SLOWDOWN_TO_REAL_TIME |
| select DEPRECATED |
| help |
| Transitional option which allows applications which targeted native_posix |
| to set the correct native_sim option (CONFIG_NATIVE_SIM_SLOWDOWN_TO_REAL_TIME) |
| |
| config NATIVE_SIM_REBOOT |
| bool "Reboot support" |
| depends on REBOOT |
| help |
| Enables the reboot implementation for the native sim executable. |
| |
| source "boards/native/common/sdl/Kconfig" |
| source "boards/native/common/extra_args/Kconfig" |
| |
| endif # BOARD_NATIVE_SIM |