diff options
Diffstat (limited to 'target/linux/realtek/files/drivers/usb/dwc_otg/Makefile')
-rw-r--r-- | target/linux/realtek/files/drivers/usb/dwc_otg/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/realtek/files/drivers/usb/dwc_otg/Makefile b/target/linux/realtek/files/drivers/usb/dwc_otg/Makefile new file mode 100644 index 000000000..54140d00d --- /dev/null +++ b/target/linux/realtek/files/drivers/usb/dwc_otg/Makefile @@ -0,0 +1,44 @@ +# +# Makefile for DWC_otg Highspeed USB controller driver +# + +ifeq ($(CONFIG_DWC_OTG_DEBUG),y) +EXTRA_CFLAGS += -DDEBUG +endif + +# Use one of the following flags to compile the software in host-only or +# device-only mode. + +ifeq ($(CONFIG_DWC_OTG_HOST_ONLY),y) +EXTRA_CFLAGS += -DDWC_HOST_ONLY +endif + +ifeq ($(CONFIG_DWC_OTG_DEVICE_ONLY),y) +EXTRA_CFLAGS += -DDWC_DEVICE_ONLY +endif + +#EXTRA_CFLAGS += -Dlinux -DDWC_HS_ELECT_TST +EXTRA_CFLAGS += -Dlinux + +obj-$(CONFIG_DWC_OTG) += dwc_otg.o + +#dwc_otg-objs := dwc_otg_driver.o dwc_otg_attr.o +dwc_otg-objs := dwc_otg_driver.o +dwc_otg-objs += dwc_otg_cil.o dwc_otg_cil_intr.o + + +ifeq ($(CONFIG_USB_OTG_DEVICE_RTL8672),y) +dwc_otg-objs += dwc_otg_pcd.o dwc_otg_pcd_intr.o +endif + +ifeq ($(CONFIG_USB),y) +dwc_otg-objs += dwc_otg_hcd.o dwc_otg_hcd_intr.o dwc_otg_hcd_queue.o +endif + + +obj-y += lm.o +#obj-y += dwc_otg.o + +obj-y += rtk_otg_autodet.o +clean: + rm -rf *.o *.ko .*cmd *.mod.c .tmp_versions
\ No newline at end of file |