Android.mk 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # Android makefile for audio kernel modules
  2. #Target based of taro does not need these DLKM's as they are present as kernel drivers
  3. #But the project is mapped for DEV SP due to dependency on smcinvoke_kernel_headers
  4. #Hence preventing the DLKM's to be part of the taro based DEV SP
  5. ifneq ($(TARGET_BOARD_PLATFORM), taro)
  6. LOCAL_PATH := $(call my-dir)
  7. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  8. SEC_KERNEL_DIR := $(TOP)/vendor/qcom/opensource/securemsm-kernel
  9. SSG_SRC_FILES := \
  10. $(wildcard $(LOCAL_PATH)/*) \
  11. $(wildcard $(LOCAL_PATH)/*/*) \
  12. $(wildcard $(LOCAL_PATH)/*/*/*) \
  13. $(wildcard $(LOCAL_PATH)/*/*/*/*)
  14. # This is set once per LOCAL_PATH, not per (kernel) module
  15. KBUILD_OPTIONS := SSG_ROOT=$(SEC_KERNEL_DIR)
  16. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  17. ###################################################
  18. include $(CLEAR_VARS)
  19. # For incremental compilation
  20. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  21. LOCAL_MODULE := sec-module-symvers
  22. LOCAL_MODULE_STEM := Module.symvers
  23. LOCAL_MODULE_KBUILD_NAME := Module.symvers
  24. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  25. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  26. ###################################################
  27. ###################################################
  28. ifneq ($(TARGET_BOARD_AUTO),true)
  29. #$(error $(SSG_SRC_FILES))
  30. include $(CLEAR_VARS)
  31. #LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  32. LOCAL_MODULE := smcinvoke_dlkm.ko
  33. LOCAL_MODULE_KBUILD_NAME := smcinvoke_dlkm.ko
  34. LOCAL_MODULE_TAGS := optional
  35. LOCAL_MODULE_DEBUG_ENABLE := true
  36. LOCAL_HEADER_LIBRARIES := smcinvoke_kernel_headers
  37. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  38. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  39. endif #TARGET_BOARD_AUTO
  40. ###################################################
  41. ###################################################
  42. include $(CLEAR_VARS)
  43. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  44. LOCAL_MODULE := tz_log_dlkm.ko
  45. LOCAL_MODULE_KBUILD_NAME := tz_log_dlkm.ko
  46. LOCAL_MODULE_TAGS := optional
  47. LOCAL_MODULE_DEBUG_ENABLE := true
  48. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  49. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  50. ###################################################
  51. ###################################################
  52. include $(CLEAR_VARS)
  53. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  54. LOCAL_MODULE := qce50_dlkm.ko
  55. LOCAL_MODULE_KBUILD_NAME := qce50_dlkm.ko
  56. LOCAL_MODULE_TAGS := optional
  57. LOCAL_MODULE_DEBUG_ENABLE := true
  58. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  59. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  60. ###################################################
  61. ###################################################
  62. include $(CLEAR_VARS)
  63. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  64. LOCAL_MODULE := qcedev-mod_dlkm.ko
  65. LOCAL_MODULE_KBUILD_NAME := qcedev-mod_dlkm.ko
  66. LOCAL_MODULE_TAGS := optional
  67. LOCAL_MODULE_DEBUG_ENABLE := true
  68. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  69. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  70. ###################################################
  71. ###################################################
  72. include $(CLEAR_VARS)
  73. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  74. LOCAL_MODULE := qcrypto-msm_dlkm.ko
  75. LOCAL_MODULE_KBUILD_NAME := qcrypto-msm_dlkm.ko
  76. LOCAL_MODULE_TAGS := optional
  77. LOCAL_MODULE_DEBUG_ENABLE := true
  78. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  79. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  80. ###################################################
  81. ###################################################
  82. include $(CLEAR_VARS)
  83. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  84. LOCAL_MODULE := hdcp_qseecom_dlkm.ko
  85. LOCAL_MODULE_KBUILD_NAME := hdcp_qseecom_dlkm.ko
  86. LOCAL_MODULE_TAGS := optional
  87. LOCAL_MODULE_DEBUG_ENABLE := true
  88. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  89. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  90. ###################################################
  91. ###################################################
  92. include $(CLEAR_VARS)
  93. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  94. LOCAL_MODULE := qrng_dlkm.ko
  95. LOCAL_MODULE_KBUILD_NAME := qrng_dlkm.ko
  96. LOCAL_MODULE_TAGS := optional
  97. LOCAL_MODULE_DEBUG_ENABLE := true
  98. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  99. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  100. ###################################################
  101. ###################################################
  102. ifeq ($(TARGET_BOARD_AUTO),true)
  103. include $(CLEAR_VARS)
  104. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  105. LOCAL_MODULE := qseecom_dlkm.ko
  106. LOCAL_MODULE_KBUILD_NAME := qseecom_dlkm.ko
  107. LOCAL_MODULE_TAGS := optional
  108. LOCAL_MODULE_DEBUG_ENABLE := true
  109. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  110. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  111. endif #TARGET_BOARD_AUTO
  112. ###################################################
  113. endif