Auto Compile a Cross-Compiler
Posted: Fri Feb 05, 2010 8:51 am
Hello, first up i got sick of sticking around for the break in compiling an cross-compiler just to start the next compile process.
so i made a very simple little bash script that will automatically setup and compile a cross-compiler for you.
this is designed to be used with: binutils | gcc | gmp | mpfr
all that is needed is those files in the same directory as the bash script and run it and voila it sets everything up for ya just come back in a few hours and enjoy.
currently the script is setup for a i586 cross-compiler and the above versions of the core utils but it is very easy to alter the little script to fit your versioning needs.
just wanted to help everyone who hasn't the time to await the ability to start the next compilation and then the next.
Download Here The CCC or 4C script version 1.3 by Nekroze.
place in a directory ready for compiling, cd to that directory and run ./CrossCompiler-Compiler.sh
the new version works with cygwin perfectly aswell as Linux host OS (theoretically (untested)) requires a few more setup steps before running the script all detailed in the comment header of the script and here as well:
enjoy all,
Nekroze
so i made a very simple little bash script that will automatically setup and compile a cross-compiler for you.
this is designed to be used with: binutils | gcc | gmp | mpfr
all that is needed is those files in the same directory as the bash script and run it and voila it sets everything up for ya just come back in a few hours and enjoy.
currently the script is setup for a i586 cross-compiler and the above versions of the core utils but it is very easy to alter the little script to fit your versioning needs.
just wanted to help everyone who hasn't the time to await the ability to start the next compilation and then the next.
Download Here The CCC or 4C script version 1.3 by Nekroze.
place in a directory ready for compiling, cd to that directory and run ./CrossCompiler-Compiler.sh
the new version works with cygwin perfectly aswell as Linux host OS (theoretically (untested)) requires a few more setup steps before running the script all detailed in the comment header of the script and here as well:
Code: Select all
#CrossCompiler-Compile.sh 1.2 by Nekroze
#This script makes compiling a cross-compiler easy as hell
#this script is designed to be in the same directory as the sources needed
#Variables need to be set for the files and options that may differ between
#compilations. the following vars need be exported before this script is run.
#PREFIX - the prefix to the location to compile to [default = /usr/cross]
#TARGET - the target platform of the cross-compiler [default = i586-elf]
#VGMP - the version of GMP as in file title of eg. "gmp-5.0.0.tar.bz2"
# then this variable would be VGMP=5.0.0
#CGMP - the tar compression of GMP as in file title eg "gmp-5.0.0.tar.bz2"
# then this would be CGMP=bz2 or CGMP=gz or CGMP=tar for plain .tar
#VMPFR - the version of MPFR as in file title of eg. "mpfr-2.4.2.tar.bz2"
# then this variable would be VMPFR=2.4.2
#CMPFR - the tar compression of MPFR in file title eg "mpfr-2.4.2.tar.bz2"
# then this would be CMPFR=bz2 or CMPFR=gz or CMPFR=tar for plain .tar
#VBIN - the version of binutils in file title of eg. "binutils-2.20.tar.bz2"
# then this variable would be VBIN=2.20
#CBIN - the tar compression of binutils in file title eg "binutils-2.20.tar.bz2"
# then this would be CBIN=bz2 or CBIN=gz or CBIN=tar for plain .tar
#VGCC - the version of GCC in file title of eg. "gcc-4.4.3.tar.bz2"
# then this variable would be VGCC=4.4.3
#CGCC - the tar compression of GCC in file title eg "gcc-4.4.3.tar.bz2"
# then this would be CGCC=bz2 or CGCC=gz or CGCC=tar for plain .tar
Nekroze