+ -
当前位置:首页 → 问答吧 → 内核源码配置问题求教

内核源码配置问题求教

时间:2010-08-04

来源:互联网

本帖最后由 new_new_one 于 2010-08-04 17:33 编辑

内核在编译之前,需要执行:
make *config
之类的命令,配置结束后,会在源码根目录生成.config文件(当然是确定保存后)。

我查看了相关文档(Documentation/kbuild/makefiles.txt):

Each subdirectory has a kbuild Makefile which carries out the commands
passed down from above. The kbuild Makefile uses information from the
.config file to construct various file lists used by kbuild to build
any built-in or modular targets.

大概翻译为:
"
每一个子目录都有一个Kbuild Makefile文件,用来执行从其上层目录传递下来的命令。
Kbuild Makefile从.config文件中提取信息,生成Kbuild完成内核编译所需的文件列表。
"
以上翻译来之互联网。

既然是这样,内核就必须读取.config中的内容了吧,但是我检查了相关的Makefile都没找到读取.config文件的位置。
求高手指点一二,小弟先谢谢了

作者: new_new_one   发布时间: 2010-08-04

另外补充一点:
(Documentation/kbuild/makefiles.txt)中说道:

The top Makefile reads the .config file, which comes from the kernel
configuration process.

这说明是顶层Makefile读取.config的。但是怎么都找不到读取的地方。

作者: new_new_one   发布时间: 2010-08-04

热门下载

更多