Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- export TARGET=arm-linux-gnueabihf
- export PREFIX=/opt/crosstool/gcc-4.6.3-eglibc-2.13/$TARGET
- cd /opt/crosstool/src/build-binutils
- find . -delete
- ../binutils-2.22/configure --target=$TARGET \
- --prefix=$PREFIX --with-sysroot=$TARGET \
- --disable-nls --with-arch=armv6
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to configure binutils ==="
- exit 1
- fi
- make all
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to make binutils ==="
- exit 1
- fi
- make install
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to install binutils ==="
- exit 1
- fi
- export PATH=$PATH:$PREFIX/bin
- cd /opt/crosstool/src/build-gcc
- find . -delete
- ../gcc-4.6.3/configure --target=$TARGET --prefix=$PREFIX \
- --with-arch=armv6 --with-fpu=vfp --with-float=hard \
- --disable-sjlj-exceptions --enable-checking=release \
- --enable-linker-build-id --enable-gnu-unique-object \
- --disable-nls --enable-languages=c \
- --without-headers --disable-shared --disable-threads \
- --disable-multilib --disable-decimal-float \
- --disable-libmudflap --disable-libssp \
- --disable-libgomp --without-ppl --without-cloog \
- --with-gmp=/usr/local --with-mpfr=/usr/local \
- --with-mpc=/usr/local
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to configure gcc ==="
- exit 1
- fi
- make all-gcc
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to make gcc ==="
- exit 1
- fi
- make install-gcc
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to install gcc ==="
- exit 1
- fi
- make all-target-libgcc
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to make libgcc ==="
- exit 1
- fi
- make install-target-libgcc
- if [ "$?" -ne "0" ]; then
- echo "=== build script: failed to install libgcc ==="
- exit 1
- fi
- echo "=== build script: OK ==="
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement