# drivers/barcelona/gps/Makefile
#
# Makefile for the Barcelona GPS driver.
#
# Copyright (C) 2004,2005 TomTom BV
# Author: Dimitry Andric
#
# 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.
###############################################################################
$(warning GPS_CHIP_ID != common)
# Necessary Check
ifeq ($(CONFIG_MTK_GPS_SUPPORT), y)
ifneq ($(KERNEL_OUT),)
ccflags-y += -imacros $(KERNEL_OUT)/include/generated/autoconf.h
endif
ifndef TOP
TOP := $(srctree)/..
endif
ifeq ($(TARGET_BUILD_VARIANT),$(filter $(TARGET_BUILD_VARIANT),userdebug user))
ldflags-y += -s
endif
# Force build fail on modpost warning
KBUILD_MODPOST_FAIL_ON_WARNINGS := y
###############################################################################
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/power_throttling
###############################################################################
GPS_PWR_TEST_SUPPORT :=n
MODULE_NAME := gps_pwr
obj-m += $(MODULE_NAME).o
$(MODULE_NAME)-objs += gps_pwr.o
ifeq ($(GPS_PWR_TEST_SUPPORT),y)
ccflags-y += -DGPS_PWR_TEST_ENABLE
endif
$(warning gps_pwr has been build)
endif #ifeq ($(CONFIG_MTK_GPS_SUPPORT), y)
# EOF