Files
android_kernel_samsung_sm86…/Android.mk
Tapas Dey 0ff0ebef92 NFC: driver: Add a local flag to enable/disable compilation
Modified code to add a local flag to enable or disable
module compilation based on system-wide global flags
for different targets.

Change-Id: I52ee08ed82a0d40999cfbd0e8969d43801f29d95
2022-07-11 14:05:58 +05:30

29 rivejä
789 B
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)
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)
include $(DLKM_DIR)/Build_external_kernelmodule.mk
endif