gcc 编译
摘要:gcc main.c -o maingcc main.c -o ./output/maincompilegcc -c main.c -o main.olinkgcc main.o -o main.out###############preprocess .c >.i compile .i > .sa
阅读全文
内核配置编译总结
摘要:内核配置 通过在 make menuconfig 生成的菜单上做完选择,生成 .config 文件 在编译时先通过 .config 文件生成 include/config/auto.conf 和 include/linux/autoconf.h 再编译 include/config/auto.con
阅读全文
linux内核配置 kbuild
摘要:Linux 内核配置机制 http://blog.csdn.net/dianhuiren/article/details/6917132 linux kbuild文档 http://blog.chinaunix.net/uid-10221131-id-2943265.html
阅读全文
编译模块的Makefile解析
摘要:Makefile # if not defined KERNELRELEASE, command is running from command line,need invoke kbuild system. ifeq ($(KERNELRELEASE),) KERNELDIR ?= /linux-
阅读全文
Makefile编写参考
摘要:http://www.ruanyifeng.com/blog/2015/02/make.html
阅读全文
makefile 中的赋值
摘要:1. 在makefile 中可以使用后面定义的变量,未定义的变量值为空=使用变量时执行赋值操作:= 立即执行赋值操作?= 如果没有赋值过,就赋予后面的值+= 将后面的值追加到原来的值后面参考http://c4fun.cn/blog/2014/01/23/gnu-make-study02/http:/...
阅读全文