Hi,
I’m trying to compile the kernel.
To do this, I read two guides
https://fedoraproject.org/wiki/Building_a_custom_kernel/Source_RPM
Building a Custom Kernel :: Fedora Docs.
They describe sequences of Fedora-specific commands for cloning kernel files (not its source code), generating rpm packages, etc.
unfortunately, in this description I did not find where the place is in the sequence of commands:
A complete walkthrough could look like this:
sudo dnf install fedpkg fedora-packager rpmdevtools ncurses-devel pesign grubby
sudo dnf install qt5-qtbase-devel libXi-devel gcc-c++
sudo bash -c “echo $USER >> /etc/pesign/users”
sudo /usr/libexec/pesign/pesign-authorize
fedpkg clone -a kernel
cd kernel
git fetch
git switch f34
sed -i ‘s/# define buildid .local/%define buildid .foobar/g’ kernel.spec
sudo dnf builddep kernel.spec
fedpkg local
cd x86_64
sudo dnf install --nogpgcheck
kernel-core-5.17.12-100.foobar.fc34.x86_64.rpm
kernel-modules-5.17.12-100.foobar.fc34.x86_64.rpm
kernel-5.17.12-100.foobar.fc34.x86_64.rpm
for kernel configuration (make menuconfig)
compiling kernel and modules (make)
I would appreciate advice on how i Fedora can configure and compile the kernel correctly,
Thank you very much