| #!/bin/sh |
| |
| cd ../../.. |
| SRC_PATH=`pwd` |
| KEYS_PATH=$SRC_PATH/../tools/SignImage |
| |
| cd $SRC_PATH/common/src/loader |
| |
| make mrproper |
| rm -f ./z-load* |
| |
| is_ok=0 |
| |
| if |
| make "$chip"_zloader_dlon_config; |
| then |
| if make platform; then |
| if make together; then |
| is_ok=1 |
| fi |
| fi |
| fi |
| |
| if [ $is_ok -eq 1 ];then |
| echo ""; |
| echo "Configuring ["$chip"_"$board"_zloader_dlon_config] for ["$chip" "$board"] board ..."; |
| |
| cp z-load.bin $SRC_PATH/common/scripts/tools; |
| cd $SRC_PATH/common/scripts/tools; |
| ./expand z-load.bin; |
| |
| chmod -R 777 $SRC_PATH/ |
| $SRC_PATH/../tools/SignTool/SignImage -z -i z-load.bin -o $SRC_PATH/prj/$chip/$board/bin/dl_on/zloader.bin -k $SRC_PATH/../tools/SignTool/key/RSA_1024/private.k |
| |
| echo "--Finished build [zloader.bin] ..."; |
| echo "................................................OK...."; |
| echo ""; |
| fi |