当它构建内核模块时,我一直收到这个错误。我试图转到目录来修复它。(内置.o)它不起作用,并导致build/kernel目录文件夹出现更多问题。
LD drivers/input/touchscreen/built-in.o
arm-eabi-ld: cannot find /home/taco/android/system/kernel/lge/msm8909/drivers/input/touchscreen/ft_gesture_lib.a: No such file or directory
/home/taco/android/system/kernel/lge/msm8909/scripts/Makefile.build:387: recipe for target 'drivers/input/touchscreen/built-in.o' failed
make[5]: *** [drivers/input/touchscreen/built-in.o] Error 1
/home/taco/android/system/kernel/lge/msm8909/scripts/Makefile.build:455: recipe for target 'drivers/input/touchscreen' failed
make[4]: *** [drivers/input/touchscreen] Error 2
/home/taco/android/system/kernel/lge/msm8909/scripts/Makefile.build:455: recipe for target 'drivers/input' failed
make[3]: *** [drivers/input] Error 2
/home/taco/android/system/kernel/lge/msm8909/Makefile:815: recipe for target 'drivers' failed
make[2]: *** [drivers] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/taco/android/system/kernel/lge/msm8909'
build/core/tasks/kernel.mk:286: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: Leaving directory '/home/taco/android/system'
#### make failed to build some targets (11:59 (mm:ss)) ####
taco@taco-VirtualBox:~/android/system$ 发布于 2016-09-05 21:50:54
通常,当repo清单使用不兼容版本的项目时,例如,如果您使用CM13清单并添加msm8909驱动程序,而这些驱动程序是基于比CM13清单中使用的旧内核版本构建的,则会发生这种情况。
您是否正在为您的设备构建现有的官方或非官方CM端口,或者是否组装了一个新端口?在任何情况下,您都应该提供有关repo清单和CM端口的更多信息。
如果问题正如我所描述的那样,通常很难修复,因为这意味着将驱动程序代码移植到较新的内核版本。这项工作通常是由维护驱动程序代码的人完成的,它需要适当的经验。当然,它可能只需要美容的改变,但这是罕见的情况。
在repo清单中,检查驱动程序使用了哪个git存储库,然后检查代码使用了哪个内核版本(通常可以在git标签/分支中看到)。有可能repo有一个针对您所需的内核版本的更新分支,但您的repo清单采用的是旧版本。
https://stackoverflow.com/questions/39303395
复制相似问题