Building the kernel

Ensure you have the gcc-arm-linux-gnueabi toolchain installed, because you'll need it to cross-compile. Then install and unpack the source.

sudo apt-get install linux-source-3.2.0
tar xf /usr/src/linux-source-3.2.0/linux-source-3.2.0.tar.bz2
cd linux-source-3.2.0
cp -r /usr/src/linux-source-3.2.0/debian .
cp -r /usr/src/linux-source-3.2.0/debian.master .
chmod +x debian/scripts/misc/splitconfig.pl debian/scripts/config-check

Also, apply our patch from the repo, replacing ${scoutos} with its location:

patch -p1 < ${scoutos}/scout_gumstix/kernel-scout.patch

Now generate the default Debian .config for the OMAP (armhf means hardware floating point):

./debian/rules genconfigs
cp CONFIGS/armhf-config.flavour.omap .config

Now there are a few changes to make to the config. Open the config menu:

export ARCH=arm
make menuconfig

Change General Setup / Cross-compiler tool prefix to /usr/bin/arm-linux-gnueabi-
Disable Kernel Hacking / Compile the kernel with debug info

This step will take a while:

make
make uImage

TODO make modules_install and make headers_install