compile kernel


Well-Known Member
Hello there, Im trying to compile latest kernel 5.5.2.
During "make" command, I have this error:
 make[1]: *** No rule to make target 'certs/rhel.pem', needed by 'certs/x509_certificate_list'.  Stop.
make: *** [Makefile:1693: certs] Error 2
I use CentOS 8 in a virtual machine.
First time attempt to compile kernel


Active Member
If you have a GUI try make xmenuconfig.
Looks like you are missing the openssl-devel headers.
You'll need these if you don't have them.
yum install -y ncurses-devel make gcc bc bison flex elfutils-libelf-devel openssl-devel grub2
(I typically install the entire C development group)

Best thing to do is copy the existing "default" config file and use it.
This is in your /boot folder. It'll look something like this.
config-5.4.17-200.fc31.x86_64 (it'll match whatever your running kernel version is)
Sometimes you can add one of two options, but the less you add, the easier it is.

cd your_kernel_src ( I think /usr/src/kernels is the default for CentOS )

make localmodconfig
make xmenuconfig (leave off the preceding "x" if you only have a console)

make bzImage
make modules
make install
make modules_install


Well-Known Member
Hello guys ,
I have downloaded all required programs for compiling.
I used menuconfig which completed successfully.
After that I run make command and I had the above error.
I will try to copy the existing kernel and I will be back.
Thanks for your time.

Members online

Latest posts