xref: /openbmc/u-boot/drivers/usb/gadget/Makefile (revision d66ff4ba)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2000-2007
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6obj-$(CONFIG_USB_GADGET) += epautoconf.o config.o usbstring.o
7obj-$(CONFIG_USB_ETHER) += epautoconf.o config.o usbstring.o
8
9ifdef CONFIG_SPL_BUILD
10obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += g_dnl.o
11obj-$(CONFIG_SPL_DFU_SUPPORT) += f_dfu.o
12obj-$(CONFIG_SPL_USB_SDP_SUPPORT) += f_sdp.o
13endif
14
15# new USB gadget layer dependencies
16ifdef CONFIG_USB_GADGET
17obj-$(CONFIG_USB_GADGET_AT91) += at91_udc.o
18obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
19obj-$(CONFIG_USB_GADGET_BCM_UDC_OTG_PHY) += bcm_udc_otg_phy.o
20obj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
21obj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
22obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
23obj-$(CONFIG_CI_UDC)	+= ci_udc.o
24ifndef CONFIG_SPL_BUILD
25obj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
26obj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
27obj-$(CONFIG_DFU_OVER_USB) += f_dfu.o
28obj-$(CONFIG_USB_FUNCTION_MASS_STORAGE) += f_mass_storage.o
29obj-$(CONFIG_USB_FUNCTION_FASTBOOT) += f_fastboot.o
30obj-$(CONFIG_USB_FUNCTION_SDP) += f_sdp.o
31obj-$(CONFIG_USB_FUNCTION_ROCKUSB) += f_rockusb.o
32endif
33endif
34ifdef CONFIG_USB_ETHER
35obj-y += ether.o
36obj-$(CONFIG_USB_ETH_RNDIS) += rndis.o
37obj-$(CONFIG_CI_UDC)	+= ci_udc.o
38obj-$(CONFIG_CPU_PXA25X) += pxa25x_udc.o
39else
40# Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE
41ifdef CONFIG_USB_DEVICE
42obj-y += core.o
43obj-y += ep0.o
44obj-$(CONFIG_DW_UDC) += designware_udc.o
45obj-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
46endif
47endif
48