2019-11-01 20:45:29 +08:00
|
|
|
# General configuration options
|
2017-10-03 22:31:55 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2017 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menu "POSIX (native) Options"
|
|
|
|
depends on ARCH_POSIX
|
|
|
|
|
|
|
|
config ARCH
|
|
|
|
default "posix"
|
|
|
|
|
2018-01-26 22:46:47 +08:00
|
|
|
config ARCH_POSIX_RECOMMENDED_STACK_SIZE
|
|
|
|
int
|
2022-09-20 18:19:44 +08:00
|
|
|
default 44 if 64BIT && STACK_SENTINEL
|
2019-08-24 02:54:42 +08:00
|
|
|
default 40 if 64BIT
|
2022-09-20 18:19:44 +08:00
|
|
|
default 28 if STACK_SENTINEL
|
2018-01-26 22:46:47 +08:00
|
|
|
default 24
|
|
|
|
help
|
|
|
|
In bytes, stack size for Zephyr threads meant only for the POSIX
|
|
|
|
architecture.
|
|
|
|
(In this architecture only part of the thread status is kept in the Zephyr
|
|
|
|
thread stack, the real stack is the native underlying pthread stack.
|
|
|
|
Therefore the allocated stack can be limited to this size)
|
2017-10-03 22:31:55 +08:00
|
|
|
|
2024-04-22 16:35:52 +08:00
|
|
|
config ARCH_POSIX_LIBFUZZER
|
2022-08-24 03:24:14 +08:00
|
|
|
bool "Build fuzz test target"
|
|
|
|
help
|
2024-04-22 16:35:52 +08:00
|
|
|
Build as an LLVM libfuzzer target. Requires
|
2022-08-24 03:24:14 +08:00
|
|
|
support from the toolchain (currently only clang works, and
|
2024-04-12 21:08:40 +08:00
|
|
|
only on native_{posix,sim}[//64]), and should normally be used in
|
2022-08-24 03:24:14 +08:00
|
|
|
concert with some of CONFIG_ASAN/UBSAN/MSAN for validation.
|
|
|
|
The application needs to implement the
|
|
|
|
LLVMFuzzerTestOneInput() entry point, which runs in the host
|
|
|
|
environment "outside" the OS. See Zephyr documentation and
|
|
|
|
sample and https://llvm.org/docs/LibFuzzer.html for more
|
|
|
|
information.
|
|
|
|
|
2023-07-12 23:26:25 +08:00
|
|
|
config ARCH_POSIX_TRAP_ON_FATAL
|
|
|
|
bool "Raise a SIGTRAP on fatal error"
|
|
|
|
help
|
|
|
|
Raise a SIGTRAP signal on fatal error before exiting.
|
|
|
|
This automatically suspends the target if a debugger is attached.
|
|
|
|
|
2017-10-03 22:31:55 +08:00
|
|
|
endmenu
|