blob: 326af640b1bdb800dc22610ec68db498bde5cf35 [file] [log] [blame]
#!/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"_tloader_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"_tloader_config] for ["$chip" "$board"] board ...";
chmod -R 777 $SRC_PATH/
$SRC_PATH/../tools/SignTool/SignImage -z -i z-load.bin -o $SRC_PATH/prj/$chip/$board/bin/tloader.bin -k $SRC_PATH/../tools/SignTool/key/RSA_1024/private.k
echo "--Finished build [tloader.bin ] ...";
echo "................................................OK....";
fi