summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-03-23 08:38:36 -0600
committerMarek Vasut <[email protected]>2026-05-09 00:24:53 +0200
commit5040410102239a6afd85665c7cfd35bd3f82352c (patch)
tree7dd6d05fe3b3908491709722f8232138af2138d8
parent93f96c7d8da78f652f2b5142390f47eb872438f7 (diff)
usb: Correct dependencies around USB_EMUL
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 <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
-rw-r--r--drivers/usb/emul/Kconfig1
-rw-r--r--drivers/usb/host/Makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/emul/Kconfig b/drivers/usb/emul/Kconfig
index 279f6c6d740..6305f2496c3 100644
--- a/drivers/usb/emul/Kconfig
+++ b/drivers/usb/emul/Kconfig
@@ -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
diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
index ef4ce62a680..9cac53f07c7 100644
--- a/drivers/usb/host/Makefile
+++ b/drivers/usb/host/Makefile
@@ -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