[PATCH] usb: gadget: spl: Add missing dependency for SPL_USB_GADGET

Tom Rini trini at konsulko.com
Fri Oct 3 22:39:22 CEST 2025


It makes no sense to ask about nor enable SPL_USB_GADGET without
SPL_FRAMEWORK being enabled. Attempting to do so leads to Kconfig noting
dependency issues. Add the missing dependency.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
Cc: Mattijs Korpershoek <mkorpershoek at kernel.org>
Cc: Marek Vasut <marek.vasut at mailbox.org>
---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 882f082c9cdb..056eff4d942e 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -39,6 +39,7 @@ menuconfig USB_GADGET
 
 config SPL_USB_GADGET
 	bool "USB Gadget Support in SPL"
+	depends on SPL_FRAMEWORK
 	help
 	  Enable USB Gadget API which allows to enable USB device functions
 	  in SPL.
-- 
2.43.0



More information about the U-Boot mailing list