Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. subdir-ccflags-y += -DWMT_PLAT_ALPS=1
  2. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/
  3. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/eemcs/
  4. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/conn_md/include
  5. #subdir-ccflags-y += -I$(srctree)/arch/arm/mach-$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)/dct/dct
  6. subdir-ccflags-y += -I$(DRVGEN_OUT)/inc
  7. subdir-ccflags-y += -DWMT_UART_RX_MODE_WORK=0 # 1. work thread 0. tasklet
  8. subdir-ccflags-y += -DREMOVE_MK_NODE=1
  9. subdir-ccflags-y += -DWMT_SDIO_MODE=1
  10. ccflags-y += \
  11. -I$(src)/linux/include \
  12. -I$(src)/core/include \
  13. -I$(src)/include \
  14. -I$(src)/../common_detect
  15. COMMON_SRC_PATH := $(src)
  16. COMMON_OBJ_PATH := $(src)
  17. ifeq ($(CONFIG_MTK_COMBO),m)
  18. # WMT DRIVER
  19. obj-$(CONFIG_MTK_COMBO_COMM) += mtk_stp_wmt.o
  20. # WMT DRIVER-core part
  21. mtk_stp_wmt-objs := core/wmt_core.o core/wmt_ctrl.o core/wmt_func.o core/wmt_lib.o core/wmt_conf.o core/wmt_dbg.o core/wmt_exp.o
  22. mtk_stp_wmt-objs += core/wmt_ic_6620.o
  23. mtk_stp_wmt-objs += core/wmt_ic_6628.o
  24. mtk_stp_wmt-objs += core/wmt_ic_6630.o
  25. # WMT DRIVER-linux private part
  26. mtk_stp_wmt-objs += linux/wmt_dev.o
  27. # WMT DRIVER-OSAL
  28. mtk_stp_wmt-objs += linux/osal.o
  29. # WMT DRIVER-platform implementation
  30. #ccflags-y += -D WMT_PLAT_ALPS #Jake modify
  31. # WMT DRIVER-platform part, specified by string CONFIG_MTK_COMBO_PLAT_PATH
  32. PLAT := $(shell echo $(CONFIG_MTK_COMBO_PLAT_PATH))
  33. #obj-y += platform/$(PLAT)/mtk_wcn_cmb_stub_$(PLAT).o
  34. mtk_stp_wmt-objs += platform/$(PLAT)/wmt_plat_$(PLAT).o
  35. mtk_stp_wmt-objs += platform/$(PLAT)/wmt_plat_stub.o
  36. # FIXME: select desired hw according to project configuration
  37. mtk_stp_wmt-objs += platform/$(PLAT)/mtk_wcn_cmb_hw.o
  38. mtk_stp_wmt-objs += core/stp_exp.o core/stp_core.o core/psm_core.o core/btm_core.o linux/stp_dbg.o
  39. obj-$(CONFIG_MTK_COMBO_COMM_UART) += mtk_stp_uart.o
  40. mtk_stp_uart-objs := linux/stp_uart.o
  41. obj-$(CONFIG_MTK_COMBO_COMM) += mtk_hif_sdio.o
  42. mtk_hif_sdio-objs := linux/hif_sdio.o
  43. #mtk_hif_sdio-objs += linux/hif_sdio_chrdev.o
  44. #mtk_hif_sdio-objs += platform/$(PLAT)/mtk_wcn_cmb_hw.o
  45. #mtk_hif_sdio-objs += platform/$(PLAT)/wmt_plat_$(PLAT).o
  46. mtk_hif_sdio-objs += linux/osal.o
  47. obj-$(CONFIG_MTK_COMBO_COMM_SDIO) += mtk_stp_sdio.o
  48. mtk_stp_sdio-objs := linux/stp_sdio.o
  49. mtk_stp_sdio-objs += linux/osal.o
  50. obj-$(CONFIG_MTK_COMBO_BT) += mtk_stp_bt.o
  51. mtk_stp_bt-objs := linux/stp_chrdev_bt.o
  52. obj-$(CONFIG_MTK_COMBO_ANT) += mtk_stp_ant.o
  53. mtk_stp_ant-objs := linux/stp_chrdev_ant.o
  54. obj-$(CONFIG_MTK_COMBO_WIFI) += mtk_wmt_wifi.o
  55. mtk_wmt_wifi-objs := linux/wmt_chrdev_wifi.o
  56. endif
  57. ifeq ($(CONFIG_MTK_COMBO),y)
  58. obj-y += core/
  59. obj-y += linux/
  60. obj-y += platform/
  61. endif