fatal error: fw_data_5517.i: No such file or directory #include "fw_data_5517.i"

fatal error: fw_data_5517.i: No such file or directory #include "fw_data_5517.i"

In file included from /rom/tb8504/kernel/lenovo/msm8953/drivers/input/touchscreen/elan/elan_ts.c:26:0:
/rom/tb8504/kernel/lenovo/msm8953/drivers/input/touchscreen/elan/elan_ts.h:151:28: fatal error: fw_data_5517.i: No such file or directory
   #include "fw_data_5517.i"
                            ^
compilation terminated.
make[5]: *** [/rom/tb8504/kernel/lenovo/msm8953/scripts/Makefile.build:258: drivers/input/touchscreen/elan/elan_ts.o] Error 1
make[4]: *** [/rom/tb8504/kernel/lenovo/msm8953/scripts/Makefile.build:402: drivers/input/touchscreen/elan] Error 2

设备树:https://github.com/dazza5000/android_device_lenovo_TB8504

供应商树:= https://github.com/dazza5000/android_vendor_lenovo_TB8504

内核源码:= https://github.com/dazza5000/android_kernel_lenovo_msm8953

ROM 来源:= https://github.com/LineageOS/android

Haste 或 Dogbin URL:= https://del.dog/tyhubonura.txt

我尝试了多个 defconfigs 和另一个内核 (https://github.com/redmidevs/android_kernel_xiaomi_msm8917),但也 运行 遇到了同样的问题。

这是一个缺少固件文件的问题。

我在 lenovo 站点上找到了该文件并将其复制到适当的目录,然后尝试重建。

联想源在这里:

https://download.lenovo.com/consumer/mobiles/tb_8504f_8504x_s001030_191021_row_opensource.tar.gz

固件文件内容可以在这里找到:

https://github.com/dazza5000/android_kernel_lenovo_msm8953/blob/b1db30c463cbe429e6a750b6b2439519180e23a4/drivers/input/touchscreen/fw_data_5517.i