2011-02-27 14:09:00 +02:00
|
|
|
# --- build instructions common for OpenWRT and Jlime -------------------------
|
|
|
|
|
2012-07-22 16:30:22 +03:00
|
|
|
wget http://download.savannah.gnu.org/releases/avrdude/avrdude-5.11.1.tar.gz
|
|
|
|
tar xfz avrdude-5.11.1.tar.gz
|
|
|
|
cd avrdude-5.11.1
|
2011-02-02 02:55:15 +02:00
|
|
|
|
2012-07-22 08:37:19 +03:00
|
|
|
ln -s ../patches
|
2011-02-02 02:55:15 +02:00
|
|
|
quilt push -a
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
automake
|
2011-02-27 14:09:00 +02:00
|
|
|
|
|
|
|
# --- build instructions for OpenWRT ------------------------------------------
|
|
|
|
|
|
|
|
./configure --prefix=/ --host=mipsel-openwrt-linux
|
|
|
|
make
|
|
|
|
|
|
|
|
scp avrdude.conf ben:/etc/
|
|
|
|
scp avrdude ben:/usr/bin/
|
|
|
|
|
|
|
|
# --- build instructions for Jlime --------------------------------------------
|
|
|
|
|
2012-07-22 16:30:22 +03:00
|
|
|
(From 5.10. Section may need updating for 5.11.1.)
|
|
|
|
|
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
|