
Linux kernelBuild
lcw_202
这个作者很懒,什么都没留下…
展开
-
linux make menuconfig 执行流程小结
linux/2.6.20.6/make menuconfig 当在顶层目录执行”make menuconfig”会执行顶层Makefile 第415行的规则 config %config: scripts_basic outputmakefile FORCE $(Q转载 2011-07-25 19:25:51 · 2873 阅读 · 0 评论 -
auto.conf, auto.conf.cmd, autoconf.h
在编译构建性目标时(如 make vmlinux),顶层 Makefile 的 $(dot-config) 变量值为 1 。在顶层 Makefile 的 497-504 行看到:?12345678910转载 2011-08-04 22:28:27 · 5116 阅读 · 1 评论 -
if_changed_rule/cc_o_c/any-prereq/arg-check
Makefile 对应内核版本:2.6.35.13在 scripts/Makefile.build 的 86 行看到 builtin-target 的定义:1builtin-target :=$(obj)/built-in.o转载 2011-08-04 19:43:47 · 2540 阅读 · 0 评论 -
Makefile中的+/- 符号
make 通常会在命令运行结束后检查命令的执行的返回状态,如果返回成功,那么就启动一个子 shell 来执行下一条命令;如果在中途检测到有执行出错的情况(返回非 0 状态),那么就会放弃对当前规则后续命令的执行,甚至会终止所有规则的执行。但在某些情况下,规则中一个命令执行失败并不转载 2011-08-03 15:05:07 · 2538 阅读 · 0 评论 -
linux 顶层Makefile执行的流程
1、make menuconfig# *DOCUMENTATION*# To see a list of typical targets execute "make help"# More info can be located in ./README# Comments in转载 2011-07-26 01:21:38 · 7874 阅读 · 1 评论 -
The Linux Kernel Makefile
The Linux kernel makefile is anexcellent example of usingmake in a complex build environment. While it isbeyond the scope of this book to ex原创 2011-07-27 21:19:49 · 1976 阅读 · 0 评论 -
vmlinux-init, vmlinux-main
Makefile 对应内核版本:2.6.35.13vmlinux-init 和 vmlinux-main 是 vmlinux 目标的两个依赖。在顶层 Makefile 中有一段注释图:引用 # vmlinux# ^# |# +-#转载 2011-08-04 22:23:11 · 1039 阅读 · 0 评论 -
$(if $(KBUILD_VERBOSE:1=),@) 语法释疑
内核版本:2.6.35.13在 Makefile 的 125 行中有一句:$(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ KBUILD_SRC=$(CURDIR) \ KBUILD转载 2011-08-03 13:36:42 · 5379 阅读 · 0 评论 -
GNU-ld连接脚本 Linker Scripts
关键词: ld;连接脚本 GNU-ld连接脚本 Linker Scripts------------------------------------E-mail: zhanglei@sict.ac转载 2011-07-24 10:03:54 · 895 阅读 · 0 评论 -
向linux内核版本号会自动添加“+”号
1. 引子编译2.6.35.7 kernel版本的时候发现,“2.6.35.7“的内核版本编译成功后生成的版本号变成了“2.6.35.7+”,为什么后面会多一个加号呢?问题出现在linux的版本控制这一块:打开Makefile我们可以在文件的最上面可以发现VERSION = 2PATCHLEVEL = 6SUBLEVEL = 35EXTRAVERSION = .7转载 2012-12-11 14:33:37 · 660 阅读 · 0 评论