From dc892e9b1f5da1c473fe724f6d5e9bb75a18b097 Mon Sep 17 00:00:00 2001 From: a7301c Date: Thu, 6 May 2021 11:14:52 -0500 Subject: [PATCH] Add support for Build_external_kernelmodule.mk The Android build infrastructure is transitioning to a new mechansim for building external modules. Starting from Taro(8450), update moto drivers to use that mechanism. Change-Id: Ic3640feabd6bd77334861d3f73082907ed88648b Signed-off-by: a7301c Reviewed-on: https://gerrit.mot.com/1941175 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhenxin Xi --- AndroidKernelModule.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AndroidKernelModule.mk b/AndroidKernelModule.mk index ad66449e215a..0494c0db58ca 100644 --- a/AndroidKernelModule.mk +++ b/AndroidKernelModule.mk @@ -1,3 +1,7 @@ +ifeq ($(TARGET_BOARD_PLATFORM),taro) +#Taro is using a new mechanisim to build kernel modules +include device/qcom/common/dlkm/Build_external_kernelmodule.mk +else ifneq (,$(findstring gki,$(KERNEL_DEFCONFIG))) #GKI product should use Qcom latest dlkm compile file include device/qcom/common/dlkm/AndroidKernelModule.mk @@ -180,3 +184,4 @@ KBUILD_OPTIONS := endif endif endif #(findstring gki,$(KERNEL_DEFCONFIG)) +endif #($(TARGET_BOARD_PLATFORM),taro)