sx937x:enable usb cal
use KBUILD_OPTIONS instead KERNEL_CFLAGS Change-Id: If169afaf37096f8fb34a7a8cea2a478c9c791d13 Signed-off-by: cuijy1 <cuijy2@lenovo.com> Reviewed-on: https://gerrit.mot.com/2080356 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: qiurp1 <qiurp1@motorola.com> Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
1 parent
584d7edf7d
commit
a86a9d5763
1 file changed
+12
-12
@@ -1,6 +1,18 @@
|
||||
DLKM_DIR := motorola/kernel/modules
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
ifeq ($(SX937X_USB_CAL),true)
|
||||
KBUILD_OPTIONS += CONFIG_SX937X_USB_CAL=y
|
||||
endif
|
||||
|
||||
ifeq ($(SX937X_USB_USE_ONLINE),true)
|
||||
KBUILD_OPTIONS += CONFIG_SX937X_POWER_SUPPLY_ONLINE=y
|
||||
endif
|
||||
|
||||
ifeq ($(SX937X_FLIP_CAL),true)
|
||||
KBUILD_OPTIONS += CONFIG_SX937X_FLIP_CAL=y
|
||||
endif
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := sx937x_sar.ko
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
@@ -8,15 +20,3 @@ 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
|
||||
|
||||
ifeq ($(SX937X_USB_CAL),true)
|
||||
KERNEL_CFLAGS += CONFIG_SX937X_USB_CAL=y
|
||||
endif
|
||||
|
||||
ifeq ($(SX937X_USB_USE_ONLINE),true)
|
||||
KERNEL_CFLAGS += CONFIG_SX937X_POWER_SUPPLY_ONLINE=y
|
||||
endif
|
||||
|
||||
ifeq ($(SX937X_FLIP_CAL),true)
|
||||
KERNEL_CFLAGS += CONFIG_SX937X_FLIP_CAL=y
|
||||
endif
|
||||
Reference in new issue
Block a user