Cross-Compiling FAQ

Cross-Compiling on Melanopus

Melanopus currently has an i686 cross-compiler installed in /opt/crosstool. You can use the scripts in /opt/crosstool/crosstool-0.38 to build other cross compiler environments for the Alpha. Consult the crosstool howto for more information on building a toolchain with crosstool. Compiling the toolchain takes a while, on a dual CPU machine you can export PARALLELMFLAGS="-j2"

To configure an i686 kernel on Melanopus export ARCH='i386' and use your favourite makefile directive (oldconfig, menuconfig, etc.). You can then cross-compile a kernel package with:

make-kpkg --rootcmd=fakeroot --revision=0 --append-to-version=-thinclient \
          --arch=i386 \
	  --cross-compile=/opt/crosstool/gcc-3.4.3-glibc-2.3.2/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu- \
	  kernel-image --initrd

To use both CPUs export CONCURRENCY_LEVEL=2.