Skip to content

andrewrobinson5/Cross-Compiler-Build-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-Compiler-Build-Script

script that builds gcc and binutils nice and easy.

Just place the cross-compiler.sh script in your home directory and launch it from terminal using the following command:

./cross-compiler.sh x86_64-elf

Replace x86_64-elf with your target and you are set. It will do everything. It will create all directories you need, download GCC 9.2.0 and Binutils 2.33 and build them together. It even installs the prerequisites for you. It only works on apt-based systems and has only been tested on Ubuntu.

You will also need to run something like the following command when you want to use the cross-compiler:

. activate.sh

Common target triples are x86_64-elf and i386-elf, others include:

  • i686-elf
  • x86_64-elf
  • arm-none-eabi
  • aarch64-none-elf

Read more about Target Triplets at Target Triplets.

About

script that builds gcc and binutils nice and easy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages