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 - CentOS Tutorial
From the course: Advanced Linux: The Linux Kernel
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Get the kernel source8m 23s
-
(Locked)
Explore the kernel makefile4m 59s
-
(Locked)
Examine and build kernel documentation6m 2s
-
(Locked)
Search the kernel source7m 58s
-
(Locked)
Examine kernel driver source4m 2s
-
(Locked)
Additional selected subdirectories8m 49s
-
(Locked)
Challenge: Linux kernel source code26s
-
(Locked)
Challenge: Solution4m 5s
-
(Locked)
-
-