[PATCH 8/9] cmd: Kconfig: Fix dependencies for CMD_USB_MASS_STORAGE

Michal Simek michal.simek at xilinx.com
Wed Aug 19 10:44:22 CEST 2020


There are missing dependencies for selecting USB_FUNCTION_MASS_STORAGE.
Change select to depends on instead of selecting all required options.
Kconfig reports this issue as:
WARNING: unmet direct dependencies detected for USB_FUNCTION_MASS_STORAGE
  Depends on [n]: USB [=n] && USB_GADGET [=n] && USB_GADGET_DOWNLOAD [=n]
  Selected by [y]:
  - CMD_USB_MASS_STORAGE [=y]

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 cmd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index f291c8cbf423..eebaaa420bf1 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1367,7 +1367,7 @@ config CMD_ROCKUSB
 
 config CMD_USB_MASS_STORAGE
 	bool "UMS usb mass storage"
-	select USB_FUNCTION_MASS_STORAGE
+	depends on USB_FUNCTION_MASS_STORAGE
 	help
 	  USB mass storage support
 
-- 
2.28.0



More information about the U-Boot mailing list