我在尝试编译Note3的内核时遇到以下错误 这是三星的核心 有人有任何建议如何解决它?
make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g' make -C kernel/samsung/ha3g O=/home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ran/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install make[1]: Entering directory `/home/ran/android/system/kernel/samsung/ha3g' CHK include/linux/version.h make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g' make -C kernel/samsung/ha3g O=/home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/ran/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" zImage make[1]: Entering directory `/home/ran/android/system/kernel/samsung/ha3g' GEN /home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ/Makefile scripts/kconfig/conf --silentoldconfig Kconfig Using /home/ran/android/system/kernel/samsung/ha3g as source for kernel GEN /home/ran/android/system/out/target/product/ha3g/obj/KERNEL_OBJ/Makefile CHK include/linux/version.h CHK include/generated/utsrelease.h make[3]: `include/generated/mach-types.h' is up to date. CALL /home/ran/android/system/kernel/samsung/ha3g/scripts/checksyscalls.sh CHK include/generated/compile.h CC drivers/sensorhub/stm/factory/light_max88921.o /home/ran/android/system/kernel/samsung/ha3g/drivers/sensorhub/stm/factory/light_max88921.c:78:1: fatal error: opening dependency file drivers/sensorhub/stm/factory/.light_max88921.o.d: No such file or directory compilation terminated. make[5]: *** [drivers/sensorhub/stm/factory/light_max88921.o] Error 1 make[4]: *** [drivers/sensorhub/stm] Error 2 make[3]: *** [drivers/sensorhub] Error 2 make[2]: *** [drivers] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/home/ran/android/system/kernel/samsung/ha3g' make: *** [TARGET_KERNEL_BINARIES] Error 2
答案 0 :(得分:1)
不知何故,文件夹工厂在/ target / product / ha3g / obj / KERNEL_OBJ / drivers / sensorhub / stm下失踪了 当我添加这个文件夹(使用mkdir)时,它可以工作。