Android.mk 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. #$(error $(SSG_SRC_FILES))
  29. include $(CLEAR_VARS)
  30. #LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  31. LOCAL_MODULE := smcinvoke_dlkm.ko
  32. LOCAL_MODULE_KBUILD_NAME := smcinvoke_dlkm.ko
  33. LOCAL_MODULE_TAGS := optional
  34. LOCAL_MODULE_DEBUG_ENABLE := true
  35. LOCAL_HEADER_LIBRARIES := smcinvoke_kernel_headers
  36. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  37. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  38. ###################################################
  39. ###################################################
  40. include $(CLEAR_VARS)
  41. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  42. LOCAL_MODULE := tz_log_dlkm.ko
  43. LOCAL_MODULE_KBUILD_NAME := tz_log_dlkm.ko
  44. LOCAL_MODULE_TAGS := optional
  45. LOCAL_MODULE_DEBUG_ENABLE := true
  46. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  47. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  48. ###################################################
  49. ###################################################
  50. include $(CLEAR_VARS)
  51. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  52. LOCAL_MODULE := qce50_dlkm.ko
  53. LOCAL_MODULE_KBUILD_NAME := qce50_dlkm.ko
  54. LOCAL_MODULE_TAGS := optional
  55. LOCAL_MODULE_DEBUG_ENABLE := true
  56. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  57. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  58. ###################################################
  59. ###################################################
  60. include $(CLEAR_VARS)
  61. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  62. LOCAL_MODULE := qcedev-mod_dlkm.ko
  63. LOCAL_MODULE_KBUILD_NAME := qcedev-mod_dlkm.ko
  64. LOCAL_MODULE_TAGS := optional
  65. LOCAL_MODULE_DEBUG_ENABLE := true
  66. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  67. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  68. ###################################################
  69. ###################################################
  70. include $(CLEAR_VARS)
  71. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  72. LOCAL_MODULE := qcrypto-msm_dlkm.ko
  73. LOCAL_MODULE_KBUILD_NAME := qcrypto-msm_dlkm.ko
  74. LOCAL_MODULE_TAGS := optional
  75. LOCAL_MODULE_DEBUG_ENABLE := true
  76. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  77. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  78. ###################################################
  79. ###################################################
  80. include $(CLEAR_VARS)
  81. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  82. LOCAL_MODULE := hdcp_qseecom_dlkm.ko
  83. LOCAL_MODULE_KBUILD_NAME := hdcp_qseecom_dlkm.ko
  84. LOCAL_MODULE_TAGS := optional
  85. LOCAL_MODULE_DEBUG_ENABLE := true
  86. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  87. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  88. ###################################################
  89. ###################################################
  90. include $(CLEAR_VARS)
  91. LOCAL_SRC_FILES := $(SSG_SRC_FILES)
  92. LOCAL_MODULE := qrng_dlkm.ko
  93. LOCAL_MODULE_KBUILD_NAME := qrng_dlkm.ko
  94. LOCAL_MODULE_TAGS := optional
  95. LOCAL_MODULE_DEBUG_ENABLE := true
  96. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  97. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  98. ###################################################
  99. endif