Kbuild 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_debug.conf
  23. LINUXINCLUDE += -include $(srctree)/../../vendor/qcom/opensource/dataipa/config/dataipa_debug.h
  24. endif
  25. endif
  26. #MDMs
  27. ifeq ($(CONFIG_ARCH_SDXLEMUR), y)
  28. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa.h
  29. include $(srctree)/techpack/dataipa/config/dataipa_QGKI.conf
  30. ifneq ($(CONFIG_LOCALVERSION), "-perf")
  31. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  32. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  33. endif
  34. endif
  35. ifeq ($(CONFIG_ARCH_SDXNIGHTJAR), y)
  36. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/sdx12dataipa.h
  37. include $(srctree)/techpack/dataipa/config/sdx12dataipa_QGKI.conf
  38. ifneq ($(CONFIG_LOCALVERSION), "-perf")
  39. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  40. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  41. endif
  42. endif
  43. ifeq ($(CONFIG_ARCH_SCUBA), y)
  44. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/sa410mdataipa.h
  45. include $(srctree)/techpack/dataipa/config/sa410mdataipa_QGKI.conf
  46. ifneq ($(CONFIG_LOCALVERSION), "-perf")
  47. include $(srctree)/techpack/dataipa/config/dataipa_debug.conf
  48. LINUXINCLUDE += -include $(srctree)/techpack/dataipa/config/dataipa_debug.h
  49. endif
  50. endif
  51. ifneq (,$(filter $(CONFIG_IPA3) $(CONFIG_GSI),y m))
  52. LINUXINCLUDE += -I$(DATAIPADRVTOP)/gsi
  53. LINUXINCLUDE += -I$(DATAIPADRVTOP)/gsi/gsihal
  54. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa
  55. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3
  56. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/ipahal
  57. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_clients
  58. ifneq (,$(filter $(CONFIG_IPA_KERNEL_TESTS_MODULE),y m))
  59. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_test_module
  60. endif
  61. endif
  62. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP),y m))
  63. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump
  64. endif
  65. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_4_5),y m))
  66. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa4.5
  67. endif
  68. ifneq (,$(filter $(CONFIG_IPA3_REGDUMP_IPA_5_0),y m))
  69. LINUXINCLUDE += -I$(DATAIPADRVTOP)/ipa/ipa_v3/dump/ipa5.0
  70. endif
  71. obj-$(CONFIG_GSI) += gsi/
  72. obj-$(CONFIG_IPA3) += ipa/