blob: 1e607ef5c934226caf641eb3b8a91dcfb462fd3d [file] [log] [blame]
# 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.
MODULE_NAME := gps_drv
EXTRA_SYMBOLS = ${TOPDIR}/tmp/work/${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/mt66xx-wmt-drv/1.0-r0/mt66xx-wmt-drv-1.0/Module.symvers
ccflags-y += -DSOC_CO_CLOCK_FLAG=1
ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=1
ccflags-y += -DREMOVE_MK_NODE=0
ccflags-y += \
-I$(CONNECTIVITY_SRC)/wmt_mt66xx/common_main/$(MTK_PLATFORM)/include \
-I$(srctree)/drivers/misc/mediatek/include/mt-plat \
-I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach
ccflags-y += \
-I$(CONNECTIVITY_SRC)/wmt_mt66xx/common_main/include \
-I$(CONNECTIVITY_SRC)/wmt_mt66xx/common_main/linux/include \
-I$(CONNECTIVITY_SRC)/wmt_mt66xx/common_main/core/include \
-I$(CONNECTIVITY_SRC)/wmt_mt66xx/common_main/platform/include
WMT_SRC_FOLDER := $(TOP)/vendor/mediatek/kernel_modules/connectivity/common
ccflags-y += \
-I$(WMT_SRC_FOLDER)/common_main/include \
-I$(WMT_SRC_FOLDER)/common_main/linux/include \
-I$(WMT_SRC_FOLDER)/common_main/core/include \
-I$(WMT_SRC_FOLDER)/common_main/platform/include \
-I$(srctree)/drivers/misc/mediatek/include/mt-plat
ccflags-y += -D MTK_WCN_WMT_STP_EXP_SYMBOL_ABSTRACT
ifeq ($(CONFIG_MTK_CONN_LTE_IDC_SUPPORT),y)
ccflags-y += -D WMT_IDC_SUPPORT=1
else
ccflags-y += -D WMT_IDC_SUPPORT=0
endif
ifeq ($(CONFIG_WLAN_DRV_BUILD_IN),y)
$(warning $(MODULE_NAME) build-in boot.img)
obj-y += $(MODULE_NAME).o
else
$(warning $(MODULE_NAME) is kernel module)
obj-m += $(MODULE_NAME).o
endif
ifeq ($(CONFIG_MTK_CONN_MT3303_CHIP_SUPPORT),y)
ccflags-y += -D CONFIG_MTK_GPS_SUPPORT
$(MODULE_NAME)-objs += gps.o
else
ifeq ($(PLATFORM),2731_YOCTO_33xx)
ccflags-y += -D CONFIG_MTK_GPS_SUPPORT
$(MODULE_NAME)-objs += gps.o
else
$(MODULE_NAME)-objs += stp_chrdev_gps.o
endif
endif
ifneq ($(CONFIG_MTK_GPS_EMI),)
$(MODULE_NAME)-objs += gps_emi.o
endif
# EOF