2012-01-26 21:45:17 +00:00
|
|
|
default: build setup
|
2012-01-26 19:07:21 +00:00
|
|
|
|
2012-01-26 21:45:17 +00:00
|
|
|
all: build setup run
|
2012-01-26 19:07:21 +00:00
|
|
|
|
2012-01-26 21:45:17 +00:00
|
|
|
redo: rebuild setup run
|
|
|
|
|
|
|
|
build: cleanbuild rebuild
|
|
|
|
|
|
|
|
cleanbuild:
|
|
|
|
cd ../../firmware && make clean
|
|
|
|
|
|
|
|
rebuild:
|
|
|
|
cd ../../firmware && make && make l0dables
|
2012-01-26 19:07:21 +00:00
|
|
|
|
|
|
|
setup:
|
2011-12-25 17:52:19 +00:00
|
|
|
cp ../../firmware/firmware.bin .
|
2012-01-26 22:39:27 +00:00
|
|
|
mkdir -p files
|
2011-12-29 03:10:56 +00:00
|
|
|
cp ../../firmware/l0dable/*c0d files
|
2011-12-25 17:52:19 +00:00
|
|
|
cp ../../firmware/l0dable/*nik files
|
|
|
|
cp ../../firmware/l0dable/*int files
|
|
|
|
cp ../../firmware/l0dable/files/* files
|
2011-12-25 18:31:18 +00:00
|
|
|
cp ../font/binary/*f0n files
|
|
|
|
cp ../image/lcd/*lcd files
|
|
|
|
cp ../image/lcd/i42.lcd files/nick.lcd
|
2011-12-25 17:52:19 +00:00
|
|
|
cd ../crypto && make clean && make generate-keys
|
|
|
|
cp ../crypto/generate-keys .
|
|
|
|
@echo
|
2012-01-26 21:45:17 +00:00
|
|
|
@echo "Now run ./smartflash (as root)"
|
2011-12-25 17:52:19 +00:00
|
|
|
|
2012-04-21 12:59:08 +00:00
|
|
|
bridge:
|
|
|
|
cd ../../firmware && make APP=bridge TABLE=NO USBSERIAL=YES clean all
|
|
|
|
cp ../../firmware/bridge.bin .
|
|
|
|
sudo ./smartflash bridge.bin
|
|
|
|
|
2012-01-26 19:07:21 +00:00
|
|
|
run:
|
2012-01-26 21:45:17 +00:00
|
|
|
sudo ./smartflash
|
2012-01-26 19:07:21 +00:00
|
|
|
|
2011-12-25 17:52:19 +00:00
|
|
|
clean:
|
2012-01-02 19:24:03 +00:00
|
|
|
rm -f firmware.bin generate-keys
|
2011-12-29 03:10:56 +00:00
|
|
|
rm -rf files
|