Android.mk 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Android makefile for display kernel modules
  2. TOUCH_DLKM_ENABLE := true
  3. ifeq ($(TARGET_KERNEL_DLKM_DISABLE), true)
  4. ifeq ($(TARGET_KERNEL_DLKM_TOUCH_OVERRIDE), false)
  5. TOUCH_DLKM_ENABLE := false
  6. endif
  7. endif
  8. ifeq ($(TOUCH_DLKM_ENABLE), true)
  9. TOUCH_SELECT := CONFIG_MSM_TOUCH=m
  10. LOCAL_PATH := $(call my-dir)
  11. include $(CLEAR_VARS)
  12. # This makefile is only for DLKM
  13. ifneq ($(findstring vendor,$(LOCAL_PATH)),)
  14. ifneq ($(findstring opensource,$(LOCAL_PATH)),)
  15. TOUCH_BLD_DIR := $(shell pwd)/vendor/qcom/opensource/touch-drivers
  16. endif # opensource
  17. DLKM_DIR := $(TOP)/device/qcom/common/dlkm
  18. LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  19. # Build
  20. ###########################################################
  21. # This is set once per LOCAL_PATH, not per (kernel) module
  22. KBUILD_OPTIONS := TOUCH_ROOT=$(TOUCH_BLD_DIR)
  23. KBUILD_OPTIONS += MODNAME=touch_dlkm
  24. KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
  25. KBUILD_OPTIONS += $(TOUCH_SELECT)
  26. ###########################################################
  27. include $(CLEAR_VARS)
  28. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  29. LOCAL_MODULE := nt36xxx-i2c.ko
  30. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.ko
  31. LOCAL_MODULE_TAGS := optional
  32. #LOCAL_MODULE_DEBUG_ENABLE := true
  33. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  34. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  35. ###########################################################
  36. ###########################################################
  37. include $(CLEAR_VARS)
  38. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  39. LOCAL_MODULE := goodix_ts.ko
  40. LOCAL_MODULE_KBUILD_NAME := goodix_ts.ko
  41. LOCAL_MODULE_TAGS := optional
  42. #LOCAL_MODULE_DEBUG_ENABLE := true
  43. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  44. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  45. ###########################################################
  46. ###########################################################
  47. include $(CLEAR_VARS)
  48. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
  49. LOCAL_MODULE := atmel_mxt_ts.ko
  50. LOCAL_MODULE_KBUILD_NAME := atmel_mxt_ts.ko
  51. LOCAL_MODULE_TAGS := optional
  52. #LOCAL_MODULE_DEBUG_ENABLE := true
  53. LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
  54. include $(DLKM_DIR)/Build_external_kernelmodule.mk
  55. ###########################################################
  56. endif # DLKM check
  57. endif