Makefile 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. cameratree := $(srctree)/techpack/camera/drivers
  3. cam_include_dirs := $(shell dirname `find $(cameratree) -name '*.h'` | uniq)
  4. ccflags-y += $(addprefix -I,$(cam_include_dirs))
  5. ifneq (,$(filter $(CONFIG_MSM_GLOBAL_SYNX), y m))
  6. ccflags-y += -I$(srctree)/drivers/media/platform/msm/synx
  7. endif
  8. ccflags-y += -I$(srctree)/techpack/camera/include/uapi/camera
  9. ccflags-y += -I$(srctree)
  10. camera-y := \
  11. cam_req_mgr/cam_req_mgr_core.o \
  12. cam_req_mgr/cam_req_mgr_dev.o \
  13. cam_req_mgr/cam_req_mgr_util.o \
  14. cam_req_mgr/cam_mem_mgr.o \
  15. cam_req_mgr/cam_req_mgr_workq.o \
  16. cam_req_mgr/cam_req_mgr_timer.o \
  17. cam_req_mgr/cam_req_mgr_debug.o \
  18. cam_utils/cam_soc_util.o \
  19. cam_utils/cam_io_util.o \
  20. cam_utils/cam_packet_util.o \
  21. cam_utils/cam_debug_util.o \
  22. cam_utils/cam_trace.o \
  23. cam_utils/cam_common_util.o \
  24. cam_utils/cam_compat.o \
  25. cam_core/cam_context.o \
  26. cam_core/cam_context_utils.o \
  27. cam_core/cam_node.o \
  28. cam_core/cam_subdev.o \
  29. cam_smmu/cam_smmu_api.o \
  30. cam_sync/cam_sync.o \
  31. cam_sync/cam_sync_util.o \
  32. cam_cpas/cpas_top/cam_cpastop_hw.o \
  33. cam_cpas/camss_top/cam_camsstop_hw.o \
  34. cam_cpas/cam_cpas_soc.o \
  35. cam_cpas/cam_cpas_intf.o \
  36. cam_cpas/cam_cpas_hw.o \
  37. cam_cdm/cam_cdm_soc.o \
  38. cam_cdm/cam_cdm_util.o \
  39. cam_cdm/cam_cdm_intf.o \
  40. cam_cdm/cam_cdm_core_common.o \
  41. cam_cdm/cam_cdm_virtual_core.o \
  42. cam_cdm/cam_cdm_hw_core.o
  43. ifneq (,$(filter $(CONFIG_QCOM_CX_IPEAK),y m))
  44. camera-y += cam_utils/cam_cx_ipeak.o
  45. endif
  46. ifneq (,$(filter $(CONFIG_QCOM_BUS_SCALING),y m))
  47. camera-y += cam_utils/cam_soc_bus.o
  48. endif
  49. ifneq (,$(filter $(CONFIG_INTERCONNECT_QCOM),y m))
  50. camera-y += cam_utils/cam_soc_icc.o
  51. endif
  52. camera-$(CONFIG_SPECTRA_ISP) += \
  53. cam_isp/isp_hw_mgr/hw_utils/cam_tasklet_util.o \
  54. cam_isp/isp_hw_mgr/hw_utils/cam_isp_packet_parser.o \
  55. cam_isp/isp_hw_mgr/hw_utils/irq_controller/cam_irq_controller.o \
  56. cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_dev.o \
  57. cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_soc.o \
  58. cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_core.o \
  59. cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid17x.o \
  60. cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw/cam_ife_csid_lite17x.o \
  61. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/cam_vfe_soc.o \
  62. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/cam_vfe_dev.o \
  63. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/cam_vfe_core.o \
  64. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus.o \
  65. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver2.o \
  66. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_rd_ver1.o \
  67. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/cam_vfe_bus_ver3.o \
  68. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_camif_lite_ver2.o \
  69. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_top.o \
  70. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_top_common.o \
  71. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_top_ver3.o \
  72. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_top_ver2.o \
  73. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_camif_ver2.o \
  74. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_camif_ver3.o \
  75. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_rdi.o \
  76. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_fe_ver1.o \
  77. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/cam_vfe_camif_lite_ver3.o \
  78. cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x/cam_vfe.o \
  79. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg_dev.o \
  80. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg_soc.o \
  81. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg_core.o \
  82. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg_ver1.o \
  83. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg_ver2.o \
  84. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg_ver3.o \
  85. cam_isp/isp_hw_mgr/isp_hw/top_tpg/cam_top_tpg.o \
  86. cam_isp/isp_hw_mgr/cam_isp_hw_mgr.o \
  87. cam_isp/isp_hw_mgr/cam_ife_hw_mgr.o \
  88. cam_isp/cam_isp_dev.o \
  89. cam_isp/cam_isp_context.o
  90. camera-$(CONFIG_SPECTRA_ICP) += \
  91. cam_icp/icp_hw/icp_hw_mgr/cam_icp_hw_mgr.o \
  92. cam_icp/icp_hw/ipe_hw/ipe_dev.o \
  93. cam_icp/icp_hw/ipe_hw/ipe_core.o \
  94. cam_icp/icp_hw/ipe_hw/ipe_soc.o \
  95. cam_icp/icp_hw/a5_hw/a5_dev.o \
  96. cam_icp/icp_hw/a5_hw/a5_core.o \
  97. cam_icp/icp_hw/a5_hw/a5_soc.o \
  98. cam_icp/icp_hw/bps_hw/bps_dev.o \
  99. cam_icp/icp_hw/bps_hw/bps_core.o \
  100. cam_icp/icp_hw/bps_hw/bps_soc.o \
  101. cam_icp/cam_icp_subdev.o \
  102. cam_icp/cam_icp_context.o \
  103. cam_icp/hfi.o
  104. camera-$(CONFIG_SPECTRA_JPEG) += \
  105. cam_jpeg/jpeg_hw/jpeg_enc_hw/jpeg_enc_dev.o \
  106. cam_jpeg/jpeg_hw/jpeg_enc_hw/jpeg_enc_core.o \
  107. cam_jpeg/jpeg_hw/jpeg_enc_hw/jpeg_enc_soc.o \
  108. cam_jpeg/jpeg_hw/jpeg_dma_hw/jpeg_dma_dev.o \
  109. cam_jpeg/jpeg_hw/jpeg_dma_hw/jpeg_dma_core.o \
  110. cam_jpeg/jpeg_hw/jpeg_dma_hw/jpeg_dma_soc.o \
  111. cam_jpeg/jpeg_hw/cam_jpeg_hw_mgr.o \
  112. cam_jpeg/cam_jpeg_dev.o \
  113. cam_jpeg/cam_jpeg_context.o
  114. camera-$(CONFIG_SPECTRA_FD) += \
  115. cam_fd/fd_hw_mgr/fd_hw/cam_fd_hw_dev.o \
  116. cam_fd/fd_hw_mgr/fd_hw/cam_fd_hw_core.o \
  117. cam_fd/fd_hw_mgr/fd_hw/cam_fd_hw_soc.o \
  118. cam_fd/fd_hw_mgr/cam_fd_hw_mgr.o \
  119. cam_fd/cam_fd_dev.o \
  120. cam_fd/cam_fd_context.o
  121. camera-$(CONFIG_SPECTRA_LRME) += \
  122. cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_dev.o \
  123. cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_core.o \
  124. cam_lrme/lrme_hw_mgr/lrme_hw/cam_lrme_hw_soc.o \
  125. cam_lrme/lrme_hw_mgr/cam_lrme_hw_mgr.o \
  126. cam_lrme/cam_lrme_dev.o \
  127. cam_lrme/cam_lrme_context.o
  128. camera-$(CONFIG_SPECTRA_SENSOR) += \
  129. cam_sensor_module/cam_actuator/cam_actuator_dev.o \
  130. cam_sensor_module/cam_actuator/cam_actuator_core.o \
  131. cam_sensor_module/cam_actuator/cam_actuator_soc.o \
  132. cam_sensor_module/cam_cci/cam_cci_dev.o \
  133. cam_sensor_module/cam_cci/cam_cci_core.o \
  134. cam_sensor_module/cam_cci/cam_cci_soc.o \
  135. cam_sensor_module/cam_csiphy/cam_csiphy_soc.o \
  136. cam_sensor_module/cam_csiphy/cam_csiphy_dev.o \
  137. cam_sensor_module/cam_csiphy/cam_csiphy_core.o \
  138. cam_sensor_module/cam_eeprom/cam_eeprom_dev.o \
  139. cam_sensor_module/cam_eeprom/cam_eeprom_core.o \
  140. cam_sensor_module/cam_eeprom/cam_eeprom_soc.o \
  141. cam_sensor_module/cam_ois/cam_ois_dev.o \
  142. cam_sensor_module/cam_ois/cam_ois_core.o \
  143. cam_sensor_module/cam_ois/cam_ois_soc.o \
  144. cam_sensor_module/cam_sensor/cam_sensor_dev.o \
  145. cam_sensor_module/cam_sensor/cam_sensor_core.o \
  146. cam_sensor_module/cam_sensor/cam_sensor_soc.o \
  147. cam_sensor_module/cam_sensor_io/cam_sensor_io.o \
  148. cam_sensor_module/cam_sensor_io/cam_sensor_cci_i2c.o \
  149. cam_sensor_module/cam_sensor_io/cam_sensor_qup_i2c.o \
  150. cam_sensor_module/cam_sensor_io/cam_sensor_spi.o \
  151. cam_sensor_module/cam_sensor_utils/cam_sensor_util.o \
  152. cam_sensor_module/cam_res_mgr/cam_res_mgr.o
  153. camera-$(CONFIG_LEDS_QPNP_FLASH_V2) += \
  154. cam_sensor_module/cam_flash/cam_flash_dev.o \
  155. cam_sensor_module/cam_flash/cam_flash_core.o \
  156. cam_sensor_module/cam_flash/cam_flash_soc.o
  157. ifneq (,$(filter $(CONFIG_LEDS_QTI_FLASH),y m))
  158. camera-y += \
  159. cam_sensor_module/cam_flash/cam_flash_dev.o \
  160. cam_sensor_module/cam_flash/cam_flash_core.o \
  161. cam_sensor_module/cam_flash/cam_flash_soc.o
  162. endif
  163. camera-$(CONFIG_SPECTRA_CUSTOM) += \
  164. cam_cust/cam_custom_hw_mgr/cam_custom_hw1/cam_custom_sub_mod_soc.o \
  165. cam_cust/cam_custom_hw_mgr/cam_custom_hw1/cam_custom_sub_mod_dev.o \
  166. cam_cust/cam_custom_hw_mgr/cam_custom_hw1/cam_custom_sub_mod_core.o \
  167. cam_cust/cam_custom_hw_mgr/cam_custom_csid/cam_custom_csid_dev.o \
  168. cam_cust/cam_custom_hw_mgr/cam_custom_hw_mgr.o \
  169. cam_cust/cam_custom_dev.o \
  170. cam_cust/cam_custom_context.o
  171. camera-$(CONFIG_SPECTRA_OPE) += \
  172. cam_ope/cam_ope_subdev.o \
  173. cam_ope/cam_ope_context.o \
  174. cam_ope/ope_hw_mgr/cam_ope_hw_mgr.o \
  175. cam_ope/ope_hw_mgr/ope_hw/ope_dev.o \
  176. cam_ope/ope_hw_mgr/ope_hw/ope_soc.o \
  177. cam_ope/ope_hw_mgr/ope_hw/ope_core.o \
  178. cam_ope/ope_hw_mgr/ope_hw/top/ope_top.o \
  179. cam_ope/ope_hw_mgr/ope_hw/bus_rd/ope_bus_rd.o\
  180. cam_ope/ope_hw_mgr/ope_hw/bus_wr/ope_bus_wr.o
  181. camera-$(CONFIG_SPECTRA_TFE) += \
  182. cam_isp/isp_hw_mgr/isp_hw/ppi_hw/cam_csid_ppi_core.o \
  183. cam_isp/isp_hw_mgr/isp_hw/ppi_hw/cam_csid_ppi_dev.o \
  184. cam_isp/isp_hw_mgr/isp_hw/ppi_hw/cam_csid_ppi100.o \
  185. cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_soc.o \
  186. cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_dev.o \
  187. cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_core.o \
  188. cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_bus.o \
  189. cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe.o \
  190. cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid_dev.o \
  191. cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid_soc.o \
  192. cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid_core.o \
  193. cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid530.o \
  194. cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.o
  195. camera-y += camera_main.o
  196. obj-$(CONFIG_SPECTRA_CAMERA) += camera.o
  197. ifeq ($(CONFIG_SPECTRA_CAMERA),m)
  198. $(info "SPECTRA CAMERA IS BUILT AS DLKM")
  199. BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/camera.ko
  200. endif