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