Monday, October 26, 2015

How to Compile Linux Kernel with Current Configuration


This article is abount recompiling Ubuntu 14.04 kernel using current configuration. Customizing of the kernel is possible after you made copy of current config from /boot/config-`uname -r` to .config as well.
For linux distribution version other than Ubuntu 14.04 TrustyTahr might also applied with several adjustment.

Prepare workspace

$ mkdir -pv /opt/Ubuntu_x64/TrustyTahr/KERNEL
$ cd /opt/Ubuntu_x64/TrustyTahr/KERNEL

Git Current Kernel

https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide
$ git clone git://kernel.ubuntu.com/ubuntu/ubuntu-trusty.git


Get Current Kernel

$ export MYKERNEL=linux-image-$(uname -r)
$ apt-get source $MYKERNEL

$ cd cd linux-lts-utopic-3.16.0
$ cp /boot/config-`uname -r` .config

Do customize whatever you want to modify on this kernel source ...
Then,

$ make
$ make modules_install
$ make install




0 comments: