Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # drivers/barcelona/gps/Makefile
  2. #
  3. # Makefile for the Barcelona GPS driver.
  4. #
  5. # Copyright (C) 2004,2005 TomTom BV <http://www.tomtom.com/>
  6. # Author: Dimitry Andric <dimitry.andric@tomtom.com>
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License version 2 as
  10. # published by the Free Software Foundation.
  11. ifneq ($(filter "MT6620E3",$(CONFIG_MTK_COMBO_CHIP)),)
  12. ccflags-y += -DSOC_CO_CLOCK_FLAG=0
  13. ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=0
  14. ccflags-y += -DREMOVE_MK_NODE=1
  15. ccflags-y += \
  16. -I$(src)/../common/common_detect \
  17. -I$(src)/../common/combo/include \
  18. -I$(src)/../common/combo/linux/include
  19. endif
  20. ifneq ($(filter "MT6628",$(CONFIG_MTK_COMBO_CHIP)),)
  21. ccflags-y += -DSOC_CO_CLOCK_FLAG=0
  22. ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=0
  23. ccflags-y += -DREMOVE_MK_NODE=1
  24. ccflags-y += \
  25. -I$(src)/../common/common_detect \
  26. -I$(src)/../common/combo/include \
  27. -I$(src)/../common/combo/linux/include
  28. endif
  29. ifneq ($(filter "MT6630",$(CONFIG_MTK_COMBO_CHIP)),)
  30. ccflags-y += -DSOC_CO_CLOCK_FLAG=0
  31. ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=0
  32. ccflags-y += -DREMOVE_MK_NODE=1
  33. ccflags-y += \
  34. -I$(src)/../common/common_detect \
  35. -I$(src)/../common/combo/include \
  36. -I$(src)/../common/combo/linux/include
  37. endif
  38. ifneq ($(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)),)
  39. ccflags-y += -DSOC_CO_CLOCK_FLAG=1
  40. ccflags-y += -DWMT_CREATE_NODE_DYNAMIC=1
  41. ccflags-y += -DREMOVE_MK_NODE=0
  42. ccflags-y += \
  43. -I$(src)/../common/common_detect \
  44. -I$(src)/../common/conn_soc/include \
  45. -I$(src)/../common/conn_soc/linux/include \
  46. -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/mach
  47. endif
  48. obj-$(CONFIG_MTK_COMBO_GPS) += stp_chrdev_gps.o
  49. obj-$(CONFIG_MTK_GPS) += gps.o
  50. # EOF