Skip to main content
5 of 6
deleted 51 characters in body
tshepang
  • 67.7k
  • 94
  • 226
  • 297

I would suggest to do things in the "Linux way", which means for me, as less automatic configuration as possible. I would download the required toolchain from the distributor’s site, and set a .CC file in your project's working dir. Your CC file should look something like this:

export PATH=< PATH-TO-TOOLCHAIN-BIN-FOLDER>:${PATH} export CROSS_COMPILE=< TOOLCHAIN PREFIX` i.e "arm-none-gnueabi-" (the last "-" is important) export ARCH=< ARCHITECTURE> 

After doing that, before running any compilation, issue "source .CC", and then compile as you do normally, i.e "gcc/g++/ld... ...". The compilation will automatically use the toolchain (you will see it in the output of the compilation, that the toolchain is being used)

A link that might help: http://en.wikipedia.org/wiki/Master_boot_record