Skip to contentSkip to conversation

cmd: CMD_USB depends on USB

PATCH New Heinrich Schuchardt 3 participants 3 messages Apr 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: CMD_USB depends on USB

The usb command cannot be compiled with CONFIG_USB=n:

ld.bfd: cmd/usb.c:660: undefined reference to usb_stop' ld.bfd: cmd/usb.c:663: undefined reference to usb_started'

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index eff238cb38..863b7f9fda 100644
@@ -1309,6 +1309,7 @@ config CMD_UNIVERSE
 
 config CMD_USB
 	bool "usb"
+	depends on USB
 	select HAVE_BLOCK_DEVICE
 	help
 	  USB support.

--
2.31.0

#1 lore raw

PATCH 1/1 cmd: CMD_USB depends on USB

Quoted 6 lines · Heinrich Schuchardt

The usb command cannot be compiled with CONFIG_USB=n:

ld.bfd: cmd/usb.c:660: undefined reference to usb_stop' ld.bfd: cmd/usb.c:663: undefined reference to usb_started'

It would be nice to include this in current release, since it's obviously a bugfix.

#2 lore raw

PATCH 1/1 cmd: CMD_USB depends on USB

In reply to Heinrich Schuchardt
Quoted 7 lines · Heinrich Schuchardt

The usb command cannot be compiled with CONFIG_USB=n:

ld.bfd: cmd/usb.c:660: undefined reference to usb_stop' ld.bfd: cmd/usb.c:663: undefined reference to usb_started'

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210404/395f1e3d/attachment.sig>