mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-05 06:56:16 +02:00
b0e83a9202
This way, the path names in the patch files stay the same across avrdude versions.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# --- build instructions common for OpenWRT and Jlime -------------------------
|
|
|
|
wget http://download.savannah.gnu.org/releases/avrdude/avrdude-5.10.tar.gz
|
|
tar xfz avrdude-5.10.tar.gz
|
|
cd avrdude-5.10
|
|
|
|
ln -s ../patches
|
|
quilt push -a
|
|
|
|
aclocal
|
|
automake
|
|
|
|
# --- 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 --------------------------------------------
|
|
|
|
./configure --prefix=/ --host=mipsel-linux
|
|
make </dev/null
|
|
# the joy of autocrap (we need this to generate avrdude.conf)
|
|
./configure --prefix=/ --host=mipsel-linux
|
|
|
|
scp avrdude.conf jlime:/etc/
|
|
scp avrdude jlime:/usr/bin/
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
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
|