compile kernel

CptCharis

Well-Known Member
Joined
Feb 27, 2018
Messages
563
Reaction score
465
Credits
982
Hello there, Im trying to compile latest kernel 5.5.2.
During "make" command, I have this error:
Code:
 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
 


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
make install
make modules_install
 
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


Top