Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. subdir-ccflags-y += \
  2. -I$(src)/linux/include \
  3. -I$(src)/linux/pri/include \
  4. -I$(src)/core/include \
  5. -I$(src)/include \
  6. -I$(src)/../common_detect \
  7. -I$(srctree)/drivers/misc/mediatek/btif/common/inc
  8. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/eccci/
  9. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/eemcs/
  10. subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/conn_md/include
  11. EXT_FLAG=_soc
  12. COMMON_SRC_PATH := $(src)
  13. COMMON_OBJ_PATH := $(src)
  14. ifeq ($(CONFIG_ARCH_MT6580), y)
  15. subdir-ccflags-y += -D CFG_WMT_READ_EFUSE_VCN33
  16. endif
  17. ifeq ($(CONFIG_MTK_COMBO), m)
  18. # WMT DRIVER
  19. obj-$(CONFIG_MTK_COMBO) += mtk_stp_wmt$(EXT_FLAG).o
  20. # WMT DRIVER-core part
  21. mtk_stp_wmt$(EXT_FLAG)-objs := core/wmt_core.o core/wmt_ctrl.o core/wmt_func.o core/wmt_ic_soc.o core/wmt_lib.o core/wmt_conf.o
  22. # WMT DRIVER-linux private part
  23. mtk_stp_wmt$(EXT_FLAG)-objs += linux/pri/wmt_dev.o linux/pri/wmt_exp.o
  24. mtk_stp_wmt$(EXT_FLAG)-objs += linux/pri/stp_btif.o
  25. # WMT DRIVER-OSAL
  26. mtk_stp_wmt$(EXT_FLAG)-objs += linux/pub/osal.o linux/pub/bgw_desense.o
  27. # WMT DRIVER-platform implementation
  28. ccflags-y += -D WMT_PLAT_ALPS
  29. # mtk_stp_wmt$(EXT_FLAG)-objs += platform/alps/wmt_plat_alps.o
  30. # mtk_stp_wmt$(EXT_FLAG)-objs += platform/alps/mtk_wcn_consys_hw.o
  31. mtk_stp_wmt$(EXT_FLAG)-objs += linux/pri/stp_exp.o core/stp_core.o core/psm_core.o core/btm_core.o linux/pri/stp_dbg.o
  32. # WMT stub part (built-in kernel image)
  33. # obj-y += platform/alps/mtk_wcn_consys_stub_alps.o
  34. obj-$(CONFIG_MTK_COMBO_BT) += mtk_stp_bt$(EXT_FLAG).o
  35. mtk_stp_bt$(EXT_FLAG)-objs := linux/pub/stp_chrdev_bt.o
  36. obj-$(CONFIG_MTK_COMBO_WIFI) += mtk_wmt_wifi$(EXT_FLAG).o
  37. mtk_wmt_wifi$(EXT_FLAG)-objs := linux/pub/wmt_chrdev_wifi.o
  38. endif
  39. ifeq ($(CONFIG_MTK_COMBO), y)
  40. subdir-ccflags-y += -D WMT_PLAT_ALPS
  41. obj-y += core/
  42. obj-y += linux/
  43. obj-y += $(subst ",,$(CONFIG_MTK_PLATFORM))/
  44. endif