From f28415936e17babbf988500bf5865dbb3e262456 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 15 Feb 2015 16:33:23 +0100 Subject: Update README --- README.md | 6 +++--- cross-x86.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fcece2a..beb766b 100644 --- a/README.md +++ b/README.md @@ -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-.sh` for the architecture you target +- Run `cross-.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 -- cgit v1.2.3