UPSTREAM: usb: Remove CMD_USB dependency for common code

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.

Change-Id: Idb5e7ffeea8cb325855cb2d1b6713d62fe438120
Signed-off-by: Sven Schwermer <sven@svenschwermer.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit ab5817027f9b4fce25f5f2a3e20577ac55bbd7e0)
This commit is contained in:
Sven Schwermer 2018-11-21 08:43:55 +01:00 committed by Frank Wang
parent 7f10e9b86f
commit c8f2d7ee94
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ obj-$(CONFIG_MII) += miiphyutil.o
obj-$(CONFIG_CMD_MII) += miiphyutil.o obj-$(CONFIG_CMD_MII) += miiphyutil.o
obj-$(CONFIG_PHYLIB) += miiphyutil.o obj-$(CONFIG_PHYLIB) += miiphyutil.o
ifdef CONFIG_CMD_USB ifdef CONFIG_USB
obj-y += usb.o usb_hub.o obj-y += usb.o usb_hub.o
obj-$(CONFIG_USB_STORAGE) += usb_storage.o obj-$(CONFIG_USB_STORAGE) += usb_storage.o
endif endif

View File

@ -6,7 +6,7 @@
# #
ifdef CONFIG_$(SPL_)DM_USB ifdef CONFIG_$(SPL_)DM_USB
obj-$(CONFIG_CMD_USB) += usb-uclass.o obj-y += usb-uclass.o
obj-$(CONFIG_SANDBOX) += usb-sandbox.o obj-$(CONFIG_SANDBOX) += usb-sandbox.o
endif endif