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
|
2019-05-18 04:49:52 +08:00
|
|
|
default "native_posix_64" if BOARD_NATIVE_POSIX_64BIT
|
2017-11-23 21:28:26 +08:00
|
|
|
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
|
|
|
config FAKE_ENTROPY_NATIVE_POSIX
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on ENTROPY_GENERATOR
|
2018-06-13 22:04:51 +08:00
|
|
|
|
|
|
|
choice BT_HCI_BUS_TYPE
|
|
|
|
default BT_USERCHAN
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on BT_HCI
|
2018-06-13 22:04:51 +08:00
|
|
|
endchoice
|
|
|
|
|
2018-09-23 01:19:59 +08:00
|
|
|
config UART_NATIVE_POSIX
|
2018-11-14 00:15:49 +08:00
|
|
|
default y
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on SERIAL
|
2018-09-23 01:19:59 +08:00
|
|
|
|
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
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
endif # CONSOLE
|
2018-09-23 01:19:59 +08:00
|
|
|
|
2018-10-17 03:35:06 +08:00
|
|
|
config SDL_DISPLAY
|
|
|
|
default y
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on DISPLAY
|
2019-01-02 00:07:58 +08:00
|
|
|
|
2020-02-03 22:07:06 +08:00
|
|
|
config KSCAN_SDL
|
|
|
|
default y
|
|
|
|
depends on KSCAN
|
|
|
|
|
2019-11-10 09:16:54 +08:00
|
|
|
config FLASH_SIMULATOR
|
2019-01-02 00:07:58 +08:00
|
|
|
default y
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on FLASH
|
2018-09-10 20:32:23 +08:00
|
|
|
|
|
|
|
config USB_NATIVE_POSIX
|
kconfig: Use 'default' instead of 'def_bool' in Kconfig.defconfig files
Same deal as in commit 4638652214 ("Kconfig: Use 'default' instead of
'def_bool' in Kconfig.defconfig files"), fixing new stuff that got
introduced since then.
Some symbols, like ALTERA_AVALON_PIO, are only defined in
Kconfig.defconfig files, and so need the def_bool.
Motivation (from the note at the end of
guides/kconfig/index.html#common-shorthands):
For a symbol defined in multiple locations (e.g., in a Kconfig.defconfig
file in Zephyr), it is best to only give the symbol type for the "base"
definition of the symbol, and to use 'default' (instead of 'def_<type>'
value) for the remaining definitions. That way, if the base definition
of the symbol is removed, the symbol ends up without a type, which
generates a warning that points to the other definitions. That makes the
extra definitions easier to discover and remove.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-18 19:29:31 +08:00
|
|
|
default y
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on USB
|
2019-11-02 02:58:35 +08:00
|
|
|
|
2019-11-10 19:09:44 +08:00
|
|
|
config EEPROM_SIMULATOR
|
2019-11-02 02:58:35 +08:00
|
|
|
default y
|
2020-02-10 11:18:50 +08:00
|
|
|
depends on EEPROM
|
2019-11-02 02:58:35 +08:00
|
|
|
|
2019-10-24 07:24:34 +08:00
|
|
|
endif # BOARD_NATIVE_POSIX
|