linux - Makefile 错误地混淆了不存在的文件夹

标签 linux makefile

我正在尝试使用以下命令行编译向后移植:

make KLIB=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ KLIB_BUILD=$CM_ROOT/out/target/product/$CM_BUILD/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=$CM_ROOT/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- defconfig-wcn36xx

但它失败并出现以下错误:

Generating local configuration database from kernel ...make[2]: *** /home/user/android2/system/kernel/lge/mako: No such file or directory.  Stop.

这是因为文件夹/home/user/android2/不存在。
android2这个文件夹是从哪里来的?

$CM_ROOT = /home/user/android-wcn36xx/system/
$CM_BUILD = mako

grep -r "android2" .   

export | grep android2

什么都不返回

最佳答案

通过运行 make clean 并在源文件夹中重新编译修复

关于linux - Makefile 错误地混淆了不存在的文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43868769/

相关文章:

c++ - boost 不同的工具集

c - 如何在 Linux 上创建 10MB 的二进制文件?

node.js - node js版本升级6到8报错

c++ - 编译共享库时解析 ifdefs

visual-studio-2010 - mingw 可以构建一个 Visual Studio-2010 项目吗?

c++ - makefile变量传递

linux - "synchronized I/O"总是意味着 "blocking I/O"吗?

linux - 为什么在分组命令中执行简单命令不会fork子shell进程,而复合命令会做

具有多个文件的 latex aspell 的 makefile

compiler-errors - SOX : installing libmad make[1]: *** [all-recursive] Error 1 & make: *** [all] Error 2