
makefile
文章平均质量分 54
天麓
很懒的码农
展开
-
慢慢欣赏linux elf文件
readelf -h vmlinux简单介绍一下Linux中ELF格式文件http://www.elecfans.com/emb/20190402898901.html原创 2020-09-13 22:39:48 · 208 阅读 · 0 评论 -
慢慢欣赏linux 生成内核镜像
all: bzImage || \/ bzImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE) || \/ //vmlinux展开 # vmlinux image - including updated kernel symbols vmlinux: $(vmlinux-lds) $(vmlinux-init) $(vmlinux-main) vmlinux.o $(kallsyms.o) FORCE .原创 2020-09-06 21:10:36 · 444 阅读 · 0 评论 -
慢慢欣赏linux kbuild如何编译c和汇编
c码编译流程$(vmlinux-dirs): prepare scripts $(Q)$(MAKE) $(build)=$@ || \/vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ $(net-y) $(net-m) $(libs-y) $(libs-m))) || \/vmli原创 2020-09-05 23:00:10 · 241 阅读 · 0 评论 -
慢慢欣赏linux make uImage流程
# The all: target is the default when no target is given on the# command line.# This allow a user to issue only 'make' to build a kernel including modules# Defaults vmlinux but it is usually overridden in the arch makefileall: vmlinuxinclude $(srctr.原创 2020-05-24 20:11:29 · 426 阅读 · 0 评论 -
慢慢欣赏linux kbuild构建
.config 与 include/config/auto.config的差别:后者是前者生成的。.config => include/config/auto.config例如: 后者并过滤掉非使能的选择,例如 #CONFIG_XXX is not set CINFIG_PROC_FS = y => #define CINFIG_PROC_FS 1Linux内核构建系统之一 这个系列不错https://blog.youkuaiyun.com/u012999771/a...原创 2020-07-04 22:32:03 · 270 阅读 · 0 评论 -
慢慢欣赏linux if_changed_xxx的作用
编译内核会生成很多临时文件,以 o.cmd为后缀。打开看发现是编译脚本。这些文件是在scripts/makefile.build文件通过如下编译宏实现:define rule_cc_o_c $(call echo-cmd,checksrc) $(cmd_checksrc) \ $(call echo-cmd,cc_o_c) $(cmd_cc_o_c); \ $(cmd_modversions) \ $(call echo-cmd,record_mcount)原创 2020-06-25 11:45:35 · 1339 阅读 · 1 评论 -
慢慢欣赏linux make menuconfig流程
先看一下打印(使用前需要make clean)[root@cliffr linux-2.6.32]# lsarch COPYING crypto drivers fs init Kbuild lib Makefile Module.symvers README samples security tools virtblock CREDITS Documentation firmware include原创 2020-05-23 22:27:10 · 430 阅读 · 0 评论 -
linux内核版本号
源码中查看Linux内核版本https://blog.youkuaiyun.com/sweetmilkcake/article/details/82954632原创 2020-04-05 08:42:52 · 266 阅读 · 0 评论 -
链接脚本
Linux下的lds链接脚本详解https://www.cnblogs.com/li-hao/p/4107964.html【理论知识篇】Linux下的lds链接脚本基础https://www.docin.com/p-220079257.html原创 2020-01-25 23:57:58 · 154 阅读 · 0 评论 -
慢慢欣赏linux perf编译
问题1:交叉编译失败Makefile:509:***warning No libdw.h found or old libdw.h found, disables dwarf support. Please install elfutils-devel/elfutils-dev解决方法:发现在Makefilel里面根据编译和链接一个测试程序来确认是否有elf相关的API。可以将小程序的c拷贝...原创 2018-11-13 07:24:17 · 1492 阅读 · 0 评论 -
慢慢欣赏linux makefile学习
https://www.cnblogs.com/sky-heaven/p/6272408.html原创 2018-04-18 07:40:11 · 411 阅读 · 0 评论