blob: c9656d77717df0163261b1e165f870aa2248d15b (
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
49
50
51
52
53
|
# drivers/barcelona/gps/Makefile
#
# Makefile for the Barcelona GPS driver.
#
# Copyright (C) 2004,2005 TomTom BV <http://www.tomtom.com/>
# Author: Dimitry Andric <dimitry.andric@tomtom.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
ifneq ($(filter "MT6620E3",$(CONFIG_MTK_COMBO_CHIP)),)
ccflags-y += -DSOC_CO_CLOCK_FLAG=0
ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=0
ccflags-y += -DREMOVE_MK_NODE=1
ccflags-y += \
-I$(src)/../common/common_detect \
-I$(src)/../common/combo/include \
-I$(src)/../common/combo/linux/include
endif
ifneq ($(filter "MT6628",$(CONFIG_MTK_COMBO_CHIP)),)
ccflags-y += -DSOC_CO_CLOCK_FLAG=0
ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=0
ccflags-y += -DREMOVE_MK_NODE=1
ccflags-y += \
-I$(src)/../common/common_detect \
-I$(src)/../common/combo/include \
-I$(src)/../common/combo/linux/include
endif
ifneq ($(filter "MT6630",$(CONFIG_MTK_COMBO_CHIP)),)
ccflags-y += -DSOC_CO_CLOCK_FLAG=0
ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=0
ccflags-y += -DREMOVE_MK_NODE=1
ccflags-y += \
-I$(src)/../common/common_detect \
-I$(src)/../common/combo/include \
-I$(src)/../common/combo/linux/include
endif
ifneq ($(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)),)
ccflags-y += -DSOC_CO_CLOCK_FLAG=1
ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=1
ccflags-y += -DREMOVE_MK_NODE=0
ccflags-y += \
-I$(src)/../common/common_detect \
-I$(src)/../common/conn_soc/include \
-I$(src)/../common/conn_soc/linux/include \
-I$(srctree)/drivers/misc/mediatek/mach/$(MTK_PLATFORM)/include/mach
endif
obj-$(CONFIG_MTK_COMBO_GPS) += stp_chrdev_gps.o
obj-$(CONFIG_MTK_GPS) += gps.o
# EOF
|