3. Compiling the kernel

Compiling is simple:

make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi-

This builds the kernel and all selected kernel modules. If you want to build the kernel and the modules in two steps, use the following to commands:

make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- zImage
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- modules

The kernel make file provides a target for installing the modules: modules_install. By default, the modules are installed in /lib/modules. For cross-environment development, the modules must be installed in a different directory. We will install it into /develop/modules. When entering the path of the module directory, ensure that no relative paths are given; since the script traverses the kernel directories, relative paths can change.

make ARCH=arm INSTALL_MOD_PATH=/develop/modules modules_install