2007-11-24 18:40:11 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2000-2007
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2007-11-24 18:40:11 +00:00
|
|
|
#
|
|
|
|
|
2013-11-28 03:20:14 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET) += epautoconf.o config.o usbstring.o
|
|
|
|
obj-$(CONFIG_USB_ETHER) += epautoconf.o config.o usbstring.o
|
2012-12-03 00:10:28 +00:00
|
|
|
|
2016-11-21 18:58:52 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2016-11-21 18:58:53 +00:00
|
|
|
obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += g_dnl.o
|
2016-11-21 18:58:52 +00:00
|
|
|
obj-$(CONFIG_SPL_DFU_SUPPORT) += f_dfu.o
|
|
|
|
endif
|
|
|
|
|
2010-08-12 12:44:39 +00:00
|
|
|
# new USB gadget layer dependencies
|
2011-10-27 08:36:46 +00:00
|
|
|
ifdef CONFIG_USB_GADGET
|
2015-09-08 09:52:51 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET_AT91) += at91_udc.o
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
|
2015-07-09 21:26:40 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET_BCM_UDC_OTG_PHY) += bcm_udc_otg_phy.o
|
2015-08-19 21:27:26 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
|
|
|
|
obj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
|
2014-04-28 21:42:00 +00:00
|
|
|
obj-$(CONFIG_CI_UDC) += ci_udc.o
|
2016-09-27 12:36:56 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2016-11-21 18:58:53 +00:00
|
|
|
obj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
|
2016-11-21 18:58:52 +00:00
|
|
|
obj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
|
2015-06-12 17:56:58 +00:00
|
|
|
obj-$(CONFIG_USB_FUNCTION_DFU) += f_dfu.o
|
|
|
|
obj-$(CONFIG_USB_FUNCTION_MASS_STORAGE) += f_mass_storage.o
|
2015-06-12 17:56:59 +00:00
|
|
|
obj-$(CONFIG_USB_FUNCTION_FASTBOOT) += f_fastboot.o
|
2011-10-27 08:36:46 +00:00
|
|
|
endif
|
2016-11-21 18:58:52 +00:00
|
|
|
endif
|
2010-08-12 12:44:39 +00:00
|
|
|
ifdef CONFIG_USB_ETHER
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-y += ether.o
|
|
|
|
obj-$(CONFIG_USB_ETH_RNDIS) += rndis.o
|
2014-02-06 01:43:45 +00:00
|
|
|
obj-$(CONFIG_CI_UDC) += ci_udc.o
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-$(CONFIG_CPU_PXA25X) += pxa25x_udc.o
|
2010-08-12 12:44:39 +00:00
|
|
|
else
|
2009-07-29 16:18:43 +00:00
|
|
|
# Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE
|
2008-11-07 21:46:21 +00:00
|
|
|
ifdef CONFIG_USB_DEVICE
|
2013-10-17 08:34:56 +00:00
|
|
|
obj-y += core.o
|
|
|
|
obj-y += ep0.o
|
|
|
|
obj-$(CONFIG_DW_UDC) += designware_udc.o
|
|
|
|
obj-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o
|
|
|
|
obj-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
|
2008-11-07 21:46:21 +00:00
|
|
|
endif
|
2010-08-12 12:44:39 +00:00
|
|
|
endif
|