]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/usb/gadget/Makefile
4d51f5991be040d76fe816b2b0818a14462fb058
[karo-tx-uboot.git] / drivers / usb / gadget / Makefile
1 #
2 # (C) Copyright 2000-2007
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     := $(obj)libusb_gadget.o
11
12 # if defined(CONFIG_USB_GADGET) || defined(CONFIG_USB_ETHER)
13 #   Everytime you forget how crufty makefiles can get things like
14 #   this remind you...
15 ifneq (,$(CONFIG_USB_GADGET)$(CONFIG_USB_ETHER))
16 COBJS-y += epautoconf.o config.o usbstring.o
17 endif
18
19 # new USB gadget layer dependencies
20 ifdef CONFIG_USB_GADGET
21 COBJS-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
22 COBJS-$(CONFIG_USB_GADGET_S3C_UDC_OTG) += s3c_udc_otg.o
23 COBJS-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
24 COBJS-$(CONFIG_USBDOWNLOAD_GADGET) += g_dnl.o
25 COBJS-$(CONFIG_DFU_FUNCTION) += f_dfu.o
26 endif
27 ifdef CONFIG_USB_ETHER
28 COBJS-y += ether.o
29 COBJS-$(CONFIG_USB_ETH_RNDIS) += rndis.o
30 COBJS-$(CONFIG_MV_UDC)  += mv_udc.o
31 COBJS-$(CONFIG_CPU_PXA25X) += pxa25x_udc.o
32 else
33 # Devices not related to the new gadget layer depend on CONFIG_USB_DEVICE
34 ifdef CONFIG_USB_DEVICE
35 COBJS-y += core.o
36 COBJS-y += ep0.o
37 COBJS-$(CONFIG_DW_UDC) += designware_udc.o
38 COBJS-$(CONFIG_OMAP1510) += omap1510_udc.o
39 COBJS-$(CONFIG_OMAP1610) += omap1510_udc.o
40 COBJS-$(CONFIG_MPC885_FAMILY) += mpc8xx_udc.o
41 COBJS-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
42 endif
43 endif
44
45 COBJS   := $(COBJS-y)
46 SRCS    := $(COBJS:.o=.c)
47 OBJS    := $(addprefix $(obj),$(COBJS))
48
49 all:    $(LIB)
50
51 $(LIB): $(obj).depend $(OBJS)
52         $(call cmd_link_o_target, $(OBJS))
53
54 #########################################################################
55
56 # defines $(obj).depend target
57 include $(SRCTREE)/rules.mk
58
59 sinclude $(obj).depend
60
61 #########################################################################