
Implemented compilation flag for secure module libraries dependencies nfc driver. Change-Id: I63d5feb1bf5c8e84748529b55e8b9b6832ae27e4
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
# Android makefile for nfc kernel modules
|
|
|
|
# Path to DLKM make scripts
|
|
DLKM_DIR := $(TOP)/device/qcom/common/dlkm
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
ifeq ($(TARGET_ENABLE_PERIPHERAL_CONTROL), true)
|
|
LOCAL_CFLAGS := -DNFC_SECURE_PERIPHERAL_ENABLED
|
|
KBUILD_OPTIONS += KBUILD_EXTRA_SYMBOLS=$(PWD)/$(call intermediates-dir-for,DLKM,sec-module-symvers)/Module.symvers
|
|
ifeq ($(TARGET_KERNEL_DLKM_SECURE_MSM_OVERRIDE), true)
|
|
LOCAL_REQUIRED_MODULES := sec-module-symvers
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(call intermediates-dir-for,DLKM,sec-module-symvers)/Module.symvers
|
|
endif
|
|
endif
|
|
|
|
LOCAL_MODULE := nxp-nci.ko
|
|
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
|
LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
|
|
|
|
NFC_DLKM_ENABLED := false
|
|
|
|
########## Check and set local DLKM flag based on system-wide global flags ##########
|
|
ifeq ($(TARGET_KERNEL_DLKM_DISABLE), true)
|
|
ifeq ($(TARGET_KERNEL_DLKM_NFC_OVERRIDE), true)
|
|
NFC_DLKM_ENABLED := true
|
|
endif
|
|
else
|
|
NFC_DLKM_ENABLED := true
|
|
endif
|
|
|
|
########## Build kernel module based on local DLKM flag status ##########
|
|
ifeq ($(NFC_DLKM_ENABLED), true)
|
|
LOCAL_MODULE_DDK_BUILD := true
|
|
include $(DLKM_DIR)/Build_external_kernelmodule.mk
|
|
endif
|