2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-11-23 21:28:26 +08:00
|
|
|
if BOARD_NATIVE_POSIX
|
|
|
|
|
|
|
|
config BUILD_OUTPUT_BIN
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BUILD_OUTPUT_EXE
|
|
|
|
default y
|
|
|
|
|
2017-12-28 20:28:24 +08:00
|
|
|
config OUTPUT_PRINT_MEMORY_USAGE
|
|
|
|
default n
|
|
|
|
|
2017-11-23 21:28:26 +08:00
|
|
|
config BOARD
|
|
|
|
default "native_posix"
|
|
|
|
|
2018-03-25 23:17:57 +08:00
|
|
|
if NETWORKING
|
|
|
|
|
|
|
|
config NET_L2_ETHERNET
|
2018-11-14 00:15:49 +08:00
|
|
|
default y if !NET_LOOPBACK && !NET_TEST
|
2018-03-25 23:17:57 +08:00
|
|
|
|
|
|
|
config ETH_NATIVE_POSIX
|
2018-11-14 00:15:49 +08:00
|
|
|
default y if NET_L2_ETHERNET
|
2018-03-25 23:17:57 +08:00
|
|
|
|
|
|
|
endif # NETWORKING
|
|
|
|
|
2018-06-13 21:52:34 +08:00
|
|
|
if ENTROPY_GENERATOR
|
|
|
|
|
|
|
|
config FAKE_ENTROPY_NATIVE_POSIX
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2018-06-13 21:52:34 +08:00
|
|
|
|
|
|
|
endif # ENTROPY_GENERATOR
|
|
|
|
|
2018-06-13 22:04:51 +08:00
|
|
|
if BT_HCI
|
|
|
|
|
|
|
|
choice BT_HCI_BUS_TYPE
|
|
|
|
default BT_USERCHAN
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif # BT_HCI
|
|
|
|
|
2018-09-23 01:19:59 +08:00
|
|
|
if SERIAL
|
|
|
|
|
|
|
|
config UART_NATIVE_POSIX
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2018-09-23 01:19:59 +08:00
|
|
|
|
|
|
|
endif # SERIAL
|
|
|
|
|
2018-09-14 16:31:55 +08:00
|
|
|
if LOG
|
|
|
|
|
|
|
|
config LOG_BACKEND_NATIVE_POSIX
|
2018-11-14 00:15:49 +08:00
|
|
|
default y if !SERIAL
|
2018-09-14 16:31:55 +08:00
|
|
|
|
|
|
|
# For native_posix we can log immediately without any problem
|
|
|
|
# Doing so will be nicer for debugging
|
2019-01-10 15:37:15 +08:00
|
|
|
config LOG_IMMEDIATE
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2018-09-14 16:31:55 +08:00
|
|
|
|
2019-01-10 15:37:15 +08:00
|
|
|
# If we set LOG_IMMEDIATE, there is no need to have the logging thread
|
2018-09-14 16:31:55 +08:00
|
|
|
# running
|
|
|
|
config LOG_PROCESS_THREAD
|
2018-11-14 00:15:49 +08:00
|
|
|
default n
|
2018-09-14 16:31:55 +08:00
|
|
|
|
|
|
|
endif # LOG
|
|
|
|
|
2018-09-23 01:19:59 +08:00
|
|
|
if CONSOLE
|
|
|
|
|
|
|
|
config NATIVE_POSIX_CONSOLE
|
2018-11-14 00:15:49 +08:00
|
|
|
default y if !SERIAL
|
2018-09-23 01:19:59 +08:00
|
|
|
|
|
|
|
config UART_CONSOLE
|
2018-11-14 00:15:49 +08:00
|
|
|
default y if SERIAL
|
2018-09-23 01:19:59 +08:00
|
|
|
|
|
|
|
endif #CONSOLE
|
|
|
|
|
2018-10-17 03:35:06 +08:00
|
|
|
if DISPLAY
|
|
|
|
|
|
|
|
config SDL_DISPLAY
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # DISPLAY
|
|
|
|
|
2019-01-30 15:19:24 +08:00
|
|
|
if TRACING_CTF
|
|
|
|
|
|
|
|
config TRACING_CTF_BOTTOM_POSIX
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # TRACING_CTF
|
|
|
|
|
2018-06-13 22:04:51 +08:00
|
|
|
endif # BOARD_NATIVE_POSIX
|
2018-09-10 20:32:23 +08:00
|
|
|
|
|
|
|
if USB
|
|
|
|
|
|
|
|
config USB_NATIVE_POSIX
|
|
|
|
def_bool y
|
|
|
|
|
|
|
|
endif # USB
|