欢迎来到天天文库
浏览记录
ID:37710869
大小:35.00 KB
页数:6页
时间:2019-05-29
《Kernel 分析》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、配置结果(makes3c2410_defconfig):生成了.config文件。[root@LinkinParklinux-2.6.22.6]#grep"CONFIG_DM9000"*-nwR配置项:CONFIG_DM9000,包含在以下的文件中:1)C源码:CONFIG_DM9000宏2)drivers/net/Makefile:197:obj-$(CONFIG_DM9000)+=dm9000.o3)include/config/auto.conf:132:CONFIG_DM9000=yinclude/linux/aut
2、oconf.h:133:#defineCONFIG_DM90001makeuImage时,[1].config->转换成了autoconf.h;[2].config->转化成了auto.conf,auto.conf被顶层的Makefile包含。#makeuImageuImage包含在arch/arm/Makefile中,uImage依赖于vmlinux顶层Makefile包含有这句话:include$(srctree)/arch/$(ARCH)/Makefile顶层Makefile中包含有vmlinux:$(vmlinux-
3、lds)$(vmlinux-init)$(vmlinux-main)$(kallsyms.o)FORCE上面的依赖为vmlinux-init:=$(head-y)$(init-y)head-y:=arch/arm/kernel/head$(MMUEXT).oarch/arm/kernel/init_task.oinit-y:=init/init-y:=$(patsubst%/,%/built-in.o,$(init-y))(init-y=init/built-in.o)vmlinux-main:=$(core-y)$(lib
4、s-y)$(drivers-y)$(net-y)core-y:=usr/core-y+=kernel/mm/fs/ipc/security/crypto/block/core-y:=$(patsubst%/,%/built-in.o,$(core-y))(core-y=usr/built-in.okernel/built-in.omm/built-in.ofs/built-in.oipc/built-in.osecurity/built-in.ocrypto/built-in.oblock/built-in.o)libs-y
5、:=lib/libs-y:=$(libs-y1)$(libs-y2)libs-y1:=$(patsubst%/,%/lib.a,$(libs-y))libs-y2:=$(patsubst%/,%/built-in.o,$(libs-y))(lib-y=lib/built-in.olib/lib.a)drivers-y:=drivers/sound/drivers-y:=$(patsubst%/,%/built-in.o,$(drivers-y))(drivers-y:=drivers/built-in.osound/buil
6、t-in.o)net-y:=net/net-y:=$(patsubst%/,%/built-in.o,$(net-y))(net-y:=net/built-in.o)vmlinux-all:=$(vmlinux-init)$(vmlinux-main)vmlinux-lds:=arch/$(ARCH)/kernel/vmlinux.lds以下为编译时的连接过程:在linux下使用makeuImage之后的编译信息。arm-linux-ld-EL-p--no-undefined-X-ovmlinux-Tarch/arm/ker
7、nel/vmlinux.ldsarch/arm/kernel/head.oarch/arm/kernel/init_task.oinit/built-in.o--start-groupusr/built-in.oarch/arm/kernel/built-in.oarch/arm/mm/built-in.oarch/arm/common/built-in.oarch/arm/mach-s3c2410/built-in.oarch/arm/mach-s3c2400/built-in.oarch/arm/mach-s3c2412
8、/built-in.oarch/arm/mach-s3c2440/built-in.oarch/arm/mach-s3c2442/built-in.oarch/arm/mach-s3c2443/built-in.oarch/arm/nwfpe/built-in.oarch/arm/plat
此文档下载收益归作者所有