From 6b3cd4b54ca55c0a38261599d3f0bcf70ea07d06 Mon Sep 17 00:00:00 2001 From: qianlong Date: Mon, 6 Sep 2021 12:33:51 +0800 Subject: [PATCH] build: Only include modules needed by product It takes long time to include all DLKM's makefile even if the product does not need this module. Change-Id: I8629ac29a3f7e115c04dc24d2508366314716dac Signed-off-by: qianlong Reviewed-on: https://gerrit.mot.com/2059989 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- AndroidKernelModule.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AndroidKernelModule.mk b/AndroidKernelModule.mk index 0494c0db58ca..2a66cb871c41 100644 --- a/AndroidKernelModule.mk +++ b/AndroidKernelModule.mk @@ -1,6 +1,8 @@ ifeq ($(TARGET_BOARD_PLATFORM),taro) +ifneq (,$(findstring $(LOCAL_MODULE),$(BOARD_VENDOR_KERNEL_MODULES))) #Taro is using a new mechanisim to build kernel modules include device/qcom/common/dlkm/Build_external_kernelmodule.mk +endif else ifneq (,$(findstring gki,$(KERNEL_DEFCONFIG))) #GKI product should use Qcom latest dlkm compile file