CentOS 6.5でLinuxカーネル 3.16.1をビルド

CentOS(x86_64)の環境でもビルドを試したのでメモ。

作業環境

$ cat /etc/redhat-release 
CentOS release 6.5 (Final)

作業過程

必要なパッケージのインストール
$ sudo yum groupinstall "Development tools"
$ sudo yum install ncurses-devel
ダウンロードからビルドまで
$ wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.1.tar.xz
$ tar Jxf linux-3.16.1.tar.xz
$ cd linux-3.16.1/
$ make mrproper
$ cp /boot/config-2.6.32-431.23.3.el6.x86_64 .config
$ make olddefconfig
$ time make
...
real    100m14.255s
user    69m27.565s
sys     10m32.876s