Toolbox-3/make.bat

59 lines
1.8 KiB
Batchfile

echo on
date /T
time /T
REM # Definitionen
REM set D="-D __DEBUG -D __LANG_EN"
REM set D="-D __LANG_EN"
set D="-D __LANG_DE"
REM # Pfade
set bin="..\Bin"
REM set bin="\home\ftp\hive"
set sdtbox="%bin%\sdcard\tbox-3"
set libpath="..\TriOS\lib"
set BSTC=bstc.exe
REM ----------------------------------------------------------------
REM Alte Versionen löschen
rmdir %sdtbox% /S /Q
mkdir %sdtbox%
mkdir %sdtbox%\boing
mkdir %sdtbox%\gui-demo
mkdir %sdtbox%\plexbus
mkdir %sdtbox%\triborg
REM del %sdsys%\xxxxxx
REM mkdir %sdsys%
REM ----------------------------------------------------------------
REM Bin-Dateien erzeugen, kopieren
%BSTC% -L %libpath% %D% -b -O a .\source\boing\boing-reg.spin
move boing-reg.binary "%sdtbox%\boing\boing.bin"
%BSTC% -L %libpath% %D% -b -O a .\source\boing\boing-bel.spin
move boing-bel.binary "%sdtbox%\boing\boing.bel"
%BSTC% -L %libpath% %D% -D __ADM_FAT -D __ADM_SID -b -O a ..\TriOS\flash\administra\admflash.spin
move admflash.binary "%sdtbox%\boing\boing.adm"
copy .\source\sid\boing.sid "%sdtbox%\boing\"
copy .\source\sid\*.dmp "%sdtbox%\boing\"
%BSTC% -L %libpath% %D% -b -O a .\source\triborg\triborg-reg.spin
move triborg-reg.binary "%sdtbox%\triborg\triborg.bin"
%BSTC% -L %libpath% %D% -b -O a .\source\triborg\triborg-bel.spin
move triborg-bel.binary "%sdtbox%\triborg\triborg.bel"
%BSTC% -L %libpath% %D% -D __ADM_FAT -D __ADM_SID -b -O a ..\TriOS\flash\administra\admflash.spin
move admflash.binary "%sdtbox%\triborg\triborg.adm"
copy .\source\sid\triborg.sid "%sdtbox%\triborg\"
copy .\source\sid\*.dmp "%sdtbox%\triborg\"
for %%x in (.\source\plexbus\*.spin) do %BSTC% -L %libpath% %D% -b -O a %%x
rename *.binary *.bin
move *.bin "%sdtbox%\plexbus\"
%BSTC% -L %libpath% %D% -e -O a .\source\gui-demo\guidemo.spin
move guidemo.eeprom "%sdtbox%\gui-demo\guidemo.bel"
echo off