subdir-ccflags-y += -DWMT_PLAT_ALPS=0
subdir-ccflags-y += -DWMT_UART_RX_MODE_WORK=0 # 1. work thread 0. tasklet
subdir-ccflags-y += -DREMOVE_MK_NODE=1
subdir-ccflags-y += -DWMT_SDIO_MODE=1
subdir-ccflags-y += -DMTK_WCN_CMB_FOR_SDIO_1V_AUTOK=0
subdir-ccflags-y += -DCFG_WMT_LTE_COEX_HANDLING=0
subdir-ccflags-y += -DMTK_BT_HCI=0
subdir-ccflags-y += -DMTK_BLUEANGEL=1
subdir-ccflags-y += -DSTP_DBG=0
subdir-ccflags-y += -DDEBUG
ccflags-y += \
	-I$(src)/linux/include \
	-I$(src)/core/include \
	-I$(src)/include

COMMON_SRC_PATH := $(src)
COMMON_OBJ_PATH := $(src)


ifeq ($(CONFIG_MTK_COMBO),m)

# WMT DRIVER
obj-$(CONFIG_MTK_COMBO_COMM) += mtk_stp_wmt.o
# WMT DRIVER-core part
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

mtk_stp_wmt-objs	+= core/wmt_ic_6620.o
mtk_stp_wmt-objs	+= core/wmt_ic_6628.o
mtk_stp_wmt-objs	+= core/wmt_ic_6630.o

# WMT DRIVER-linux private part
mtk_stp_wmt-objs	+= linux/wmt_dev.o

# WMT DRIVER-OSAL
mtk_stp_wmt-objs	+= linux/osal_wmt.o
# WMT DRIVER-platform implementation
#ccflags-y += -D WMT_PLAT_ALPS #Jake modify

# WMT DRIVER-platform part, specified by string CONFIG_MTK_COMBO_PLAT_PATH
PLAT := $(shell echo $(CONFIG_MTK_COMBO_PLAT_PATH))


#obj-y += platform/$(PLAT)/mtk_wcn_cmb_stub_$(PLAT).o
mtk_stp_wmt-objs	+= platform/$(PLAT)/wmt_plat_$(PLAT).o
mtk_stp_wmt-objs	+= platform/$(PLAT)/wmt_plat_stub.o

# FIXME: select desired hw according to project configuration
mtk_stp_wmt-objs	+= platform/$(PLAT)/mtk_wcn_cmb_hw.o
mtk_stp_wmt-objs	+= core/stp_exp.o core/stp_core.o core/psm_core.o core/btm_core.o linux/stp_dbg.o

obj-$(CONFIG_MTK_COMBO_COMM_UART) += mtk_stp_uart.o
mtk_stp_uart-objs	:= linux/stp_uart.o


obj-$(CONFIG_MTK_COMBO_COMM) += mtk_hif_sdio.o
mtk_hif_sdio-objs	:= linux/hif_sdio.o
#mtk_hif_sdio-objs	+= linux/hif_sdio_chrdev.o
#mtk_hif_sdio-objs	+= platform/$(PLAT)/mtk_wcn_cmb_hw.o
#mtk_hif_sdio-objs	+= platform/$(PLAT)/wmt_plat_$(PLAT).o
mtk_hif_sdio-objs	+= linux/osal_hif.o


obj-$(CONFIG_MTK_COMBO_COMM_SDIO) += mtk_stp_sdio.o
mtk_stp_sdio-objs	:= linux/stp_sdio.o
mtk_stp_sdio-objs	+= linux/osal_stp.o


obj-$(CONFIG_MTK_COMBO_BT) += mtk_stp_bt.o
mtk_stp_bt-objs		:= linux/stp_chrdev_bt.o

obj-$(CONFIG_MTK_COMBO_ANT) += mtk_stp_ant.o
mtk_stp_ant-objs	:= linux/stp_chrdev_ant.o

obj-$(CONFIG_MTK_COMBO_GPS) += mtk_stp_gps.o
mtk_stp_gps-objs	:= linux/stp_chrdev_gps.o


obj-$(CONFIG_MTK_COMBO_WIFI) += mtk_wmt_wifi.o
mtk_wmt_wifi-objs	:= linux/wmt_chrdev_wifi.o
endif

ifeq ($(CONFIG_MTK_COMBO),y)
obj-y += core/
obj-y += linux/
obj-y += platform/

endif
