diff options
-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 |