Android.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. endif # DLKM check