summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/udc/Makefile')
-rw-r--r--drivers/usb/gadget/udc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/Makefile b/drivers/usb/gadget/udc/Makefile
index 449339f2c4..38ac2dd475 100644
--- a/drivers/usb/gadget/udc/Makefile
+++ b/drivers/usb/gadget/udc/Makefile
@@ -2,4 +2,8 @@
#
# USB peripheral controller drivers
+ifndef CONFIG_$(SPL_)DM_USB_GADGET
obj-$(CONFIG_USB_DWC3_GADGET) += udc-core.o
+endif
+
+obj-$(CONFIG_$(SPL_)DM_USB_GADGET) += udc-uclass.o udc-core.o