2018-10-18 22:07:48 +02:00
|
|
|
@echo off
|
|
|
|
cls
|
|
|
|
|
2019-03-13 13:03:42 +01:00
|
|
|
call :Target_kernel
|
2018-10-18 22:07:48 +02:00
|
|
|
|
|
|
|
if ERRORLEVEL 0 goto Exit_OK
|
|
|
|
|
|
|
|
echo There was an error executing script.
|
|
|
|
echo For any help, please send a report.
|
|
|
|
pause
|
|
|
|
goto :eof
|
|
|
|
|
|
|
|
:Target_kernel
|
2024-07-10 18:42:26 +02:00
|
|
|
rem valid languages: en_US ru_RU de_DE et_EE es_ES
|
2024-07-11 10:00:28 +02:00
|
|
|
set lang=en_US
|
2019-03-13 13:03:42 +01:00
|
|
|
|
2018-10-18 22:07:48 +02:00
|
|
|
echo *** building kernel with language '%lang%' ...
|
|
|
|
|
|
|
|
echo lang fix %lang% > lang.inc
|
|
|
|
fasm -m 65536 bootbios.asm bootbios.bin
|
2019-03-13 13:03:42 +01:00
|
|
|
fasm -m 65536 kernel.asm kernel.mnt
|
|
|
|
fasm -m 65536 kernel.asm kernel.bin -dUEFI=1
|
2018-10-18 22:07:48 +02:00
|
|
|
if not %errorlevel%==0 goto :Error_FasmFailed
|
|
|
|
goto :eof
|
|
|
|
|
|
|
|
|
|
|
|
:Error_FasmFailed
|
|
|
|
echo error: fasm execution failed
|
|
|
|
erase lang.inc >nul 2>&1
|
|
|
|
echo.
|
|
|
|
pause
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
:Exit_OK
|
|
|
|
echo.
|
|
|
|
echo all operations have been done
|
|
|
|
pause
|
|
|
|
exit 0
|