typeC: import correct Modules.symvers in GKI build mode

When importing the Modules.symvers in fix path, the GKI module will import an
incorrect one and cause module load fail in gki kernel mode.

Change-Id: I1c089b5e9dbbe4b4922921df6f3923cb9c748d2e
Reviewed-on: https://gerrit.mot.com/2090513
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chailu1 2021-10-18 18:03:09 +08:00 • committed by Lu Chai
commit 37e858962c

View file

@ -1,6 +1,11 @@
DLKM_DIR := motorola/kernel/modules
LOCAL_PATH := $(call my-dir)
ifeq ($(USB_POWER_DELIVERY),true)
LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/adapter_class.ko
endif
KBUILD_OPTIONS_GKI += GKI_OBJ_MODULE_DIR=gki
ifeq ($(TCPC_SGM7220),true)
KERNEL_CFLAGS += CONFIG_TCPC_SGM7220=y