Kbuild 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. LINUX_INC += -Iinclude/linux \
  19. -Iinclude/linux/drm \
  20. -Iinclude/linux/gunyah \
  21. -Iinclude/linux/input
  22. CDEFINES += -DANI_LITTLE_BYTE_ENDIAN \
  23. -DANI_LITTLE_BIT_ENDIAN \
  24. -DDOT11F_LITTLE_ENDIAN_HOST \
  25. -DANI_COMPILER_TYPE_GCC \
  26. -DANI_OS_TYPE_ANDROID=6 \
  27. -DPTT_SOCK_SVC_ENABLE \
  28. -Wall\
  29. -Werror\
  30. -D__linux__
  31. KBUILD_CPPFLAGS += $(CDEFINES)
  32. ccflags-y += $(LINUX_INC)
  33. ifeq ($(call cc-option-yn, -Wmaybe-uninitialized),y)
  34. EXTRA_CFLAGS += -Wmaybe-uninitialized
  35. endif
  36. ifeq ($(call cc-option-yn, -Wheader-guard),y)
  37. EXTRA_CFLAGS += -Wheader-guard
  38. endif
  39. ######### CONFIG_MSM_TOUCH ########
  40. ifeq ($(CONFIG_TOUCHSCREEN_SYNAPTICS_DSX), y)
  41. LINUX_INC += -include $(TOUCH_ROOT)/synaptics_dsx/synaptics_dsx.h
  42. LINUX_INC += -include $(TOUCH_ROOT)/synaptics_dsx/synaptics_dsx_core.h
  43. synaptics_dsx-y := \
  44. ./synaptics_dsx/synaptics_dsx_core.o \
  45. ./synaptics_dsx/synaptics_dsx_i2c.o
  46. obj-$(CONFIG_MSM_TOUCH) += synaptics_dsx.o
  47. endif
  48. ifeq ($(CONFIG_TOUCH_FOCALTECH), y)
  49. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_common.h
  50. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_config.h
  51. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_core.h
  52. LINUX_INC += -include $(TOUCH_ROOT)/focaltech_touch/focaltech_flash.h
  53. focaltech_fts-y := \
  54. ./focaltech_touch/focaltech_core.o \
  55. ./focaltech_touch/focaltech_ex_fun.o \
  56. ./focaltech_touch/focaltech_ex_mode.o \
  57. ./focaltech_touch/focaltech_gesture.o \
  58. ./focaltech_touch/focaltech_esdcheck.o \
  59. ./focaltech_touch/focaltech_point_report_check.o \
  60. ./focaltech_touch/focaltech_i2c.o \
  61. ./focaltech_touch/focaltech_flash.o \
  62. ./focaltech_touch/focaltech_flash/focaltech_upgrade_ft3518.o
  63. obj-$(CONFIG_MSM_TOUCH) += focaltech_fts.o
  64. endif
  65. ifeq ($(CONFIG_TOUCHSCREEN_NT36XXX_I2C), y)
  66. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx.h
  67. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx_mem_map.h
  68. LINUX_INC += -include $(TOUCH_ROOT)/nt36xxx/nt36xxx_mp_ctrlram.h
  69. nt36xxx-i2c-y := \
  70. ./nt36xxx/nt36xxx.o \
  71. ./nt36xxx/nt36xxx_fw_update.o \
  72. ./nt36xxx/nt36xxx_ext_proc.o \
  73. ./nt36xxx/nt36xxx_mp_ctrlram.o
  74. obj-$(CONFIG_MSM_TOUCH) += nt36xxx-i2c.o
  75. endif
  76. ifeq ($(CONFIG_TOUCHSCREEN_GOODIX_BRL), y)
  77. LINUX_INC += -include $(TOUCH_ROOT)/goodix_berlin_driver/goodix_ts_core.h
  78. LINUX_INC += -include $(TOUCH_ROOT)/qts/qts_core.h
  79. LINUX_INC += -include $(TOUCH_ROOT)/qts/qts_core_common.h
  80. goodix_ts-y := \
  81. ./goodix_berlin_driver/goodix_ts_core.o \
  82. ./goodix_berlin_driver/goodix_brl_hw.o \
  83. ./goodix_berlin_driver/goodix_cfg_bin.o \
  84. ./goodix_berlin_driver/goodix_ts_utils.o \
  85. ./goodix_berlin_driver/goodix_brl_fwupdate.o \
  86. ./goodix_berlin_driver/goodix_ts_tools.o \
  87. ./goodix_berlin_driver/goodix_ts_gesture.o \
  88. ./goodix_berlin_driver/goodix_ts_inspect.o \
  89. ./goodix_berlin_driver/goodix_brl_spi.o \
  90. ./goodix_berlin_driver/goodix_brl_i2c.o \
  91. ./qts/qts_core.o
  92. obj-$(CONFIG_MSM_TOUCH) += goodix_ts.o
  93. endif
  94. ifeq ($(CONFIG_TOUCHSCREEN_ATMEL_MXT), y)
  95. atmel_mxt_ts-y := \
  96. ./atmel_mxt/atmel_mxt_ts.o
  97. obj-$(CONFIG_MSM_TOUCH) += atmel_mxt_ts.o
  98. endif
  99. ifeq ($(CONFIG_TOUCHSCREEN_DUMMY), y)
  100. dummy_ts-y := ./dummy_touch/dummy_touch.o
  101. obj-$(CONFIG_MSM_TOUCH) += dummy_ts.o
  102. endif
  103. ifeq ($(CONFIG_TOUCHSCREEN_SYNAPTICS_TCM), y)
  104. synaptics_tcm_ts-y := \
  105. ./synaptics_tcm/synaptics_tcm_core.o \
  106. ./synaptics_tcm/synaptics_tcm_i2c.o \
  107. ./synaptics_tcm/synaptics_tcm_touch.o
  108. obj-$(CONFIG_MSM_TOUCH) += synaptics_tcm_ts.o
  109. endif
  110. CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"