summaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/combo_mt66xx/fm/Makefile
blob: 11c3ca616a71d4ead5924ebb8c82daeca8be5734 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Makefile generated by Mediatek
CONFIG_MTK_COMBO_FM:=m
#mt6628 fm
ccflags-y += -I$(src)/inc \
			 -I$(src)/mt6628/inc \
			 -I$(src)/../wmt/include \
			 -I$(src)/../wmt/linux/include \
			 -I$(src)/cust/mt6628 \
			 -I$(src)/private/inc \
			 -DMT6628_FM

obj-$(CONFIG_MTK_COMBO_FM) += mtk_fm_drv.o
	mtk_fm_drv-objs	+=  core/fm_module.o \
						core/fm_main.o \
						core/fm_config.o \
						core/fm_rds_parser.o \
						core/fm_patch.o \
						core/fm_utils.o \
						core/fm_link.o \
						core/fm_eint.o  \
						mt6628/pub/mt6628_fm_lib.o \
						mt6628/pub/mt6628_fm_rds.o \
						mt6628/pub/mt6628_fm_cmd.o \
						mt6628/pub/mt6628_fm_config.o
#mt6620 fm start
	ccflags-y += -I$(src)/inc \
					-I$(src)/mt6620/inc \
					-I$(src)/../wmt/include \
					-I$(src)/../wmt/linux/include \
					-I$(src)/cust/mt6620 \
					-I$(src)/private/inc \
					-DMT6620_FM

	obj-$(CONFIG_MTK_COMBO_FM) += mtk_fm_drv.o
	mtk_fm_drv-objs	+= core/fm_module.o \
					core/fm_main.o \
					core/fm_config.o \
					core/fm_rds_parser.o \
					core/fm_patch.o \
					core/fm_utils.o \
					core/fm_link.o \
					core/fm_eint.o \
					mt6620/pub/mt6620_fm_lib.o \
					mt6620/pub/mt6620_fm_rds.o \
					mt6620/pub/mt6620_fm_cmd.o \
					mt6620/pub/mt6620_fm_config.o

# MT6626 FM driver 
ifeq ($(CONFIG_MTK_COMBO_CHIP_MT6626), y)
FM_CHIP = mt6626
FM_CHIP_PATH = $(FM_CHIP)/pub/$(FM_CHIP)
ccflags-y := -I$(src)/inc \
				-I$(src)/$(FM_CHIP)/inc \
				-I$(src)/cust/$(FM_CHIP) \
				-I$(src)/private/inc \
				-DMT6626_FM

obj-$(CONFIG_MTK_COMBO_FM) += mtk_fm_drv.o
mtk_fm_drv-objs	:= core/fm_module.o \
				core/fm_main.o \
				core/fm_config.o \
				core/fm_patch.o \
				core/fm_rds_parser.o \
				core/fm_utils.o \
				core/fm_link.o \
				$(FM_CHIP_PATH)_fm_lib.o \
				$(FM_CHIP_PATH)_fm_rds.o \
				$(FM_CHIP_PATH)_fm_link.o \
				$(FM_CHIP_PATH)_fm_eint.o
endif