drivers for POSIX arch: Add external libc dependencies

Quite a few of the drivers meant for the POSIX arch
interacted with the host directly, and will not
work when we use an embedded libC.

Until we fix them, let's add the appropriate
kconfig dependencies to avoid users trying to build them.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-06-16 11:17:40 +02:00 committed by Chris Friedt
parent 04a16f21e4
commit abf6da6318
6 changed files with 6 additions and 1 deletions

View file

@ -7,6 +7,7 @@ menuconfig SDL_DISPLAY
bool "SDL based emulated display"
default y
depends on DT_HAS_ZEPHYR_SDL_DC_ENABLED
depends on EXTERNAL_LIBC
select HAS_SDL
help
Enable SDL based emulated display compliant with display driver API.

View file

@ -102,6 +102,7 @@ config EEPROM_SIMULATOR
bool "Simulated EEPROM driver"
default y
depends on DT_HAS_ZEPHYR_SIM_EEPROM_ENABLED
depends on !(ARCH_POSIX && !EXTERNAL_LIBC)
select STATS
select STATS_NAMES
help

View file

@ -4,6 +4,7 @@ config FAKE_ENTROPY_NATIVE_POSIX
bool "Native posix entropy driver"
default y
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_RNG_ENABLED
depends on EXTERNAL_LIBC
select ENTROPY_HAS_DRIVER
help
This option enables the test random number generator for the

View file

@ -5,7 +5,7 @@
menuconfig ETH_NATIVE_POSIX
bool "Native Posix Ethernet driver"
depends on ARCH_POSIX
depends on ARCH_POSIX && EXTERNAL_LIBC
help
Enable native posix ethernet driver. Note, this driver is run inside
a process in your host system.

View file

@ -4,6 +4,7 @@ config UART_NATIVE_POSIX
bool "UART driver for native_posix"
default y
depends on DT_HAS_ZEPHYR_NATIVE_POSIX_UART_ENABLED
depends on EXTERNAL_LIBC
select SERIAL_HAS_DRIVER
help
This enables a UART driver for the POSIX ARCH with up to 2 UARTs.

View file

@ -199,6 +199,7 @@ config USB_DC_IT82XX2
config USB_NATIVE_POSIX
bool "Native Posix USB Device Controller Driver"
depends on ARCH_POSIX && EXTERNAL_LIBC
help
Native Posix USB Device Controller Driver.