Make kernel.org Rpm for Tumbleweed: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Build Kernel Rpm for Tumbleweed = basically followed this guide: https://tutorialforlinux.com/2021/01/05/step-by-step-build-kernel-opensuse-easy-guide/ You need write access to /usr/src sudo zypper ref && sudo zypper update # sudo reboot sudo zypper in -t pattern devel_basis sudo zypper in bc openssl openssl-devel dwarves rpm-build libelf-devel elfutils-libelf-devel # dl and unpack kernel from kernel.org or clone e.g. from git://anongit.freedesktop.org/drm-tip,...") |
No edit summary |
||
Line 2: | Line 2: | ||
basically followed this guide: https://tutorialforlinux.com/2021/01/05/step-by-step-build-kernel-opensuse-easy-guide/ | basically followed this guide: https://tutorialforlinux.com/2021/01/05/step-by-step-build-kernel-opensuse-easy-guide/ | ||
sudo zypper ref && sudo zypper update | sudo zypper ref && sudo zypper update | ||
Line 17: | Line 15: | ||
make binrpm-pkg | make binrpm-pkg | ||
# make rpm-pkg | # make rpm-pkg | ||
sudo zypper in ~/rpmbuild/RPMS/x86_64/kernel-* | |||
sudo zypper in / | |||
sudo reboot | sudo reboot | ||
uname -r | uname -r |
Revision as of 08:50, 1 August 2022
Build Kernel Rpm for Tumbleweed
basically followed this guide: https://tutorialforlinux.com/2021/01/05/step-by-step-build-kernel-opensuse-easy-guide/
sudo zypper ref && sudo zypper update # sudo reboot sudo zypper in -t pattern devel_basis sudo zypper in bc openssl openssl-devel dwarves rpm-build libelf-devel elfutils-libelf-devel # dl and unpack kernel from kernel.org or clone e.g. from git://anongit.freedesktop.org/drm-tip, or ... # cd into source dir (e.g. kernel or drm-tip, or ... find /boot/ \( -iname "*config*" -a -iname "*`uname -r`*" \) -exec cp -i -t ./ {} \; mv *`uname -r`* .config sed -i 's/^CONFIG_MODULE_SIG_KEY/#CONFIG_MODULE_SIG_KEY/' .config # make menuconfig make binrpm-pkg # make rpm-pkg sudo zypper in ~/rpmbuild/RPMS/x86_64/kernel-* sudo reboot uname -r
A build took ~10min on a 11gen intel cpu with nvme disk
Builds fail mostly while building modules. Then easiset way out: you probably don't need the module, so deactivate it in .config
Kernel is not signed -> safeboot needs to be deactivated. For signing kernel or modules look elsewhere (e.g. kernel tree docs)