dot-config := 1 // 提示要构建与 .config 文件相关的目标,如 vmlinux bzImage 等。
config-targets=0 // 不需要生成 .config ,所以 config-targets 为 0 。
mixed-targets=0 // make 命令中不指定目标,make all 中指定 1 个目标 all,所以不是构建混合目标,故 mixed-targets 为 0
KBUILD_EXTMOD="" // 不是构建外部模块,所以 KBUILD_EXTMOD 为空
KBUILD_OUTPUT="" // 不使用 O 选项指定构建目标的生成路径,故 KBUILD_OUTPUT 为空
skip-makefile="" // 如果 skip-makefile 变量为 1,就基本什么都不做
* vmlinux - Build the bare kernel
* modules - Build all modules
* bzImage - Compressed kernel image (arch/x86/boot/bzImage)
$ make
_all generated
$ ls
bzImage Makefile modules vmlinux
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |