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.

Build and install modules and kernel

Build and install modules and kernel - CentOS Tutorial

From the course: Advanced Linux: The Linux Kernel

Start my 1-month free trial

Build and install modules and kernel

- [Instructor] Let's talk about building a kernel and modules and getting that stuff installed. To build stuff for the kernel make file, you can actually use the dash j option, and that can be handy for the kernel and for modules. The j for job option tells make that it can be running multiple makes at the same time. So you can be using all the cores on your system to be compiling all at the same time. So the kernel image you might want to make would be bzImage. So you might want to say make minus j number of cores you got bzImage, or you can make uImage, which is common for embedded devices, for example, or maybe you just want vmlinux, which is not a really bootable image, it's just the kernel itself compiled. The image that you need to build is going to depend on your bootloader. So uImage for uboot, bzImage for grub, for example. And that vmlinux part is going to always get built, because that's going to be…

Contents