Wednesday, January 7, 2009

Linux kernel cross compile with crosstool

Steps to build gcc/glibc toolchain using crosstool
  • Download crosstool
  • Set CC=gcc-3.4
  • Change /bin/sh to bash
  • Build crosstool
$ sh demo-powerpc-603.sh

Steps to cross compile Linux kernel using gcc/glibc toolchain
  • Set the path to gcc/glibc toolchain
  • Build Linux kernel
$ make ARCH=powerpc CROSS_COMPILE=powerpc-603-linux-gnu-

No comments:

Post a Comment