mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
sx933x: Add generic usb/flip recal options
Add option to set usb/flip recal via device.mk file instead of calling out the product name. Change-Id: I591933fbb6afb44ed65a9c15633b6aba96c382ca Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1535142 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Konstantin Makariev <kmakariev@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
f71b0a79fb
commit
9b080c1359
2 changed files with 16 additions and 0 deletions
|
|
@ -6,3 +6,11 @@ LOCAL_MODULE := sx933x_sar.ko
|
|||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_PATH := $(KERNEL_MODULES_OUT)
|
||||
include $(DLKM_DIR)/AndroidKernelModule.mk
|
||||
|
||||
ifeq ($(SX933X_USB_CAL),true)
|
||||
KERNEL_CFLAGS += CONFIG_SX933X_USB_CAL=y
|
||||
endif
|
||||
|
||||
ifeq ($(SX933X_FLIP_CAL),true)
|
||||
KERNEL_CFLAGS += CONFIG_SX933X_FLIP_CAL=y
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -6,6 +6,14 @@ KERNEL_VERSION_NAME = $(shell basename $(KERNEL_DIR_PATH))
|
|||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_SX933X_USB_CAL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_CAPSENSE_USB_CAL
|
||||
endif
|
||||
|
||||
ifneq ($(filter m y,$(CONFIG_SX933X_FLIP_CAL)),)
|
||||
EXTRA_CFLAGS += -DCONFIG_CAPSENSE_FLIP_CAL
|
||||
endif
|
||||
|
||||
ifneq (,$(filter river%,$(TARGET_PRODUCT)))
|
||||
EXTRA_CFLAGS += -DCONFIG_CAPSENSE_USB_CAL
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue