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 <qianl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2059989
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
qianlong 2021-09-06 12:33:51 +08:00 • committed by qianl2
commit 6b3cd4b54c

View file

@ -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