diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-15 16:33:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-15 16:33:23 +0100 |
commit | f28415936e17babbf988500bf5865dbb3e262456 (patch) | |
tree | e400a95088a2a94fe6ef2e88eaa32291af165a39 | |
parent | 6baff50d93bbc05c1f216a61fc288f265afcf31a (diff) | |
download | cross-scripts-f28415936e17babbf988500bf5865dbb3e262456.tar.gz cross-scripts-f28415936e17babbf988500bf5865dbb3e262456.zip |
Update README
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | cross-x86.sh | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -12,8 +12,8 @@ These scripts install the following things in the toolchain : Supported cross-compiling architectures --------------------------------------- -- x86 i586-elf -- arm arm-elf +- `x86` : use `i586-elf` prefix +- `arm` (not maintained) : use `arm-elf` prefix The scripts for both architecture are very similar, feel free to adapt them to other architectures. @@ -22,7 +22,7 @@ Setting up the cross-compiler - Create a directory named `usr` in your home directory. - Add the following line to your `.bashrc` : `export PATH=$PATH:$HOME/usr/bin` -- Run `cross-<arch>.sh` for the architecture you target +- Run `cross-<arch>.sh` for the architecture you target. Go on the internet and read some useless stuff, this step is long. The compiler is available as `*-gcc` and `*-g++`, where * is one of the prefixes listed above (ex: i586-elf-gcc). diff --git a/cross-x86.sh b/cross-x86.sh index 711840d..16d45d6 100755 --- a/cross-x86.sh +++ b/cross-x86.sh @@ -29,7 +29,7 @@ mkdir build-gcc-$GCC echo " =>> STARTING BUILD <<=" cd build-binutils-$BINUTILS -../binutils-$BINUTILS/configure --prefix=$PREFIX --target=$TARGET --disable-nls --disable-werror || exit +../binutils-$BINUTILS/configure --prefix=$PREFIX --target=$TARGET --disable-nls --disable-werror --with-sysroot || exit make configure-host || exit make all || exit make install || exit |