Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] Kernel compilation the openSUSE way?
On 2017-06-09 14:33, Bjoern Voigt wrote:

...

Compiling the Linux Kernel, the SUSE way

https://www.suse.com/communities/blog/compiling-de-linux-kernel-suse-way/

This is my Kernel configuration, compilation and installation path:

1. Update kernel-source and kernel-default from Kernel_stable repository
2. Save kernel-source: cp -a /usr/src/linux-4.x.y-...
/usr/src/linux-4.x.y-my
3. Apply my patches
cd /usr/src/linux-4.x.y-my
patch -b -p1 < ~myuser/.../my-kernel-patch.patch
4. Copy standard configuration:
cd /usr/src/linux-4.x.y-my
cp -v /boot/config-4.11.4-1.gcba98ee-default .config
5. Edit .config:
remove CONFIG_LOCALVERSION, CONFIG_DEBUG_KERNEL, CONFIG_EXPERT
remove some hardware-dependent settings
6. edit configuration interactively:
Disable CONFIG_EXPERT and CONFIG_DEBUG_KERNEL, because otherwise
"make binrpm-pkg" creates huge kernel binaries.

4..6 Instead, "make cloneconfig".


--
Cheers / Saludos,

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)

< Previous Next >
References