Build your own custom Linux Kernel for SliTaz
[http://doc.slitaz.org/en:guides:kernel]
1. tazpkg get-install slitaz-toolchain
2. tazpkg get-install linux-source
----
To modify the kernel configuration:
$ cd /usr/src/linux-2.6.30.6-slitaz
$ make menuconfig
To build the kernel and the modules:
$ cd /usr/src/linux-2.6.30.6-slitaz
$ make bzImage && make modules
To install the new kernel and the modules:
$ make modules_install
$ cp -a arch/x86/boot/bzImage /boot/vmlinuz-2.6.30.6-slitaz
To make a Slitaz package with the new kernel and the modules:
$ make tazpkg
See /usr/src/linux-2.6.30.6-slitaz/README
----
================================================================================
linux-source (2.6.30.6) is installed.
root@slitaz:~# gcc -v
Using built-in specs.
Target: i486-pc-linux-gnu
Configured with: ../gcc-4.4.1/configure --prefix=/usr --libexecdir=/usr/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls --enable-languages=c,c++,objc,fortran --enable-shared --with-system-zlib --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu
Thread model: posix
gcc version 4.4.1 (GCC)
root@slitaz:~#
root@slitaz:~# tazpkg info slitaz-toolchain
Tazpkg information
================================================================================
Package : slitaz-toolchain
Version : 1.0
Category : meta
Short desc : SliTaz toolchain meta package for devel.
Maintainer : pankso@slitaz.org
Depends : binutils linux-headers glibc-dev gcc make
Web site : http://www.slitaz.org/
================================================================================
root@slitaz:~# tazpkg info linux-source
Tazpkg information
================================================================================
Package : linux-source
Version : 2.6.30.6
Category : development
Short desc : The Linux kernel source files.
Maintainer : devel@slitaz.org
Depends : linux slitaz-toolchain ncurses-dev perl
Wanted src : linux
Web site : http://www.kernel.org/
================================================================================
root@slitaz:~# cat /var/log/tazpkg.log
2010-05-12 08:33:01 - Installed - binutils (2.19.1) - 3e0de34e007be29c0ebb6cbff43eba15
2010-05-12 08:33:01 - Installed - linux-headers (2.6.30.6) - f96101f9d3e1c29ff35edd54476e4577
2010-05-12 08:33:03 - Installed - bash (4.0) - 299bf79f5c8ea7b19715e9981a9419a8
2010-05-12 08:33:03 - Installed - libgd (2.0.35) - 539b6e178d8bcdbd7a0e4d4d97c0e04a
2010-05-12 08:33:04 - Installed - glibc-dev (2.10.1) - 1bfa095deffb35e64401b59856cf3ede
2010-05-12 08:33:05 - Installed - libgomp (4.4.1) - 2a1264d8e6daed0f6a0d51f30bdc6ede
2010-05-12 08:33:05 - Installed - make (3.81) - 6e37b7395ffa82c65ef5630c2e27dec2
2010-05-12 08:33:06 - Installed - gmp (4.2.2) - 549b48e2af6470f3babfcab6a407900c
2010-05-12 08:33:06 - Installed - mpfr (2.4.1) - 8af4c7df92b29ccf77d589a6e54001f6
2010-05-12 08:33:13 - Installed - gcc (4.4.1) - 3dd4b1be27a5a90f738c63f5654786c9
2010-05-12 08:33:13 - Installed - slitaz-toolchain (1.0) - dbf1a81f5e42e93b9f838b5e146c6783
2010-05-12 08:39:43 - Installed - ncursesw-dev (5.7) - 3a243df79f4ad2dfa1c1fc4c7981a0a9
2010-05-12 08:39:43 - Installed - ncurses-dev (5.7) - c7a96c4ae098b65809e2bd2165362a48
2010-05-12 08:39:43 - Installed - libdb (4.7.25) - 88b3fb91256dd36f1b8bd7d3aef73989
2010-05-12 08:39:43 - Installed - gdbm (1.8.3) - db31351e035c988201ab6a4f54582e96
2010-05-12 08:39:45 - Installed - perl (5.10.0) - 08a618230fbad37eaa63b7e4483eca80
2010-05-12 08:40:06 - Installed - patch (2.5.4) - 395aa6153644678ea3ff2512ac0bb8bb
2010-05-12 08:40:12 - Installed - linux-source (2.6.30.6) - 478e2bdb88dabc5ac32cd7781488305a
root@slitaz:~#
root@slitaz:~# ls -l /usr/src
lrwxrwxrwx 1 root root 21 May 12 08:39 linux -> linux-2.6.30.6-slitaz
drwxrwxr-x 24 root root 4096 May 12 08:40 linux-2.6.30.6-slitaz
-rwx------ 1 root root 59430223 Oct 14 2009 linux-2.6.30.6.tar.bz2
root@slitaz:~# ls -l /lib/modules/`uname -r`/ | grep linux
lrwxrwxrwx 1 root root 30 May 12 08:39 build -> /usr/src/linux-2.6.30.6-slitaz
lrwxrwxrwx 1 root root 30 May 12 08:39 source -> /usr/src/linux-2.6.30.6-slitaz
root@slitaz:~#
.