From 672359fba1801945dccf43b4957d6b52ea8ad0df Mon Sep 17 00:00:00 2001 From: zhaoxp3 Date: Mon, 19 Jun 2023 15:34:25 +0800 Subject: [PATCH] AndroidKernelModule.mk: add bengal in Build_external_kernelmodule.mk add Build_external_kernelmodule.mk for new sm6225 base. Change-Id: I1b1b7a82ac9040e0c6d0f66af34bf4d09ee0ec97 Signed-off-by: zhaoxp3 Reviewed-on: https://gerrit.mot.com/2647687 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- AndroidKernelModule.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/AndroidKernelModule.mk b/AndroidKernelModule.mk index 19d9579edc15..29d35210498d 100644 --- a/AndroidKernelModule.mk +++ b/AndroidKernelModule.mk @@ -1,4 +1,18 @@ +USE_NEW_DLKM_MK := false + ifeq ($(call is-board-platform-in-list,taro kalama parrot), true) +#Taro and beyond are using a new mechanisim to build kernel modules +USE_NEW_DLKM_MK := true +endif + +ifeq ($(TARGET_BOARD_PLATFORM), bengal) +ifeq ($(TARGET_KERNEL_VERSION), 5.15) +#new bengal uses new mechanisim to build kernel modules +USE_NEW_DLKM_MK := true +endif +endif + +ifeq ($(USE_NEW_DLKM_MK), true) ifneq (,$(findstring $(LOCAL_MODULE),$(BOARD_VENDOR_KERNEL_MODULES))) #Taro and beyond are using a new mechanisim to build kernel modules include device/qcom/common/dlkm/Build_external_kernelmodule.mk