xref: /openbmc/u-boot/drivers/usb/gadget/Makefile (revision bb4059a5)
12731b9a8SJean-Christophe PLAGNIOL-VILLARD#
22731b9a8SJean-Christophe PLAGNIOL-VILLARD# (C) Copyright 2000-2007
32731b9a8SJean-Christophe PLAGNIOL-VILLARD# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
42731b9a8SJean-Christophe PLAGNIOL-VILLARD#
51a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
62731b9a8SJean-Christophe PLAGNIOL-VILLARD#
72731b9a8SJean-Christophe PLAGNIOL-VILLARD
84f57a90cSMasahiro Yamadaobj-$(CONFIG_USB_GADGET) += epautoconf.o config.o usbstring.o
94f57a90cSMasahiro Yamadaobj-$(CONFIG_USB_ETHER) += epautoconf.o config.o usbstring.o
10a04983d6SPantelis Antoniou
115991703eSStefan Agnerifdef CONFIG_SPL_BUILD
12e94793c8SStefan Agnerobj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += g_dnl.o
135991703eSStefan Agnerobj-$(CONFIG_SPL_DFU_SUPPORT) += f_dfu.o
14a3774c1cSStefan Agnerobj-$(CONFIG_SPL_USB_SDP_SUPPORT) += f_sdp.o
155991703eSStefan Agnerendif
165991703eSStefan Agner
177b2f3906SVitaly Kuzmichev# new USB gadget layer dependencies
1838517a78SLukasz Majewskiifdef CONFIG_USB_GADGET
1962019767SHeiko Schocherobj-$(CONFIG_USB_GADGET_AT91) += at91_udc.o
2044e32c71SMasahiro Yamadaobj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
21d00bf781SJiandong Zhengobj-$(CONFIG_USB_GADGET_BCM_UDC_OTG_PHY) += bcm_udc_otg_phy.o
22e30824f4SMarek Vasutobj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
23e30824f4SMarek Vasutobj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
2444e32c71SMasahiro Yamadaobj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
252fc5dab2SStephen Warrenobj-$(CONFIG_CI_UDC)	+= ci_udc.o
266ad61022STom Riniifndef CONFIG_SPL_BUILD
27e94793c8SStefan Agnerobj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
285991703eSStefan Agnerobj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
29*bb4059a5SMarek Vasutobj-$(CONFIG_DFU_OVER_USB) += f_dfu.o
3001acd6abSPaul Kocialkowskiobj-$(CONFIG_USB_FUNCTION_MASS_STORAGE) += f_mass_storage.o
3117da3c0cSPaul Kocialkowskiobj-$(CONFIG_USB_FUNCTION_FASTBOOT) += f_fastboot.o
325661f08aSStefan Agnerobj-$(CONFIG_USB_FUNCTION_SDP) += f_sdp.o
33bf2b72beSEddie Caiobj-$(CONFIG_USB_FUNCTION_ROCKUSB) += f_rockusb.o
3438517a78SLukasz Majewskiendif
355991703eSStefan Agnerendif
367b2f3906SVitaly Kuzmichevifdef CONFIG_USB_ETHER
3744e32c71SMasahiro Yamadaobj-y += ether.o
3844e32c71SMasahiro Yamadaobj-$(CONFIG_USB_ETH_RNDIS) += rndis.o
39f016f8caSMarek Vasutobj-$(CONFIG_CI_UDC)	+= ci_udc.o
4044e32c71SMasahiro Yamadaobj-$(CONFIG_CPU_PXA25X) += pxa25x_udc.o
417b2f3906SVitaly Kuzmichevelse
4223cd1385SRemy Bohmer# Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE
432731b9a8SJean-Christophe PLAGNIOL-VILLARDifdef CONFIG_USB_DEVICE
4444e32c71SMasahiro Yamadaobj-y += core.o
4544e32c71SMasahiro Yamadaobj-y += ep0.o
4644e32c71SMasahiro Yamadaobj-$(CONFIG_DW_UDC) += designware_udc.o
4744e32c71SMasahiro Yamadaobj-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
482731b9a8SJean-Christophe PLAGNIOL-VILLARDendif
497b2f3906SVitaly Kuzmichevendif
50