[RK3399][Android7.1] 调试笔记 --- 编译GT9XX touch提示错误

Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83

Error Log:

  CHK     include/generated/compile.h
  CC      drivers/input/touchscreen/of_touchscreen.o
  CC      drivers/input/touchscreen/gt9xx/gt9xx.o
  CC      drivers/input/touchscreen/gt9xx/gt9xx_update.o
drivers/input/touchscreen/gt9xx/gt9xx.c: In function 'goodix_ts_probe':
drivers/input/touchscreen/gt9xx/gt9xx.c:2409:59: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
     GTP_INFO("GTP Driver Built@%s, %s", __TIME__, __DATE__);
                                                           ^
drivers/input/touchscreen/gt9xx/gt9xx.c:2409:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
     GTP_INFO("GTP Driver Built@%s, %s", __TIME__, __DATE__);
 ^
cc1: some warnings being treated as errors
make[3]: *** [drivers/input/touchscreen/gt9xx/gt9xx.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2

解决方法:

diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile
index 111af55..cd743d2 100644
--- a/drivers/input/touchscreen/Makefile
+++ b/drivers/input/touchscreen/Makefile
@@ -7,7 +7,7 @@
 wm97xx-ts-y := wm97xx-core.o

 #Kris,180702, add GT9XX touch driver.
+#EXTRA_CFLAGS += -Wno-date-time

 obj-$(CONFIG_TOUCHSCREEN_PROPERTIES)  += of_touchscreen.o
 obj-$(CONFIG_TOUCHSCREEN_88PM860X)    += 88pm860x-ts.o
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值