Subversion Repositories pentevo

Rev

Rev 974 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed | ?url?

  1. @ECHO OFF
  2. rem set PATH=c:\mingw\avrgcc\bin;%PATH%
  3. rem set PATH=c:\mingw\avrgcc\bin;c:\mingw\bin;c:\mingw\msys\bin
  4. rem set PATH=c:\mingw\avrgcc\bin;C:\Windows\system32;C:\Windows;C:\Windows\SysWOW64
  5.  
  6. set FPGA_PATH=..\..\..\fpga\base_trdemu\trunk\quartus
  7. set FPGA_FILE=top.rbf
  8.  
  9. set AVR_PATH=..\..\..\avr\baseconf\trunk\build
  10. set AVR_FILE=top.mlz
  11.  
  12. set RESULT=zxevo_fw.bin
  13.  
  14. set MHMT_BIN="..\..\..\tools\mhmt\mhmt.exe"
  15.  
  16. IF NOT EXIST %FPGA_PATH%/%FPGA_FILE% (
  17.         ECHO top.rbf not found
  18.                 ECHO First assemble the fpga sources
  19.                 ECHO Then run winbuild.bat
  20.                 pause 0
  21.         EXIT /b
  22. )
  23.  
  24. %MHMT_BIN% -maxwin2048 %FPGA_PATH%/%FPGA_FILE% %AVR_PATH%/%AVR_FILE%
  25.  
  26. make -C %AVR_PATH%
  27. copy /Y %AVR_PATH%\zxevo.bin %RESULT%
  28. rem copy zxevo_fw.bin e:\zxevo_fw.bin
  29.