Kbuild 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. endif
  18. ifeq ($(CONFIG_ARCH_MONACO), y)
  19. include $(TOUCH_ROOT)/config/gki_monacotouch.conf
  20. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_monacotouchconf.h
  21. endif
  22. ifeq ($(CONFIG_ARCH_KONA), y)
  23. include $(TOUCH_ROOT)/config/gki_konatouch.conf
  24. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_konatouchconf.h
  25. endif
  26. ifeq ($(CONFIG_ARCH_BLAIR), y)
  27. include $(TOUCH_ROOT)/config/gki_blairtouch.conf
  28. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_blairtouchconf.h
  29. endif
  30. ifeq ($(CONFIG_ARCH_CROW), y)
  31. include $(TOUCH_ROOT)/config/gki_crowtouch.conf
  32. LINUX_INC += -include $(TOUCH_ROOT)/config/gki_crowtouchconf.h
  33. endif
  34. LINUX_INC += -Iinclude/linux \
  35. -Iinclude/linux/drm \
  36. -Iinclude/linux/gunyah \
  37. -Iinclude/linux/input
  38. CDEFINES += -DANI_LITTLE_BYTE_ENDIAN \
  39. -DANI_LITTLE_BIT_ENDIAN \
  40. -DDOT11F_LITTLE_ENDIAN_HOST \
  41. -DANI_COMPILER_TYPE_GCC \
  42. -DANI_OS_TYPE_ANDROID=6 \
  43. -DPTT_SOCK_SVC_ENABLE \
  44. -Wall\
  45. -Werror\
  46. -D__linux__
  47. KBUILD_CPPFLAGS += $(CDEFINES)
  48. ccflags-y += $(LINUX_INC)
  49. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  50. EXTRA_CFLAGS += -Wmaybe-uninitialized
  51. endif
  52. ifeq ($(call cc-option-yn, -Wheader-guard),y)
  53. EXTRA_CFLAGS += -Wheader-guard
  54. endif
  55. ######### CONFIG_MSM_TOUCH ########
  56. ifeq ($(CONFIG_TOUCHSCREEN_SYNAPTICS_DSX), y)
  57. LINUX_INC += -include $(TOUCH_ROOT)/synaptics_dsx/synaptics_dsx.h
  58. LINUX_INC += -include $(TOUCH_ROOT)/synaptics_dsx/synaptics_dsx_core.h
  59. synaptics_dsx-y := \
  60. ./synaptics_dsx/synaptics_dsx_core.o \
  61. ./synaptics_dsx/synaptics_dsx_i2c.o
  62. obj-$(CONFIG_MSM_TOUCH) += synaptics_dsx.o
  63. endif
  64. ifeq ($(CONFIG_TOUCH_FOCALTECH), y)
  65. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_common.h
  66. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_config.h
  67. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_core.h
  68. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_flash.h
  69. focaltech_fts-y := \
  70. ./focaltech_touch/focaltech_core.o \
  71. ./focaltech_touch/focaltech_ex_fun.o \
  72. ./focaltech_touch/focaltech_ex_mode.o \
  73. ./focaltech_touch/focaltech_gesture.o \
  74. ./focaltech_touch/focaltech_esdcheck.o \
  75. ./focaltech_touch/focaltech_point_report_check.o \
  76. ./focaltech_touch/focaltech_i2c.o \
  77. ./focaltech_touch/focaltech_flash.o \
  78. ./focaltech_touch/focaltech_flash/focaltech_upgrade_ft3518.o
  79. obj-$(CONFIG_MSM_TOUCH) += focaltech_fts.o
  80. endif
  81. ifeq ($(CONFIG_TOUCHSCREEN_NT36XXX_I2C), y)
  82. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx.h
  83. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx_mem_map.h
  84. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx_mp_ctrlram.h
  85. nt36xxx-i2c-y := \
  86. ./nt36xxx/nt36xxx.o \
  87. ./nt36xxx/nt36xxx_fw_update.o \
  88. ./nt36xxx/nt36xxx_ext_proc.o \
  89. ./nt36xxx/nt36xxx_mp_ctrlram.o
  90. obj-$(CONFIG_MSM_TOUCH) += nt36xxx-i2c.o
  91. endif
  92. ifeq ($(CONFIG_TOUCHSCREEN_GOODIX_BRL), y)
  93. LINUX_INC += -include $(TOUCH_ROOT)/goodix_berlin_driver/goodix_ts_core.h
  94. LINUX_INC += -include $(TOUCH_ROOT)/qts/qts_core.h
  95. LINUX_INC += -include $(TOUCH_ROOT)/qts/qts_core_common.h
  96. goodix_ts-y := \
  97. ./goodix_berlin_driver/goodix_ts_core.o \
  98. ./goodix_berlin_driver/goodix_brl_hw.o \
  99. ./goodix_berlin_driver/goodix_cfg_bin.o \
  100. ./goodix_berlin_driver/goodix_ts_utils.o \
  101. ./goodix_berlin_driver/goodix_brl_fwupdate.o \
  102. ./goodix_berlin_driver/goodix_ts_tools.o \
  103. ./goodix_berlin_driver/goodix_ts_gesture.o \
  104. ./goodix_berlin_driver/goodix_ts_inspect.o \
  105. ./goodix_berlin_driver/goodix_brl_spi.o \
  106. ./goodix_berlin_driver/goodix_brl_i2c.o \
  107. ./qts/qts_core.o
  108. obj-$(CONFIG_MSM_TOUCH) += goodix_ts.o
  109. endif
  110. ifeq ($(CONFIG_TOUCHSCREEN_ATMEL_MXT), y)
  111. atmel_mxt_ts-y := \
  112. ./atmel_mxt/atmel_mxt_ts.o
  113. obj-$(CONFIG_MSM_TOUCH) += atmel_mxt_ts.o
  114. endif
  115. ifeq ($(CONFIG_TOUCHSCREEN_DUMMY), y)
  116. dummy_ts-y := ./dummy_touch/dummy_touch.o
  117. obj-$(CONFIG_MSM_TOUCH) += dummy_ts.o
  118. endif
  119. ifeq ($(CONFIG_TOUCHSCREEN_SYNAPTICS_TCM), y)
  120. synaptics_tcm_ts-y := \
  121. ./synaptics_tcm/synaptics_tcm_core.o \
  122. ./synaptics_tcm/synaptics_tcm_i2c.o \
  123. ./synaptics_tcm/synaptics_tcm_touch.o
  124. obj-$(CONFIG_MSM_TOUCH) += synaptics_tcm_ts.o
  125. endif
  126. ifneq ($(CONFIG_ARCH_PINEAPPLE), y)
  127. ifeq ($(CONFIG_TOUCHSCREEN_PARADE), y)
  128. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_regs.h
  129. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_core.h
  130. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_platform.h
  131. pt_ts-y := \
  132. ./pt/pt_core.o \
  133. ./pt/pt_mt_common.o \
  134. ./pt/pt_platform.o \
  135. ./pt/pt_devtree.o \
  136. ./pt/pt_btn.o \
  137. ./pt/pt_mtb.o \
  138. ./pt/pt_proximity.o
  139. obj-$(CONFIG_MSM_TOUCH) += pt_ts.o
  140. endif
  141. ifeq ($(CONFIG_TOUCHSCREEN_PARADE_I2C), y)
  142. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_regs.h
  143. pt_i2c-y := \
  144. ./pt/pt_i2c.o
  145. obj-$(CONFIG_MSM_TOUCH) += pt_i2c.o
  146. endif
  147. ifeq ($(CONFIG_TOUCHSCREEN_PARADE_DEVICE_ACCESS), y)
  148. LINUX_INC += -include $(TOUCH_ROOT)/pt/pt_regs.h
  149. pt_device_access-y := \
  150. ./pt/pt_device_access.o
  151. obj-$(CONFIG_MSM_TOUCH) += pt_device_access.o
  152. endif
  153. ifeq ($(CONFIG_TOUCHSCREEN_RM_TS), y)
  154. LINUX_INC += -include $(TOUCH_ROOT)/raydium/Config.h
  155. LINUX_INC += -include $(TOUCH_ROOT)/raydium/drv_interface.h
  156. LINUX_INC += -include $(TOUCH_ROOT)/raydium/rad_fw_image_30.h
  157. LINUX_INC += -include $(TOUCH_ROOT)/raydium/raydium_driver.h
  158. LINUX_INC += -include $(TOUCH_ROOT)/raydium/raydium_selftest.h
  159. LINUX_INC += -include $(TOUCH_ROOT)/raydium/tpselftest_30.h
  160. LINUX_INC += -include $(TOUCH_ROOT)/raydium/chip_raydium/f303_ic_control.h
  161. LINUX_INC += -include $(TOUCH_ROOT)/raydium/chip_raydium/f303_ic_reg.h
  162. LINUX_INC += -include $(TOUCH_ROOT)/raydium/chip_raydium/f303_ic_test.h
  163. LINUX_INC += -include $(TOUCH_ROOT)/raydium/chip_raydium/ic_drv_global.h
  164. LINUX_INC += -include $(TOUCH_ROOT)/raydium/chip_raydium/ic_drv_interface.h
  165. raydium_ts-y := \
  166. ./raydium/drv_interface.o \
  167. ./raydium/raydium_driver.o \
  168. ./raydium/raydium_fw_update.o \
  169. ./raydium/raydium_selftest.o \
  170. ./raydium/raydium_sysfs.o \
  171. ./raydium/chip_raydium/f303_ic_control.o \
  172. ./raydium/chip_raydium/f303_ic_test.o \
  173. ./raydium/chip_raydium/ic_drv_global.o \
  174. ./raydium/chip_raydium/ic_drv_interface.o
  175. obj-$(CONFIG_MSM_TOUCH) += raydium_ts.o
  176. endif
  177. endif # pineapple
  178. CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"