2019-04-06 09:08:09 -04:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2017-11-23 08:28:26 -05:00
|
|
|
if BOARD_NATIVE_POSIX
|
|
|
|
|
|
|
|
config BUILD_OUTPUT_BIN
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BUILD_OUTPUT_EXE
|
|
|
|
default y
|
|
|
|
|
2017-12-28 13:28:24 +01:00
|
|
|
config OUTPUT_PRINT_MEMORY_USAGE
|
|
|
|
default n
|
|
|
|
|
2017-11-23 08:28:26 -05:00
|
|
|
config BOARD
|
2019-05-17 16:49:52 -04:00
|
|
|
default "native_posix_64" if BOARD_NATIVE_POSIX_64BIT
|
2017-11-23 08:28:26 -05:00
|
|
|
default "native_posix"
|
|
|
|
|
2018-03-25 18:17:57 +03:00
|
|
|
if NETWORKING
|
|
|
|
|
|
|
|
config NET_L2_ETHERNET
|
2018-11-13 17:15:49 +01:00
|
|
|
default y if !NET_LOOPBACK && !NET_TEST
|
2018-03-25 18:17:57 +03:00
|
|
|
|
|
|
|
config ETH_NATIVE_POSIX
|
2018-11-13 17:15:49 +01:00
|
|
|
default y if NET_L2_ETHERNET
|
2018-03-25 18:17:57 +03:00
|
|
|
|
|
|
|
endif # NETWORKING
|
|
|
|
|
2018-06-13 15:52:34 +02:00
|
|
|
config FAKE_ENTROPY_NATIVE_POSIX
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on ENTROPY_GENERATOR
|
2018-06-13 16:04:51 +02:00
|
|
|
|
|
|
|
choice BT_HCI_BUS_TYPE
|
|
|
|
default BT_USERCHAN
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on BT_HCI
|
2018-06-13 16:04:51 +02:00
|
|
|
endchoice
|
|
|
|
|
2018-09-22 19:19:59 +02:00
|
|
|
config UART_NATIVE_POSIX
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on SERIAL
|
2018-09-22 19:19:59 +02:00
|
|
|
|
2018-09-14 11:31:55 +03:00
|
|
|
if LOG
|
|
|
|
|
|
|
|
config LOG_BACKEND_NATIVE_POSIX
|
2018-11-13 17:15:49 +01:00
|
|
|
default y if !SERIAL
|
2018-09-14 11:31:55 +03:00
|
|
|
|
|
|
|
# For native_posix we can log immediately without any problem
|
|
|
|
# Doing so will be nicer for debugging
|
2019-01-10 08:37:15 +01:00
|
|
|
config LOG_IMMEDIATE
|
2018-11-13 17:15:49 +01:00
|
|
|
default y
|
2018-09-14 11:31:55 +03:00
|
|
|
|
2019-01-10 08:37:15 +01:00
|
|
|
# If we set LOG_IMMEDIATE, there is no need to have the logging thread
|
2018-09-14 11:31:55 +03:00
|
|
|
# running
|
|
|
|
config LOG_PROCESS_THREAD
|
2018-11-13 17:15:49 +01:00
|
|
|
default n
|
2018-09-14 11:31:55 +03:00
|
|
|
|
|
|
|
endif # LOG
|
|
|
|
|
2018-09-22 19:19:59 +02:00
|
|
|
if CONSOLE
|
|
|
|
|
|
|
|
config NATIVE_POSIX_CONSOLE
|
2018-11-13 17:15:49 +01:00
|
|
|
default y if !SERIAL
|
2018-09-22 19:19:59 +02:00
|
|
|
|
|
|
|
config UART_CONSOLE
|
2018-11-13 17:15:49 +01:00
|
|
|
default y if SERIAL
|
2018-09-22 19:19:59 +02:00
|
|
|
|
2019-11-01 10:24:07 +01:00
|
|
|
endif # CONSOLE
|
2018-09-22 19:19:59 +02:00
|
|
|
|
2018-10-16 21:35:06 +02:00
|
|
|
config SDL_DISPLAY
|
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on DISPLAY
|
2019-01-01 17:07:58 +01:00
|
|
|
|
2020-02-03 16:07:06 +02:00
|
|
|
config KSCAN_SDL
|
|
|
|
default y
|
|
|
|
depends on KSCAN
|
|
|
|
|
2019-11-10 02:16:54 +01:00
|
|
|
config FLASH_SIMULATOR
|
2019-01-01 17:07:58 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on FLASH
|
2018-09-10 15:32:23 +03: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 12:29:31 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on USB
|
2019-11-01 19:58:35 +01:00
|
|
|
|
2019-11-10 12:09:44 +01:00
|
|
|
config EEPROM_SIMULATOR
|
2019-11-01 19:58:35 +01:00
|
|
|
default y
|
2020-02-10 04:18:50 +01:00
|
|
|
depends on EEPROM
|
2019-11-01 19:58:35 +01:00
|
|
|
|
2019-10-24 01:24:34 +02:00
|
|
|
endif # BOARD_NATIVE_POSIX
|