driver/sar-sensor: build error on user build

build error:
    ERROR: "sensors_classdev_unregister" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!
    ERROR: "sensors_classdev_register" [../../motorola/kernel/modules
    /drivers/misc/sx937x/sx937x_sar.ko] undefined!

   sar-sensor based on sensors_class.ko,need add dependency to
   make sure sensors_calss build before sarsensor:
   LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/sensors_class.ko

Change-Id: Id4f7dbf73e67974fc40612327f473cdbdc9bc417
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1793323
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weimh1 2020-11-04 17:06:23 +08:00 • committed by Minghui Wei
commit b61eb9bbf2

View file

@ -5,6 +5,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := sx937x_sar.ko
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
LOCAL_ADDITIONAL_DEPENDENCIES := $(KERNEL_MODULES_OUT)/sensors_class.ko
KBUILD_OPTIONS_GKI += GKI_OBJ_MODULE_DIR=gki
include $(DLKM_DIR)/AndroidKernelModule.mk