Makefile 1002 B

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # Makefile for DWC_otg Highspeed USB controller driver
  3. #
  4. DWC_OTG_NAME = dwc_otg
  5. COMMON_PORT = common_port
  6. BUS_INTERFACE = -DLM_INTERFACE
  7. KBUILD_CPPFLAGS += -DDEBUG
  8. KBUILD_CPPFLAGS += -Dlinux -DDWC_HS_ELECT_TST
  9. #KBUILD_CPPFLAGS += -DDWC_EN_ISOC
  10. KBUILD_CPPFLAGS += -I$(srctree)/$(src)/$(COMMON_PORT)
  11. #KBUILD_CPPFLAGS += -I$(PORTLIB)
  12. KBUILD_CPPFLAGS += -DDWC_LINUX
  13. KBUILD_CPPFLAGS += $(CFI)
  14. KBUILD_CPPFLAGS += $(BUS_INTERFACE)
  15. #KBUILD_CPPFLAGS += -DDWC_DEV_SRPCAP
  16. $(DWC_OTG_NAME)-objs := dwc_otg_driver.o dwc_otg_attr.o
  17. $(DWC_OTG_NAME)-objs += dwc_otg_cil.o dwc_otg_cil_intr.o
  18. $(DWC_OTG_NAME)-objs += dwc_otg_pcd_linux.o dwc_otg_pcd.o dwc_otg_pcd_intr.o
  19. $(DWC_OTG_NAME)-objs += dwc_otg_hcd.o dwc_otg_hcd_linux.o dwc_otg_hcd_intr.o dwc_otg_hcd_queue.o dwc_otg_hcd_ddma.o
  20. $(DWC_OTG_NAME)-objs += dwc_otg_adp.o
  21. ifneq ($(CFI),)
  22. $(DWC_OTG_NAME)-objs += dwc_otg_cfi.o
  23. endif
  24. $(DWC_OTG_NAME)-objs += $(COMMON_PORT)/dwc_common_linux.o
  25. obj-$(CONFIG_USB_DWC_OTG_HCD) += $(DWC_OTG_NAME).o