Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

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