From db1cfe6320677d923e9f47391581a8dd30e837fa Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Fri, 5 Aug 2011 03:48:32 +0200 Subject: [PATCH] Script to build/gather all stuff for release --- firmware/release-all | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100755 firmware/release-all diff --git a/firmware/release-all b/firmware/release-all new file mode 100755 index 0000000..dd77057 --- /dev/null +++ b/firmware/release-all @@ -0,0 +1,61 @@ +#!/bin/sh -e + +TARG=../release + +if [ ! -d ../firmware ] ; then + echo Running from wrong directory. + exit 1 +fi + +cd ../firmware + +if [ -d $TARG ] ; then + echo Release dir already exists + echo please remove/move away + exit 1 +fi + +mkdir $TARG +mkdir $TARG/files + +echo "###" +echo "### Building initial" +echo "###" +git checkout filesystem/ffconf.h +make clean +make APP=initial +cp firmware.bin $TARG/initial.bin + +echo "###" +echo "### Building final" +echo "###" +cp filesystem/ffconf.h-final ffconf.h +make clean +./l0dable/mktable.pl +make APP=final +cp firmware.elf $TARG/final.elf +cp firmware.bin $TARG/final.bin + +echo "###" +echo "### Building crypto" +echo "###" +(cd ../tools/crypto && make) + +echo "###" +echo "### Gathering files" +echo "###" +cp ../tools/font/binary/*.f0n $TARG/files/ +cp ../tools/image/lcd/*.lcd $TARG/files/ + +echo "###" +echo "### Gathering/crypting loadables" +echo "###" +# XXX: add crypto stuff +(cd l0dable && make) +mv l0dable/*.c0d $TARG/files/ +mv l0dable/*.int $TARG/files/ +mv l0dable/*.nik $TARG/files/ + +echo "###" +echo "### Done. Yay!" +echo "###"