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 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/2647687
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
This commit is contained in:
zhaoxp3 2023-06-19 15:34:25 +08:00 • committed by Xiangpo Zhao
commit 672359fba1

View file

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