From 605998546fd3f1a782888b42b20fd2bd61ea188e Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 1 Sep 2021 17:38:45 +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. Time of "make bootimage" on user build: - without change: 23 mins - with change: 9 mins Change-Id: Icf0cd01b318a17457336dc7627cbf1ab3a8c78b8 Reviewed-on: https://gerrit.mot.com/2057699 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- AndroidKernelModule.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AndroidKernelModule.mk b/AndroidKernelModule.mk index 2a66cb871c41..6b7badb6bdbf 100644 --- a/AndroidKernelModule.mk +++ b/AndroidKernelModule.mk @@ -5,8 +5,10 @@ include device/qcom/common/dlkm/Build_external_kernelmodule.mk endif else ifneq (,$(findstring gki,$(KERNEL_DEFCONFIG))) +ifneq (,$(findstring $(LOCAL_MODULE),$(BOARD_VENDOR_KERNEL_MODULES))) #GKI product should use Qcom latest dlkm compile file include device/qcom/common/dlkm/AndroidKernelModule.mk +endif else DISABLE_THIS_DLKM := $(strip $(TARGET_KERNEL_DLKM_DISABLE))