简体   繁体   中英

Kernel compilation not finding .config file

EDIT: Solved it, check my comment below.

I'm trying to compile a kernel with make O=$BUILD

Where build is the build path: BUILD=~/lab/build

But then I get this error:

*** 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.

Before I compiled I used the old config file for the new kernel by copying it to my kernel folder:

cp -vi /boot/config-3.13.0-45-generic .config

and then i ran:

make oldconfig 

and entered all defaults.

How can I fix the error?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM