Fix goodix touch SPI config compile error

Moto driver module compiled using qcom makefile from 8450/8475/8550 and
it does not support KERNEL_CFLAGS,so in these plaform we use
KBUILD_OPTIONS.

Change-Id: I6dbcf28b194201ac19a40e891683acc667893b34
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2281001
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ping Xiao <xiaoping@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Wenge Zhu 2022-05-26 20:55:35 +08:00 • committed by zhuwg1
commit cfa37b64df

View file

@ -10,8 +10,12 @@ ifeq ($(DRM_PANEL_NOTIFICATIONS),true)
endif
ifeq ($(TOUCHSCREEN_GOODIX_BRL_SPI),true)
ifeq ($(call is-board-platform-in-list,taro kalama), true)
KBUILD_OPTIONS += CONFIG_TOUCHSCREEN_GOODIX_BRL_SPI=y
else
KERNEL_CFLAGS += CONFIG_TOUCHSCREEN_GOODIX_BRL_SPI=y
endif
endif
ifeq ($(GTP_LIMIT_USE_SUPPLIER),true)
KBUILD_OPTIONS += CONFIG_GTP_LIMIT_USE_SUPPLIER=y