2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
5 include $(TOPDIR
)/config.mk
7 LIB
:= $(obj
)libusb_musb-new.o
9 COBJS-
$(CONFIG_MUSB_GADGET
) += musb_gadget.o musb_gadget_ep0.o musb_core.o
10 COBJS-
$(CONFIG_MUSB_GADGET
) += musb_uboot.o
11 COBJS-
$(CONFIG_MUSB_HOST
) += musb_host.o musb_core.o musb_uboot.o
12 COBJS-
$(CONFIG_USB_MUSB_DSPS
) += musb_dsps.o
13 COBJS-
$(CONFIG_USB_MUSB_AM35X
) += am35x.o
14 COBJS-
$(CONFIG_USB_MUSB_OMAP2PLUS
) += omap2430.o
16 CFLAGS_NO_WARN
:= $(call cc-option
,-Wno-unused-variable
) \
17 $(call cc-option
,-Wno-unused-but-set-variable
) \
18 $(call cc-option
,-Wno-unused-label
)
19 CFLAGS
+= $(CFLAGS_NO_WARN
)
21 COBJS
:= $(sort $(COBJS-y
))
22 SRCS
:= $(COBJS
:.o
=.c
)
23 OBJS
:= $(addprefix $(obj
),$(COBJS
))
28 $(LIB
): $(obj
).depend
$(OBJS
)
29 $(call cmd_link_o_target
, $(OBJS
))
31 #########################################################################
33 # defines $(obj).depend target
34 include $(SRCTREE
)/rules.mk
36 sinclude
$(obj
).depend
38 #########################################################################