Subversion Repositories Kolibri OS

Rev

Rev 7477 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. @echo off
  2. cls
  3.  
  4. call :Target_kernel
  5.  
  6. if ERRORLEVEL 0 goto Exit_OK
  7.  
  8. echo There was an error executing script.
  9. echo For any help, please send a report.
  10. pause
  11. goto :eof
  12.  
  13. :Target_kernel
  14.   rem valid languages: en ru ge et sp
  15.    set lang=en
  16.  
  17.    echo *** building kernel with language '%lang%' ...
  18.  
  19.    echo lang fix %lang% > lang.inc
  20.    fasm -m 65536 bootbios.asm bootbios.bin
  21.    fasm -m 65536 kernel.asm kernel.mnt
  22.    fasm -m 65536 kernel.asm kernel.bin -dUEFI=1
  23.    if not %errorlevel%==0 goto :Error_FasmFailed
  24.    erase lang.inc
  25. goto :eof
  26.  
  27.  
  28. :Error_FasmFailed
  29. echo error: fasm execution failed
  30. erase lang.inc >nul 2>&1
  31. echo.
  32. pause
  33. exit 1
  34.  
  35. :Exit_OK
  36. echo.
  37. echo all operations have been done
  38. pause
  39. exit 0
  40.