Kbuild 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. DATAIPADRVTOP = $(srctree)/techpack/dataipa/drivers/platform/msm
  3. #MSMs - GKI
  4. ifeq ($(filter $(CONFIG_ARCH_LAHAINA) $(CONFIG_ARCH_HOLI), y),y)
  5. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa.h
  6. ifeq ($(CONFIG_QGKI),y)
  7. include $(srctree)/techpack/dataipa/config/dataipa_QGKI.conf
  8. ifeq ($(CONFIG_LOCALVERSION), "-qgki-debug")
  9. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  10. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  11. endif
  12. else
  13. include $(srctree)/techpack/dataipa/config/dataipa_GKI.conf
  14. endif
  15. endif
  16. #MSM - Vendor SI
  17. ifeq ($(CONFIG_ARCH_WAIPIO), y)
  18. DATAIPADRVTOP = $(srctree)/../../vendor/qcom/opensource/dataipa/drivers/platform/msm
  19. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_vendor.h
  20. include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_GKI.conf
  21. ifeq ($(CONFIG_LOCALVERSION), "-gki-consolidate")
  22. include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_GKI_consolidate.conf
  23. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_debug.h
  24. endif
  25. endif
  26. ifeq ($(CONFIG_ARCH_KALAMA), y)
  27. DATAIPADRVTOP = $(srctree)/../../vendor/qcom/opensource/dataipa/drivers/platform/msm
  28. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_vendor.h
  29. include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_GKI.conf
  30. ifeq ($(CONFIG_LOCALVERSION), "-gki-consolidate")
  31. include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_GKI_consolidate.conf
  32. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_debug.h
  33. endif
  34. endif
  35. ifeq ($(filter $(CONFIG_ARCH_KHAJE) $(CONFIG_ARCH_MONACO), y), y)
  36. DATAIPADRVTOP = $(srctree)/../../vendor/qcom/opensource/dataipa/drivers/platform/msm
  37. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_vendor_ipav4.h
  38. include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_GKI_ipav4.conf
  39. ifeq ($(CONFIG_LOCALVERSION), "-gki-consolidate")
  40. include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_GKI_consolidate.conf
  41. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_debug.h
  42. endif
  43. endif
  44. #MDMs
  45. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  46. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa.h
  47. include $(srctree)/techpack/dataipa/config/dataipa_QGKI.conf
  48. ifneq ($(CONFIG_LOCALVERSION), "-perf")
  49. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  50. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  51. endif
  52. endif
  53. ifeq ($(CONFIG_ARCH_SDXNIGHTJAR), y)
  54. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/sdx12dataipa.h
  55. include $(srctree)/techpack/dataipa/config/sdx12dataipa_QGKI.conf
  56. ifneq ($(CONFIG_LOCALVERSION), "-perf")
  57. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  58. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  59. endif
  60. endif
  61. ifeq ($(CONFIG_ARCH_SCUBA), y)
  62. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/sa410mdataipa.h
  63. include $(srctree)/techpack/dataipa/config/sa410mdataipa_QGKI.conf
  64. ifneq ($(CONFIG_LOCALVERSION), "-perf")
  65. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  66. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  67. endif
  68. endif
  69. ifneq (,$(filter $(CONFIG_IPA3) $(CONFIG_GSI),y m))
  70. LINUXINCLUDE += -I$(DATAIPADRVTOP)/include
  71. LINUXINCLUDE += -I$(DATAIPADRVTOP)/include/linux
  72. LINUXINCLUDE += -I$(DATAIPADRVTOP)/include/uapi
  73. LINUXINCLUDE += -I$(DATAIPADRVTOP)/gsi
  74. LINUXINCLUDE += -I$(DATAIPADRVTOP)/gsi/gsihal
  75. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa
  76. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3
  77. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/ipahal
  78. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_clients
  79. ifneq (,$(filter $(CONFIG_IPA_KERNEL_TESTS_MODULE),y m))
  80. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_test_module
  81. endif
  82. endif
  83. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP),y m))
  84. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump
  85. endif
  86. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_4_5),y m))
  87. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa4.5
  88. endif
  89. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_5_0),y m))
  90. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa5.0
  91. endif
  92. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_5_5),y m))
  93. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa5.5
  94. endif
  95. obj-$(CONFIG_GSI) += gsi/
  96. obj-$(CONFIG_IPA3) += ipa/