内核Kbuild-Makefile-Kconfig之间的关系

本文介绍了Linux内核构建系统的组成部分,包括顶级Makefile、.config配置文件、架构特定Makefile、scripts目录下的通用规则文件以及众多kbuild Makefiles。这些文件共同作用于构建vmlinux内核映像和模块。顶级Makefile依赖.config文件,而每个子目录的kbuild Makefile利用.config信息来定制构建过程。
摘要由CSDN通过智能技术生成

参见/Documentation/kbuild:

The Makefiles have five parts:


    Makefile        the top Makefile.
    .config         the kernel configuration file.
    arch/$(ARCH)/Makefile   the arch Makefile.
    scripts/Makefile.*  common rules etc. for all kbuild Makefiles.
    kbuild Makefiles    there are about 500 of these.


The top Makefile reads the .config file, which comes from the kernel
configuration process.


The top Makefile is responsible for building two major products: vmlinux
(the resident kernel image) and modules (any module files).
It builds these goals by recursively descending into the subdirectories of
the kernel source tree.
The list of subdirectories which are visited depends upon the kernel
configuration. The top Makefile textually includes an arch Makefile

with the name arch/$(ARCH)/Makefile. The arch Makefile supplies
ar

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值