[PATCH 4/8] usb: gadget: Fix Kconfig dependencies

Alexander Shiyan eagle.alexander923 at gmail.com
Mon Jun 27 03:24:56 PDT 2022


WARNING: unmet direct dependencies detected for SYSTEM_PARTITIONS
Depends on [n]: GLOBALVAR [=n]
Selected by [y]:
- USB_GADGET_AUTOSTART [=y] && USB_GADGET [=y] && USB_GADGET_MASS_STORAGE [=y]

WARNING: unmet direct dependencies detected for USB_GADGET_DRIVER_ARC_PBL
Depends on [n]: USB_GADGET [=n]
Selected by [y]:
- MACH_PROTONIC_IMX8M [=y] && ARCH_IMX [=y] && IMX_MULTI_BOARDS [=y]

Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
 drivers/usb/gadget/Kconfig | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 10c713e833..f2ca3695a2 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -4,6 +4,10 @@ menuconfig USB_GADGET
 	select POLLER
 	bool "USB gadget support"
 
+config USB_GADGET_DRIVER_ARC_PBL
+	select USB_GADGET
+	bool
+
 if USB_GADGET
 
 config USB_GADGET_DUALSPEED
@@ -16,9 +20,6 @@ config USB_GADGET_DRIVER_ARC
 	default y
 	select USB_GADGET_DUALSPEED
 
-config USB_GADGET_DRIVER_ARC_PBL
-	bool
-
 config USB_GADGET_DRIVER_AT91
 	bool
 	prompt "at91 gadget driver"
@@ -37,6 +38,7 @@ config USB_GADGET_AUTOSTART
 	bool
 	default y
 	prompt "Automatically start usbgadget on boot"
+	depends on GLOBALVAR
 	select SYSTEM_PARTITIONS if USB_GADGET_MASS_STORAGE
 	help
 	  Enabling this option allows to automatically start a dfu or
-- 
2.32.0




More information about the barebox mailing list