Understand what is KBuild

℡╲_俬逩灬. 提交于 2019-12-07 04:37:55

问题


I'm a 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 a set of makefiles which are used by including in kernel makefiles? Where kmk is used?

Reference will be helpful.

Thanks


回答1:


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.



来源:https://stackoverflow.com/questions/8016678/understand-what-is-kbuild

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!