Understand What KBuild Is

I am new to the Linux kernel.

I am trying to understand the idea, a high level of what kbuild is .

When I compile the kernel, I invoke make, which is located on the Linux machine, GNU make.

So what is KBuild? Is this a set of makefiles that are used by inclusion in the kernel makefiles? Where is kmk used?

The link will be useful.

thanks

+5
source share
1 answer

These links are not related to the Linux kernel. kbuild is a collection of scripts that are embedded inside the kernel sources, and the kernel build process is independent of anything called kmk. The kernel build system depends only on standard GNU make and takes care of compiling its own helper programs, most of which are in the scripts/ directory.

There is a Documentation / kbuild directory in the source tree - it contains some documentation on using the kernel build system.

+8
source

Source: https://habr.com/ru/post/1379731/


All Articles