I am not maintaining the build_gcc and build_clang in this repo, I have a separate repo now where I maintain those scripts
This commit is contained in:
@@ -1,17 +1,7 @@
|
|||||||
|
|
||||||
A script for building your own gnu toolchain for ARM.
|
|
||||||
|
|
||||||
Derived directly from the same script at the mpx project at opencores.org
|
|
||||||
|
|
||||||
Keep or change the PREFIX in the script to a path where you want the
|
|
||||||
binary to end up.
|
|
||||||
|
|
||||||
sudo ./build_gcc
|
|
||||||
|
|
||||||
then put whatever you had in your prefix/bin in the path. The default
|
|
||||||
gnuarm would mean /gnuarm/bin goes in the PATH.
|
|
||||||
|
|
||||||
|
|
||||||
clang script I wrote, builds llvm+clang from sources.
|
*** I HAVE REMOVED THESE FILES ***
|
||||||
|
|
||||||
|
I have a separate build_gcc repository at github where I maintain the gcc
|
||||||
|
and clang build scripts I use for my own homebuilt toolchains.
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_30/ llvm30
|
|
||||||
cd llvm30
|
|
||||||
cd tools
|
|
||||||
svn co http://llvm.org/svn/llvm-project/cfe/branches/release_30/ clang
|
|
||||||
cd ..
|
|
||||||
./configure --enable-optimized --disable-doxygen --prefix=/llvm30
|
|
||||||
make -j 4
|
|
||||||
make install
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
# Usage
|
|
||||||
# sudo ./build_gcc
|
|
||||||
|
|
||||||
# Setup vars
|
|
||||||
export TARGET=arm-none-eabi
|
|
||||||
export PREFIX=/gnuarm
|
|
||||||
export PATH=$PATH:$PREFIX/bin
|
|
||||||
|
|
||||||
rm -rf build-*
|
|
||||||
rm -rf gcc-*
|
|
||||||
rm -rf binutils-*
|
|
||||||
|
|
||||||
# Get archives
|
|
||||||
wget http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2
|
|
||||||
wget http://ftp.gnu.org/gnu/gcc/gcc-4.7.1/gcc-4.7.1.tar.bz2
|
|
||||||
|
|
||||||
# Extract archives
|
|
||||||
bzip2 -dc binutils-2.22.tar.bz2 | tar -xf -
|
|
||||||
bzip2 -dc gcc-4.7.1.tar.bz2 | tar -xf -
|
|
||||||
|
|
||||||
# Build binutils
|
|
||||||
mkdir build-binutils
|
|
||||||
cd build-binutils
|
|
||||||
../binutils-2.22/configure --target=$TARGET --prefix=$PREFIX
|
|
||||||
make all
|
|
||||||
make install
|
|
||||||
|
|
||||||
# Build GCC
|
|
||||||
mkdir ../build-gcc
|
|
||||||
cd ../build-gcc
|
|
||||||
../gcc-4.7.1/configure --target=$TARGET --prefix=$PREFIX --without-headers --with-newlib --with-gnu-as --with-gnu-ld
|
|
||||||
make all-gcc
|
|
||||||
make install-gcc
|
|
||||||
|
|
||||||
# Build libgcc.a
|
|
||||||
make all-target-libgcc CFLAGS_FOR_TARGET="-g -O2"
|
|
||||||
make install-target-libgcc
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user