[atmel 3.4.3] Building automake and autoconf because it is too difficult to set up a cross platform way to have them correctly set up
This commit is contained in:
parent
8b6aefabb9
commit
b6cb97c5a7
11 changed files with 94 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,6 +1,7 @@
|
|||
*.bz2
|
||||
*.tar.gz
|
||||
objdir
|
||||
toolsdir
|
||||
*-build
|
||||
avr-libc-1.8.0/
|
||||
avr8-headers-6.2.0.142/
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Note: setup has been done on partially set up development machines. If, trying t
|
|||
### Debian requirements
|
||||
|
||||
```bash
|
||||
sudo apt-get install build-essential gperf bison subversion texinfo zip automake autoconf2.64
|
||||
sudo apt-get install build-essential gperf bison subversion texinfo zip automake
|
||||
```
|
||||
|
||||
### Mac OSX requirements
|
||||
|
|
@ -15,7 +15,6 @@ sudo port install wget +universal
|
|||
sudo port install automake +universal
|
||||
sudo port install autoconf +universal
|
||||
sudo port install gpatch +universal
|
||||
sudo port install autoconf264 +universal
|
||||
```
|
||||
|
||||
### Windows requirements
|
||||
|
|
@ -28,7 +27,6 @@ sudo port install autoconf264 +universal
|
|||
- automake
|
||||
- autoconf
|
||||
- texinfo (must be at version 4.13-4 since 5+ won't work)
|
||||
- gcc-tool-epoch2-autoconf
|
||||
|
||||
### Upstream credits
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
AUTOCONF="autoconf2.64" AUTORECONF="autoreconf2.64" CC="gcc -m32" CXX="g++ -m32" ./build.all.bash
|
||||
CC="gcc -m32" CXX="g++ -m32" ./build.all.bash
|
||||
|
||||
rm -f avr-toolchain-*.zip
|
||||
cd objdir
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
AUTOCONF="autoconf2.64" AUTORECONF="autoreconf2.64" ./build.all.bash
|
||||
./build.all.bash
|
||||
|
||||
rm -f avr-toolchain-*.zip
|
||||
cd objdir
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
export PATH=/opt/local/libexec/gnubin/:$PATH
|
||||
|
||||
AUTOCONF="autoconf264" AUTORECONF="autoreconf264" CC="gcc -arch i386 -mmacosx-version-min=10.5" CXX="g++ -arch i386 -mmacosx-version-min=10.5" ./build.all.bash
|
||||
CC="gcc -arch i386 -mmacosx-version-min=10.5" CXX="g++ -arch i386 -mmacosx-version-min=10.5" ./build.all.bash
|
||||
|
||||
rm -f avr-toolchain-*.zip
|
||||
cd objdir
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
export PATH=/cygdrive/c/cygwin/opt/gcc-tools/bin/:/cygdrive/c/cygwin/bin:$PATH
|
||||
AUTOCONF="autoconf-2.64" AUTORECONF="autoreconf-2.64" CFLAGS="-DWIN32" CXXFLAGS="-DWIN32" LDFLAGS="-DWIN32" CC="gcc -m32" CXX="g++ -m32" ./build.all.bash
|
||||
export PATH=/cygdrive/c/cygwin/bin:$PATH
|
||||
CFLAGS="-DWIN32" CXXFLAGS="-DWIN32" LDFLAGS="-DWIN32" CC="gcc -m32" CXX="g++ -m32" ./build.all.bash
|
||||
|
||||
rm -f avr-toolchain-*.zip
|
||||
cd objdir
|
||||
|
|
|
|||
|
|
@ -1,5 +1,17 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
if [[ ! -d toolsdir ]] ;
|
||||
then
|
||||
echo "You must first build the tools: run build_tools.bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd toolsdir/bin
|
||||
TOOLS_BIN_PATH=`pwd`
|
||||
cd -
|
||||
|
||||
export PATH="$TOOLS_BIN_PATH:$PATH"
|
||||
|
||||
if [[ ! -f binutils-2.23.2.tar.bz2 ]] ;
|
||||
then
|
||||
wget http://mirror.switch.ch/ftp/mirror/gnu/binutils/binutils-2.23.2.tar.bz2
|
||||
|
|
@ -9,9 +21,9 @@ tar xfjv binutils-2.23.2.tar.bz2
|
|||
|
||||
cd binutils-2.23.2
|
||||
for p in ../binutils-patches/*.patch; do echo Applying $p; patch -p0 < $p; done
|
||||
$AUTOCONF
|
||||
autoconf
|
||||
cd ld
|
||||
$AUTORECONF
|
||||
autoreconf
|
||||
cd ../../
|
||||
|
||||
mkdir -p objdir
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
rm -rf objdir
|
||||
rm -rf objdir toolsdir
|
||||
|
||||
./clean.bash
|
||||
./tools.bash
|
||||
./clean.bash
|
||||
./binutils.build.bash
|
||||
./clean.bash
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
rm -rf autoconf-2.64 automake-1.11.1
|
||||
|
||||
rm -rf gcc-4.8.1 gmp-5.0.2 mpc-0.9 mpfr-3.0.0 binutils-2.23.2 avr-libc-1.8.0 avr8-headers-6.2.0.142 avrdude-5.11.1 gpio-avrdude-1138 *-build
|
||||
|
||||
rm -rf objdir/{info,man,share}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,17 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
if [[ ! -d toolsdir ]] ;
|
||||
then
|
||||
echo "You must first build the tools: run build_tools.bash"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd toolsdir/bin
|
||||
TOOLS_BIN_PATH=`pwd`
|
||||
cd -
|
||||
|
||||
export PATH="$TOOLS_BIN_PATH:$PATH"
|
||||
|
||||
if [[ ! -f gmp-5.0.2.tar.bz2 ]] ;
|
||||
then
|
||||
wget http://mirror.switch.ch/ftp/mirror/gnu/gmp/gmp-5.0.2.tar.bz2
|
||||
|
|
@ -35,7 +47,7 @@ sh genopt.sh avr-mcus.def > avr-tables.opt
|
|||
cat avr-mcus.def | awk -f genmultilib.awk FORMAT="Makefile" > t-multilib
|
||||
popd
|
||||
pushd gcc
|
||||
$AUTOCONF
|
||||
autoconf
|
||||
popd
|
||||
popd
|
||||
|
||||
|
|
|
|||
55
tools.bash
Executable file
55
tools.bash
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
mkdir -p toolsdir/bin
|
||||
cd toolsdir
|
||||
TOOLS_PATH=`pwd`
|
||||
cd bin
|
||||
TOOLS_BIN_PATH=`pwd`
|
||||
cd ../../
|
||||
|
||||
export PATH="$TOOLS_BIN_PATH:$PATH"
|
||||
|
||||
if [ -z "$MAKE_JOBS" ]; then
|
||||
MAKE_JOBS="2"
|
||||
fi
|
||||
|
||||
if [[ ! -f autoconf-2.64.tar.bz2 ]] ;
|
||||
then
|
||||
wget http://mirror.switch.ch/ftp/mirror/gnu/autoconf/autoconf-2.64.tar.bz2
|
||||
fi
|
||||
|
||||
tar xfjv autoconf-2.64.tar.bz2
|
||||
|
||||
cd autoconf-2.64
|
||||
|
||||
CONFARGS="--prefix=$TOOLS_PATH"
|
||||
|
||||
./configure $CONFARGS
|
||||
|
||||
nice -n 10 make -j $MAKE_JOBS
|
||||
|
||||
make install
|
||||
|
||||
cd -
|
||||
|
||||
if [[ ! -f automake-1.11.1.tar.bz2 ]] ;
|
||||
then
|
||||
wget http://mirror.switch.ch/ftp/mirror/gnu/automake/automake-1.11.1.tar.bz2
|
||||
fi
|
||||
|
||||
tar xfjv automake-1.11.1.tar.bz2
|
||||
|
||||
cd automake-1.11.1
|
||||
|
||||
./bootstrap
|
||||
|
||||
CONFARGS="--prefix=$TOOLS_PATH"
|
||||
|
||||
./configure $CONFARGS
|
||||
|
||||
nice -n 10 make -j $MAKE_JOBS
|
||||
|
||||
make install
|
||||
|
||||
cd -
|
||||
|
||||
Loading…
Reference in a new issue