Kbuild 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. KDIR := $(TOP)/kernel_platform/common
  2. ifeq ($(CONFIG_ARCH_WAIPIO), y)
  3. include $(TOUCH_ROOT)/config/gki_waipiotouch.conf
  4. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_waipiotouchconf.h
  5. endif
  6. #ifeq ($(CONFIG_ARCH_KALAMA), y)
  7. include $(TOUCH_ROOT)/config/gki_kalamatouch.conf
  8. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_kalamatouchconf.h
  9. #endif
  10. #ifeq ($(CONFIG_ARCH_KHAJE), y)
  11. include $(TOUCH_ROOT)/config/gki_khajetouch.conf
  12. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_khajetouchconf.h
  13. #endif
  14. #ifeq ($(CONFIG_ARCH_PINEAPPLE), y)
  15. include $(TOUCH_ROOT)/config/gki_pineappletouch.conf
  16. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_pineappletouchconf.h
  17. #ifeq ($(CONFIG_ARCH_MONACO), y)
  18. include $(TOUCH_ROOT)/config/gki_monacotouch.conf
  19. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_monacotouchconf.h
  20. #endif
  21. LINUX_INC += -Iinclude/linux \
  22. -Iinclude/linux/drm \
  23. -Iinclude/linux/gunyah \
  24. -Iinclude/linux/input
  25. CDEFINES += -DANI_LITTLE_BYTE_ENDIAN \
  26. -DANI_LITTLE_BIT_ENDIAN \
  27. -DDOT11F_LITTLE_ENDIAN_HOST \
  28. -DANI_COMPILER_TYPE_GCC \
  29. -DANI_OS_TYPE_ANDROID=6 \
  30. -DPTT_SOCK_SVC_ENABLE \
  31. -Wall\
  32. -Werror\
  33. -D__linux__
  34. KBUILD_CPPFLAGS += $(CDEFINES)
  35. ccflags-y += $(LINUX_INC)
  36. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  37. EXTRA_CFLAGS += -Wmaybe-uninitialized
  38. endif
  39. ifeq ($(call cc-option-yn, -Wheader-guard),y)
  40. EXTRA_CFLAGS += -Wheader-guard
  41. endif
  42. ######### CONFIG_MSM_TOUCH ########
  43. ifeq ($(CONFIG_TOUCHSCREEN_SYNAPTICS_DSX), y)
  44. LINUX_INC += -include $(TOUCH_ROOT)/synaptics_dsx/synaptics_dsx.h
  45. LINUX_INC += -include $(TOUCH_ROOT)/synaptics_dsx/synaptics_dsx_core.h
  46. synaptics_dsx-y := \
  47. ./synaptics_dsx/synaptics_dsx_core.o \
  48. ./synaptics_dsx/synaptics_dsx_i2c.o
  49. obj-$(CONFIG_MSM_TOUCH) += synaptics_dsx.o
  50. endif
  51. ifeq ($(CONFIG_TOUCH_FOCALTECH), y)
  52. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_common.h
  53. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_config.h
  54. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_core.h
  55. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_flash.h
  56. focaltech_fts-y := \
  57. ./focaltech_touch/focaltech_core.o \
  58. ./focaltech_touch/focaltech_ex_fun.o \
  59. ./focaltech_touch/focaltech_ex_mode.o \
  60. ./focaltech_touch/focaltech_gesture.o \
  61. ./focaltech_touch/focaltech_esdcheck.o \
  62. ./focaltech_touch/focaltech_point_report_check.o \
  63. ./focaltech_touch/focaltech_i2c.o \
  64. ./focaltech_touch/focaltech_flash.o \
  65. ./focaltech_touch/focaltech_flash/focaltech_upgrade_ft3518.o
  66. obj-$(CONFIG_MSM_TOUCH) += focaltech_fts.o
  67. endif
  68. ifeq ($(CONFIG_TOUCHSCREEN_NT36XXX_I2C), y)
  69. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx.h
  70. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx_mem_map.h
  71. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx_mp_ctrlram.h
  72. nt36xxx-i2c-y := \
  73. ./nt36xxx/nt36xxx.o \
  74. ./nt36xxx/nt36xxx_fw_update.o \
  75. ./nt36xxx/nt36xxx_ext_proc.o \
  76. ./nt36xxx/nt36xxx_mp_ctrlram.o
  77. obj-$(CONFIG_MSM_TOUCH) += nt36xxx-i2c.o
  78. endif
  79. ifeq ($(CONFIG_TOUCHSCREEN_GOODIX_BRL), y)
  80. LINUX_INC += -include $(TOUCH_ROOT)/goodix_berlin_driver/goodix_ts_core.h
  81. LINUX_INC += -include $(TOUCH_ROOT)/qts/qts_core.h
  82. LINUX_INC += -include $(TOUCH_ROOT)/qts/qts_core_common.h
  83. goodix_ts-y := \
  84. ./goodix_berlin_driver/goodix_ts_core.o \
  85. ./goodix_berlin_driver/goodix_brl_hw.o \
  86. ./goodix_berlin_driver/goodix_cfg_bin.o \
  87. ./goodix_berlin_driver/goodix_ts_utils.o \
  88. ./goodix_berlin_driver/goodix_brl_fwupdate.o \
  89. ./goodix_berlin_driver/goodix_ts_tools.o \
  90. ./goodix_berlin_driver/goodix_ts_gesture.o \
  91. ./goodix_berlin_driver/goodix_ts_inspect.o \
  92. ./goodix_berlin_driver/goodix_brl_spi.o \
  93. ./goodix_berlin_driver/goodix_brl_i2c.o \
  94. ./qts/qts_core.o
  95. obj-$(CONFIG_MSM_TOUCH) += goodix_ts.o
  96. endif
  97. ifeq ($(CONFIG_TOUCHSCREEN_ATMEL_MXT), y)
  98. atmel_mxt_ts-y := \
  99. ./atmel_mxt/atmel_mxt_ts.o
  100. obj-$(CONFIG_MSM_TOUCH) += atmel_mxt_ts.o
  101. endif
  102. ifeq ($(CONFIG_TOUCHSCREEN_DUMMY), y)
  103. dummy_ts-y := ./dummy_touch/dummy_touch.o
  104. obj-$(CONFIG_MSM_TOUCH) += dummy_ts.o
  105. endif
  106. ifeq ($(CONFIG_TOUCHSCREEN_SYNAPTICS_TCM), y)
  107. synaptics_tcm_ts-y := \
  108. ./synaptics_tcm/synaptics_tcm_core.o \
  109. ./synaptics_tcm/synaptics_tcm_i2c.o \
  110. ./synaptics_tcm/synaptics_tcm_touch.o
  111. obj-$(CONFIG_MSM_TOUCH) += synaptics_tcm_ts.o
  112. endif
  113. ifeq ($(CONFIG_TOUCHSCREEN_PARADE), y)
  114. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_regs.h
  115. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_core.h
  116. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_platform.h
  117. pt_ts-y := \
  118. ./pt/pt_core.o \
  119. ./pt/pt_mt_common.o \
  120. ./pt/pt_platform.o \
  121. ./pt/pt_devtree.o \
  122. ./pt/pt_btn.o \
  123. ./pt/pt_mtb.o \
  124. ./pt/pt_proximity.o
  125. obj-$(CONFIG_MSM_TOUCH) += pt_ts.o
  126. endif
  127. ifeq ($(CONFIG_TOUCHSCREEN_PARADE_I2C), y)
  128. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_regs.h
  129. pt_i2c-y := \
  130. ./pt/pt_i2c.o
  131. obj-$(CONFIG_MSM_TOUCH) += pt_i2c.o
  132. endif
  133. ifeq ($(CONFIG_TOUCHSCREEN_PARADE_DEVICE_ACCESS), y)
  134. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_regs.h
  135. pt_device_access-y := \
  136. ./pt/pt_device_access.o
  137. obj-$(CONFIG_MSM_TOUCH) += pt_device_access.o
  138. endif
  139. CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"