nairobi/sensor: set CONFIG_CAPSENSE_USB_CAL

1.enable usb_cal for nairobi
  2.optimize the script to minimize the length of Kbuild

Change-Id: If417dd38e6b7f95e8a8c25defd8d43c279af8385
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1527449
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weimh1 2020-04-03 14:53:11 +08:00 • committed by Minghui Wei
commit 83241cceff

View file

@ -36,11 +36,7 @@ ifneq (,$(filter burton%,$(TARGET_PRODUCT)))
EXTRA_CFLAGS += -DCONFIG_CAPSENSE_USB_CAL
endif
ifneq (,$(filter smith%,$(TARGET_PRODUCT)))
EXTRA_CFLAGS += -DCONFIG_CAPSENSE_USB_CAL
endif
ifneq (,$(filter racer%,$(TARGET_PRODUCT)))
ifneq (,$(filter smith% racer% nairo%,$(TARGET_PRODUCT)))
EXTRA_CFLAGS += -DCONFIG_CAPSENSE_USB_CAL
endif