Files
TAIXIN/project/BuildBIN.sh

44 lines
939 B
Bash
Raw Normal View History

#!/bin/bash
if [ -e tmp ]; then
files=$(ls tmp)
for f in $files
do
ff=$(cat tmp/$f)
mv -f $ff.bak $ff
done
rm -rf tmp
fi
cp ./Obj/*.elf project.elf
cp ./Lst/*.map project.map
cp ./Obj/*.ihex project.hex
if [ -e parameter.bincfg ]; then
cp -f ./parameter.bincfg parameter.cfg
fi
if [ -e parameter_ui.setcfg ]; then
cp -f ./parameter_ui.setcfg parameter_ui.cfg
fi
[ ! -f BinScript.exe ] && cp ../../../../tools/makecode/BinScript.exe BinScript.exe
[ ! -f crc.exe ] && cp ../../../../tools/makecode/crc.exe crc.exe
[ ! -f makecode.exe ] && cp ../../../../tools/makecode/makecode.exe makecode.exe
cp parameter.bincfg parameter.cfg
#[ ! -f loader.bin ] && cp ../../../../sdk/chip/txw81x/loader.bin loader.bin
crc.exe crc_check_corebin.ini
if [ $? -ne 0 ]; then
echo "!!!txw82xcore code is distroyed!"
exit $?
else
BinScript.exe BinScript.BinScript
makecode.exe
#crc.exe crc.ini
#BinScript.exe BinScript_Bin2Hex.BinScript
fi