[PATCH 5/9] cmd: Kconfig: Change dependency of CMD_USB_SDP

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


USB_FUNCTION_SDP depends on USB_GADGET_DOWNLOAD to be enabled which is not
reflect in Kconfig. Fix it by changing select to depends on for CMD_USB_SDP
command.
Kconfig is reporting it as:
WARNING: unmet direct dependencies detected for USB_FUNCTION_SDP
  Depends on [n]: USB [=n] && USB_GADGET [=n] && USB_GADGET_DOWNLOAD [=n]
  Selected by [y]:
  - CMD_USB_SDP [=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 bd3559ae6c12..f291c8cbf423 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1351,7 +1351,7 @@ config CMD_USB
 
 config CMD_USB_SDP
 	bool "sdp"
-	select USB_FUNCTION_SDP
+	depends on USB_FUNCTION_SDP
 	help
 	  Enables the command "sdp" which is used to have U-Boot emulating the
 	  Serial Download Protocol (SDP) via USB.
-- 
2.28.0



More information about the U-Boot mailing list