From 076594fc1c61617a47952b9630678694df95aefb Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Wed, 24 Apr 2024 14:01:42 +0200 Subject: [PATCH] USB_NATIVE_POSIX: Correct dependencies USB_NATIVE_POSIX dependencies were partially broken for native_sim as the option was duplicated in the boards defconfigas. Let's not define it also in the board Kconfig.defconfig but instead default it to y in its main definition if building for either native_posix[//64] or native_sim[//64] Signed-off-by: Alberto Escolar Piedras --- boards/native/native_posix/Kconfig.defconfig | 4 ---- boards/native/native_sim/Kconfig.defconfig | 4 ---- drivers/usb/device/Kconfig | 1 + 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/boards/native/native_posix/Kconfig.defconfig b/boards/native/native_posix/Kconfig.defconfig index 75445483d7..9132dd9c14 100644 --- a/boards/native/native_posix/Kconfig.defconfig +++ b/boards/native/native_posix/Kconfig.defconfig @@ -37,10 +37,6 @@ config UART_CONSOLE endif # CONSOLE -config USB_NATIVE_POSIX - default y - depends on USB_DEVICE_DRIVER - if I2C config EMUL diff --git a/boards/native/native_sim/Kconfig.defconfig b/boards/native/native_sim/Kconfig.defconfig index 9323bfb686..e154d43a52 100644 --- a/boards/native/native_sim/Kconfig.defconfig +++ b/boards/native/native_sim/Kconfig.defconfig @@ -37,10 +37,6 @@ config UART_CONSOLE endif # CONSOLE -config USB_NATIVE_POSIX - default y - depends on USB_DEVICE_DRIVER - if I2C config EMUL diff --git a/drivers/usb/device/Kconfig b/drivers/usb/device/Kconfig index 3dc1a365be..ad2432998c 100644 --- a/drivers/usb/device/Kconfig +++ b/drivers/usb/device/Kconfig @@ -225,6 +225,7 @@ endif # USB_DC_NUMAKER config USB_NATIVE_POSIX bool "Native Posix USB Device Controller Driver" depends on ARCH_POSIX && EXTERNAL_LIBC + default y if BOARD_NATIVE_SIM || BOARD_NATIVE_POSIX help Native Posix USB Device Controller Driver.