aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-15 16:33:23 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-15 16:33:23 +0100
commitf28415936e17babbf988500bf5865dbb3e262456 (patch)
treee400a95088a2a94fe6ef2e88eaa32291af165a39
parent6baff50d93bbc05c1f216a61fc288f265afcf31a (diff)
downloadcross-scripts-f28415936e17babbf988500bf5865dbb3e262456.tar.gz
cross-scripts-f28415936e17babbf988500bf5865dbb3e262456.zip
Update README
-rw-r--r--README.md6
-rwxr-xr-xcross-x86.sh2
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-<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