Browse Source

smcinvoke: Conditionally disable DLKM

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

Change-Id: Ie6a53add3e6ebc17e662f3b564cade7e7f284020
Bruce Levy 2 years ago
parent
commit
0311094bc0
2 changed files with 7 additions and 0 deletions
  1. 5 0
      Android.mk
  2. 2 0
      Kbuild

+ 5 - 0
Android.mk

@@ -1,5 +1,9 @@
 # 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)
 DLKM_DIR := $(TOP)/device/qcom/common/dlkm
 
@@ -97,3 +101,4 @@ LOCAL_MODULE_DEBUG_ENABLE := true
 LOCAL_MODULE_PATH         := $(KERNEL_MODULES_OUT)
 include $(DLKM_DIR)/Build_external_kernelmodule.mk
 ###################################################
+endif

+ 2 - 0
Kbuild

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