Android.mk 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Android makefile for display kernel modules
  2. TOUCH_SELECT := CONFIG_MSM_TOUCH=m
  3. LOCAL_PATH := $(call my-dir)
  4. include $(CLEAR_VARS)
  5. # This makefile is only for DLKM
  6. ifneq ($(findstring vendor,$(LOCAL_PATH)),)
  7. ifneq ($(findstring opensource,$(LOCAL_PATH)),)
  8. TOUCH_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/touch-drivers
  9. endif # opensource
  10. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  11. LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  12. # Build
  13. ###########################################################
  14. # This is set once per LOCAL_PATH, not per (kernel) module
  15. KBUILD_OPTIONS := TOUCH_ROOT=$(TOUCH_BLD_DIR)
  16. KBUILD_OPTIONS += MODNAME=touch_dlkm
  17. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  18. KBUILD_OPTIONS += $(TOUCH_SELECT)
  19. ###########################################################
  20. include $(CLEAR_VARS)
  21. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  22. LOCAL_MODULE := nt36xxx-i2c.ko
  23. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  24. LOCAL_MODULE_TAGS := optional
  25. #LOCAL_MODULE_DEBUG_ENABLE := true
  26. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  27. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  28. ###########################################################
  29. ###########################################################
  30. include $(CLEAR_VARS)
  31. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  32. LOCAL_MODULE := goodix_ts.ko
  33. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  34. LOCAL_MODULE_TAGS := optional
  35. #LOCAL_MODULE_DEBUG_ENABLE := true
  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 := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  42. LOCAL_MODULE := atmel_mxt_ts.ko
  43. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.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 := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  52. LOCAL_MODULE := dummy_ts.ko
  53. LOCAL_MODULE_KBUILD_NAME := dummy_ts.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. endif # DLKM check