Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. subdir-ccflags-y += -I$(srctree)/arch/arm/mach-$(MTK_PLATFORM)/$(ARCH_MTK_PROJECT)/dct/dct
  2. subdir-ccflags-y += -DWMT_PLAT_ALPS=1
  3. COMBO_CHIP_SUPPORT := false
  4. ifneq ($(filter "MT6620E3",$(CONFIG_MTK_COMBO_CHIP)),)
  5. COMBO_CHIP_SUPPORT := true
  6. endif
  7. ifneq ($(filter "MT6628",$(CONFIG_MTK_COMBO_CHIP)),)
  8. COMBO_CHIP_SUPPORT := true
  9. endif
  10. ifneq ($(filter "MT6630",$(CONFIG_MTK_COMBO_CHIP)),)
  11. COMBO_CHIP_SUPPORT := true
  12. endif
  13. ifeq ($(COMBO_CHIP_SUPPORT), true)
  14. subdir-ccflags-y += -D MTK_WCN_COMBO_CHIP_SUPPORT
  15. ccflags-y += -I$(src)/../combo/linux/include
  16. endif
  17. ifneq ($(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)),)
  18. subdir-ccflags-y += -D MTK_WCN_SOC_CHIP_SUPPORT
  19. ccflags-y += -I$(src)/../conn_soc/linux/include
  20. endif
  21. ifeq ($(CONFIG_MTK_COMBO),y)
  22. ccflags-y += -I$(src)/drv_init/inc
  23. obj-y += mtk_wcn_stub_alps.o
  24. obj-y += wmt_stp_exp.o
  25. obj-y += wmt_gpio.o
  26. obj-y += wmt_detect.o
  27. obj-y += sdio_detect.o
  28. obj-y += wmt_detect_pwr.o
  29. obj-y += drv_init/
  30. endif
  31. ifeq ($(CONFIG_MTK_COMBO),m)
  32. obj-y += mtk_wcn_stub_alps.o
  33. obj-y += wmt_stp_exp.o
  34. obj-y += wmt_gpio.o
  35. obj-$(CONFIG_MTK_COMBO) += mtk_wmt_detect.o
  36. mtk_wmt_detect-objs := wmt_detect.o
  37. mtk_wmt_detect-objs += sdio_detect.o
  38. mtk_wmt_detect-objs += wmt_detect_pwr.o
  39. endif