1# General configuration options
2
3# Copyright (c) 2017 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menu "POSIX (native) Options"
7	depends on ARCH_POSIX
8
9config ARCH
10	default "posix"
11
12config ARCH_POSIX_RECOMMENDED_STACK_SIZE
13	int
14	default 44 if 64BIT && STACK_SENTINEL
15	default 40 if 64BIT
16	default 28 if STACK_SENTINEL
17	default 24
18	help
19	  In bytes, stack size for Zephyr threads meant only for the POSIX
20	  architecture.
21	  (In this architecture only part of the thread status is kept in the Zephyr
22	  thread stack, the real stack is the native underlying pthread stack.
23	  Therefore the allocated stack can be limited to this size)
24
25config ARCH_POSIX_LIBFUZZER
26	bool "Build fuzz test target"
27	help
28	  Build as an LLVM libfuzzer target. Requires
29	  support from the toolchain (currently only clang works, and
30	  only on native_{posix,sim}[//64]), and should normally be used in
31	  concert with some of CONFIG_ASAN/UBSAN/MSAN for validation.
32	  The application needs to implement the
33	  LLVMFuzzerTestOneInput() entry point, which runs in the host
34	  environment "outside" the OS.  See Zephyr documentation and
35	  sample and https://llvm.org/docs/LibFuzzer.html for more
36	  information.
37
38config ARCH_POSIX_TRAP_ON_FATAL
39	bool "Raise a SIGTRAP on fatal error"
40	help
41	  Raise a SIGTRAP signal on fatal error before exiting.
42	  This automatically suspends the target if a debugger is attached.
43
44endmenu
45