
This change adds support for the hw-fence driver that initialize, expose and manage the interfaces for the hw-fences, which are the synchronization primitives to allow the hardware to hardware signalization of the fences for the frame buffers shared between gpu and display hw-cores. Change-Id: If2313585d5a9f3ac90e16aad3464600641a6fa04 Signed-off-by: Ingrid Gallardo <quic_ingridg@quicinc.com>
42 baris
1.6 KiB
Makefile
42 baris
1.6 KiB
Makefile
LOCAL_PATH := $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# This makefile is only for DLKM
|
|
ifneq ($(findstring vendor,$(LOCAL_PATH)),)
|
|
|
|
ifneq ($(findstring opensource,$(LOCAL_PATH)),)
|
|
MSM_HW_FENCE_BLD_DIR := $(TOP)/vendor/qcom/opensource/mm-drivers/hw_fence
|
|
endif # opensource
|
|
|
|
DLKM_DIR := $(TOP)/device/qcom/common/dlkm
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
|
|
|
|
###########################################################
|
|
# This is set once per LOCAL_PATH, not per (kernel) module
|
|
KBUILD_OPTIONS := MSM_HW_FENCE_ROOT=$(MSM_HW_FENCE_BLD_DIR)
|
|
KBUILD_OPTIONS += MODNAME=msm_hw_fence
|
|
KBUILD_OPTIONS += BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM)
|
|
|
|
###########################################################
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
|
|
LOCAL_MODULE := hw-fence-module-symvers
|
|
LOCAL_MODULE_STEM := Module.symvers
|
|
LOCAL_MODULE_KBUILD_NAME := Module.symvers
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
###########################################################
|
|
include $(CLEAR_VARS)
|
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
|
|
LOCAL_MODULE := msm_hw_fence.ko
|
|
LOCAL_MODULE_KBUILD_NAME := msm_hw_fence.ko
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_MODULE_DEBUG_ENABLE := true
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
###########################################################
|
|
endif # DLKM check
|