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