2011-02-27 14:09:00 +02:00
|
|
|
# --- build instructions common for OpenWRT and Jlime -------------------------
|
|
|
|
|
2011-02-02 02:55:15 +02:00
|
|
|
wget http://download.savannah.gnu.org/releases/avrdude/avrdude-5.10.tar.gz
|
|
|
|
tar xfz avrdude-5.10.tar.gz
|
|
|
|
cd avrdude-5.10
|
|
|
|
|
|
|
|
quilt push -a
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
automake
|
2011-02-27 14:09:00 +02:00
|
|
|
|
|
|
|
# --- build instructions for OpenWRT ------------------------------------------
|
|
|
|
|
|
|
|
./configure --prefix=/ --host=mipsel-openwrt-linux
|
|
|
|
make
|
|
|
|
# the joy of autocrap (we need this to generate avrdude.conf)
|
|
|
|
./configure --prefix=/ --host=mipsel-openwrt-linux
|
|
|
|
|
|
|
|
scp avrdude.conf ben:/etc/
|
|
|
|
scp avrdude ben:/usr/bin/
|
|
|
|
|
|
|
|
# --- build instructions for Jlime --------------------------------------------
|
|
|
|
|
2011-02-02 02:55:15 +02:00
|
|
|
./configure --prefix=/ --host=mipsel-linux
|
|
|
|
make </dev/null
|
2011-02-27 14:09:00 +02:00
|
|
|
# the joy of autocrap (we need this to generate avrdude.conf)
|
2011-02-02 02:55:15 +02:00
|
|
|
./configure --prefix=/ --host=mipsel-linux
|
|
|
|
|
|
|
|
scp avrdude.conf jlime:/etc/
|
|
|
|
scp avrdude jlime:/usr/bin/
|
2011-05-10 23:47:38 +03:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
To make a statically linked version, follow the build instructions for
|
|
|
|
OpenWRT, then
|
|
|
|
|
|
|
|
rm avrdude
|
|
|
|
make CC="mipsel-openwrt-linux-gcc -static -s" avrdude
|
|
|
|
mv avrdude avrdude-static
|