Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
43
project/BuildBIN.sh
Normal file
43
project/BuildBIN.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user