]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: Correct dependencies around USB_EMUL
authorTom Rini <trini@konsulko.com>
Mon, 23 Mar 2026 14:38:36 +0000 (08:38 -0600)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Fri, 8 May 2026 22:24:53 +0000 (00:24 +0200)
The symbol USB_EMUL is how sandbox has access to USB. It's
implementation however enforces a few other requirements. It must have
SCSI enabled, and in turn that means it must have BLK enabled. Finally,
we should not be using SANDBOX itself as a symbol to decide what to
build or not build here, as SANDBOX is selected for COMPILE_TEST builds
as well and so may not have enabled the sandbox specific USB support.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Marek Vasut <marek.vasut+usb@mailbox.org>
drivers/usb/emul/Kconfig
drivers/usb/host/Makefile

index 279f6c6d7404af3ebeef61b73b65830513f4c11e..6305f2496c3b78894e5a5d0e58418b3e9402431b 100644 (file)
@@ -2,6 +2,7 @@ config USB_EMUL
        bool "Support for USB device emulation"
        depends on SANDBOX
        select DM_USB
+       select SCSI
        select USB_HOST
        help
          Since sandbox does not have access to a real USB bus, it is possible
index ef4ce62a680c785f1b3a06c9e1ec7a6c7f35e82a..9cac53f07c7a575ac4f139693a289138ec78d7f3 100644 (file)
@@ -5,7 +5,7 @@
 
 ifdef CONFIG_$(PHASE_)DM_USB
 obj-y += usb-uclass.o
-obj-$(CONFIG_SANDBOX) += usb-sandbox.o
+obj-$(CONFIG_USB_EMUL) += usb-sandbox.o
 endif
 
 ifdef CONFIG_$(PHASE_)USB_STORAGE