From the course: Advanced Linux: The Linux Kernel

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Explore the kernel makefile

Explore the kernel makefile - CentOS Tutorial

From the course: Advanced Linux: The Linux Kernel

Start my 1-month free trial

Explore the kernel makefile

- [Instructor] Let's talk about the Linux Kernel source code Makefile. At the top of the kernel Makefile are some macros and version, patchlevel, and sublevel are the usual sort of version information. And then there's a macro extraversion that you can set to indicate something about your custom kernel built. Maybe dash your name or dash some other numbers or something like that. And then we see that there's a clever name so each kernel version has some cute name. Let's look at the top of the kernel Makefile. We can just do that with head. And sure enough, there we see the version and the name information. Let's talk about help, make help. The kernel Makefile supports making lots of stuff, including some cleaning targets. We mentioned make clean before and that's maybe the most common one. That's going to remove the .o files that you created when you built your kernel. And then there's the make mrproper. Make…

Contents