Tuesday, October 03, 2017

arm cross compiler from Ubuntu apt


For ARM cross compiling, I had been using the Code Sourcery from Mentor Graphics. However the Mentor Graphics ARM compiler became non-free and there are two versions of free gcc compilers default in Ubuntu repository:
  • arm-linux-gnueabi-
  • arm-none-eabi-
Here are the commands to install them(as of today's Ubuntu Xenial 16.04)
$ sudo apt-get install gcc-arm-linux-gnueabi 
or
$ sudo apt-get install gcc-arm-none-eabi 
or
$ sudo apt-get install gcc-arm-linux-gnueabihf 
Enjoy!

No comments: