了解什么是KBuild [英] Understand what is KBuild
问题描述
我是Linux内核的新手。
我想了解这个想法,高层是什么是 kbuild 。
当我编译内核时调用 make 在Linux机器上将GNU make。
那么什么是KBuild?它是通过包括在内核makefile中使用的makefile的集合吗?
在哪里使用 kmk ?
您提到的链接与Linux内核无关。 kbuild是在内核源代码中内置的一系列脚本,内核构建过程不依赖于名为kmk的任何东西。内核构建系统仅依赖于标准的GNU make,并且它负责编译自己的帮助程序,其中大部分位于 scripts /
目录下。
在源树下,有一个目录 Documentation / kbuild –它包含一些关于使用内核构建系统的文档。
I'm newbie to Linux kernel.
I'm trying to understand the idea, high level what is kbuild.
When I compile kernel I call make, which is on Linux machine will GNU make.
So what is KBuild? Is it set of makefiles which are used by including in kernel makefiles? Where kmk is used?
Reference will be helpful.
Thanks
The links you have mentioned have nothing to do with the Linux kernel. kbuild is an assortment of scripts that are built-in inside the kernel's sources, and the kernel build process does not depend on anything named kmk. The kernel build system depends only on the standard GNU make, and it takes care of compiling its own helper programs, most of which are located under scripts/
directory.
Under the source tree, there is a directory Documentation/kbuild – it contains some documentation on using the kernel's build system.
这篇关于了解什么是KBuild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!