Hi there. I've had a few questions recently about how to build a cross compiler, so I took a stab at writing the steps down in a Makefile. See: https://code.launchpad.net/~michaelh1/+junk/cross-build
Hopefully it's easy to follow. It uses a binary sysroot and gives you vanilla binutils 2.20 and Linaro GCC 2010.11 in a good enough way that you can cross-compile for Maverick. The script is minimal and trades readability for flexibility.
Note that Marcin's cross compiler packages or the Embedian toolchains are a better way to go, but if you want to see the steps involved check out the script.
Marcin or Matthias, would you mind reviewing it?
-- Michael
Dnia środa, 1 grudnia 2010 o 04:01:04 Michael Hope napisał(a):
Hopefully it's easy to follow. It uses a binary sysroot and gives you vanilla binutils 2.20 and Linaro GCC 2010.11 in a good enough way that you can cross-compile for Maverick. The script is minimal and trades readability for flexibility.
Note that Marcin's cross compiler packages or the Embedian toolchains are a better way to go, but if you want to see the steps involved check out the script.
Before my packages I had makefile which bootstrapped whole cross toolchain from Debian/Ubuntu sources. But armel-cross-toolchaing-base + gcc-4.5-armel- cross debian/rules* files contain whole code from it.
Marcin or Matthias, would you mind reviewing it?
Looks good for me.
Regards,
linaro-toolchain@lists.linaro.org