smcinvoke: Conditionally disable DLKM

Disable DLKM's for specific target as for that target these
DLKM's comes as kernel modules.

Change-Id: Ie6a53add3e6ebc17e662f3b564cade7e7f284020
This commit is contained in:
Bruce Levy
2022-05-02 13:40:22 -07:00
parent d1d7d597d6
commit 0311094bc0
2 changed files with 7 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
# Android makefile for audio kernel modules # Android makefile for audio kernel modules
#Target based of taro does not need these DLKM's as they are present as kernel drivers
#But the project is mapped for DEV SP due to dependency on smcinvoke_kernel_headers
#Hence preventing the DLKM's to be part of the taro based DEV SP
ifneq ($(TARGET_BOARD_PLATFORM), taro)
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
DLKM_DIR := $(TOP)/device/qcom/common/dlkm DLKM_DIR := $(TOP)/device/qcom/common/dlkm
@@ -97,3 +101,4 @@ LOCAL_MODULE_DEBUG_ENABLE := true
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT) LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
include $(DLKM_DIR)/Build_external_kernelmodule.mk include $(DLKM_DIR)/Build_external_kernelmodule.mk
################################################### ###################################################
endif

2
Kbuild
View File

@@ -1,3 +1,4 @@
ifneq ($(TARGET_BOARD_PLATFORM ), taro)
ifeq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_ARCH_QTI_VM), y)
include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_tvm.conf include $(SSG_MODULE_ROOT)/config/sec-kernel_defconfig_tvm.conf
else else
@@ -28,3 +29,4 @@ hdcp_qseecom_dlkm-objs := hdcp/hdcp_qseecom.o
obj-$(CONFIG_HW_RANDOM_MSM_LEGACY) += qrng_dlkm.o obj-$(CONFIG_HW_RANDOM_MSM_LEGACY) += qrng_dlkm.o
qrng_dlkm-objs := qrng/msm_rng.o qrng_dlkm-objs := qrng/msm_rng.o
endif