usb: Remove CMD_USB dependency for common code
authorSven Schwermer <sven@svenschwermer.de>
Wed, 21 Nov 2018 07:43:55 +0000 (08:43 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 26 Nov 2018 20:19:03 +0000 (21:19 +0100)
Common USB code is built whenever USB is enabled (in non-SPL builds).
The USB uclass is built whenever (SPL_)DM_USB is enabled. Both need to
be independent from CMD_USB.

Signed-off-by: Sven Schwermer <sven@svenschwermer.de>
common/Makefile
drivers/usb/host/Makefile

index 88079d1072c18de185521431e3fe92ca488a8b16..65d89dc62d5e0a1aa294406c17871eef2530c8cf 100644 (file)
@@ -33,7 +33,7 @@ obj-$(CONFIG_MII) += miiphyutil.o
 obj-$(CONFIG_CMD_MII) += miiphyutil.o
 obj-$(CONFIG_PHYLIB) += miiphyutil.o
 
-ifdef CONFIG_CMD_USB
+ifdef CONFIG_USB
 obj-y += usb.o usb_hub.o
 obj-$(CONFIG_USB_STORAGE) += usb_storage.o
 endif
index bfa565c4c3a4a6b5d3a31c079b757509382ace20..285c20ae8630036e0d47043de664b22b0e454611 100644 (file)
@@ -4,7 +4,7 @@
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 
 ifdef CONFIG_$(SPL_)DM_USB
-obj-$(CONFIG_CMD_USB) += usb-uclass.o
+obj-y += usb-uclass.o
 obj-$(CONFIG_SANDBOX) += usb-sandbox.o
 endif