On Fri, 18 Oct 2019 13:46:09 -0700 stan <upaitag@xxxxxxxx> wrote: > On Fri, 18 Oct 2019 18:26:01 -0000 > "Kot Begemot" <kbdeamon@xxxxxxxxx> wrote: > > 3. After the compilation completes I find the following > > kernel-* files in /home/user0/rpmbuild/RPMS/x86_64 which is great. > > But is there any way to avoid compiling the "debug" versions? I am > > trying "rpmbuild -ba kernel.spec" at the moment. > > Edit the spec file, and turn off all the debug options; flip them from > 1 to 0. These are just below the > %define buildid .20191008 > that you should be setting so your kernel is identified as a custom > version. > e.g. > # kernel-debug > %define with_debug %{?_without_debug: 0} > %{?!_without_debug: 0} PS You can probably speed up your compile by replacing this line %define nobuildarches i386 with this one, if you are building for x86_64. %define nobuildarches i386 ppc64 s390x %{arm} %{power64} aarch64 ppc64le and also disabling the cross-compile headers. If you want to go even further, you could create a configuration file using make localmodconfig which will only build modules that you are actually using on the currently running system. Be sure that everything you need is there. It is a good idea to run make nconfig or make menuconfig after this to be sure that things look reasonable, and to remove things you are sure you don't need (file systems you don't use, etc.). This can get complex, so is a little deeper than the above two suggestions. _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx