2. Configuring the kernel

To configure the kernel, enter the just created directory. Because configuring the whole kernel from scratch, taskit provides a default configuration for each product. To use the it, enter the following command:

make ARCH=arm product_defconfig

Replace product with the name of the product, e.g. stamp9g20evb.

You can now change the kernel configuration. There are multiple interfaces available for this purpose. They are provided via the make targets config, menuconfig, xconfig and gconfig. We will use menuconfig.

In order to use menuconfig, curses headers have to be installed on your system. If they are not at the moment, issue the following command to get them:

apt-get install ncurses-dev

You can now configure the kernel:

make ARCH=arm menuconfig

Kernel configuration dialog

Figure 6.1. Kernel configuration dialog


Figure 6.1, “Kernel configuration dialog” shows a screenshot of the menuconfig utility. You can now enable and disable the options as you like. Each option can have up to three states: , M and *. denotes disabled options, M means, they are compiled as a module and can later be loaded with the help of insmod or modprobe, and * selects an option to be built into the kernel image. If the option belongs to a driver built as a module, * means, that this options is built into the module, not the kernel image.

When you are finished with configuring the kernel, exit and save the new configuration. You are now ready to compile the kernel.