编辑:解决了它,请检查下面我的评论。

我正在尝试使用make O = $ BUILD编译内核

build是构建路径:BUILD =〜/lab/build

但是然后我得到这个错误:

*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target `include/config/auto.conf', needed by`include/config/kernel.release'.  Stop.

在编译之前,我将旧的配置文件用于新内核,方法是将其复制到我的内核文件夹中:
cp -vi /boot/config-3.13.0-45-generic .config

然后我跑了:
make oldconfig

并输入所有默认值。

我该如何解决错误?

最佳答案

我现在通过做它来编译
make O = $ BUILD oldconfig,也可以在内核目录中执行make mrproper,然后再次运行make O = $ BUILD。

07-24 22:30
查看更多