Android.mk 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 := focaltech_fts.ko
  23. LOCAL_MODULE_KBUILD_NAME := focaltech_fts.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 := synaptics_dsx.ko
  33. LOCAL_MODULE_KBUILD_NAME := synaptics_dsx.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 := nt36xxx-i2c.ko
  43. LOCAL_MODULE_KBUILD_NAME := nt36xxx-i2c.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. endif # DLKM check