2004-03-27 02:42:33 +01:00
|
|
|
@echo off
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:- $Id$
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
:----------------------------------------------------------
|
2004-04-11 14:21:25 +02:00
|
|
|
:- batch file to build _many_ KERNELS, hope build works.
|
2001-11-04 21:10:15 +01:00
|
|
|
:- takes 3 minutes on my(TE) Win2K/P700. your milage may vary :-)
|
|
|
|
:----------------------------------------------------------
|
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
if "%1" == "$SUMMARY" goto summary
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 03:36:50 +01:00
|
|
|
set onerror=if not "%XERROR%" == "" goto daswarwohlnix
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:***** MSCL kernels
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
call config.bat
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
if "%MS_BASE%" == "" goto no_ms
|
2001-11-04 21:10:15 +01:00
|
|
|
call build -r msc 386 fat16
|
|
|
|
%ONERROR%
|
|
|
|
call build -r msc 186 fat16
|
|
|
|
%ONERROR%
|
|
|
|
call build -r msc 86 fat16
|
|
|
|
%ONERROR%
|
|
|
|
call build -r msc 386 fat32
|
|
|
|
%ONERROR%
|
|
|
|
call build -r msc 186 fat32
|
|
|
|
%ONERROR%
|
|
|
|
call build -r msc 86 fat32
|
|
|
|
%ONERROR%
|
2001-11-14 00:36:45 +01:00
|
|
|
:no_ms
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:***** TC 2.01 kernels
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
if "%TC2_BASE%" == "" goto no_tc
|
2001-11-04 21:10:15 +01:00
|
|
|
call build -r tc 186 fat16
|
|
|
|
%ONERROR%
|
|
|
|
call build -r tc 86 fat16
|
|
|
|
%ONERROR%
|
|
|
|
call build -r tc 186 fat32
|
|
|
|
%ONERROR%
|
|
|
|
call build -r tc 86 fat32
|
|
|
|
%ONERROR%
|
2001-11-14 00:36:45 +01:00
|
|
|
:no_tc
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:***** (Open) Watcom kernels
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
if "%WATCOM%" == "" goto no_wc
|
2001-11-04 21:10:15 +01:00
|
|
|
call build -r wc 386 fat32
|
2004-03-27 02:42:33 +01:00
|
|
|
%ONERROR%
|
2001-11-04 21:10:15 +01:00
|
|
|
call build -r wc 386 fat16
|
2004-03-27 02:42:33 +01:00
|
|
|
%ONERROR%
|
2001-11-04 21:10:15 +01:00
|
|
|
call build -r wc 86 fat32
|
2004-03-27 02:42:33 +01:00
|
|
|
%ONERROR%
|
2001-11-04 21:10:15 +01:00
|
|
|
call build -r wc 86 fat16
|
2004-03-27 02:42:33 +01:00
|
|
|
%ONERROR%
|
2001-11-14 00:36:45 +01:00
|
|
|
:no_wc
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:***** now rebuild the default kernel
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
call build -r
|
|
|
|
|
|
|
|
:**************************************************************
|
|
|
|
:* now we build a summary of all kernels HMA size + total size
|
|
|
|
:* Yes, I know - "mit Linux waer das nicht passiert" :-)
|
|
|
|
:* at least, it's possible with standard DOS tools
|
|
|
|
:**************************************************************
|
|
|
|
|
|
|
|
set Sumfile=bin\ksummary.txt
|
|
|
|
set TempSumfile=bin\tsummary.txt
|
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:****echo >%TempSumfile% Summary of all kernels build
|
|
|
|
:****echo.|date >>%TempSumfile%
|
|
|
|
:****echo.|time >>%TempSumfile%
|
2001-11-04 21:10:15 +01:00
|
|
|
:****for %%i in (bin\k*.map) do call %0 $SUMMARY %%i
|
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
if exist %Sumfile% del %Sumfile%
|
|
|
|
if exist %TempSumfile% del %TempSumfile%
|
|
|
|
>ktemp.bat
|
2001-11-04 21:10:15 +01:00
|
|
|
for %%i in (bin\k*.map) do echo call %0 $SUMMARY %%i >>ktemp.bat
|
|
|
|
sort <ktemp.bat >ktemps.bat
|
2004-03-27 13:13:10 +01:00
|
|
|
call ktemps.bat
|
2001-11-04 21:10:15 +01:00
|
|
|
del ktemp.bat
|
|
|
|
del ktemps.bat
|
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
echo >>%Sumfile% Summary of all kernels build
|
|
|
|
echo.|date >>%Sumfile%
|
|
|
|
echo.|time >>%Sumfile%
|
2001-11-04 21:10:15 +01:00
|
|
|
find <%TempSumfile% "H" >>%Sumfile%
|
|
|
|
del %TempSumfile%
|
|
|
|
|
|
|
|
set TempSumfile=
|
|
|
|
set Sumfile=
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:summary
|
2004-03-27 02:42:33 +01:00
|
|
|
echo H************************************************* %2 >>%TempSumfile%
|
|
|
|
find<%2 " HMA_TEXT"|find/V "HMA_TEXT_START"|find/V "HMA_TEXT_END">>%TempSumfile%
|
|
|
|
find<%2 " STACK">>%TempSumfile%
|
2001-11-04 21:10:15 +01:00
|
|
|
goto end
|
|
|
|
|
|
|
|
:************* done with summary *********************************
|
|
|
|
|
|
|
|
:daswarwohlnix
|
2004-03-27 02:42:33 +01:00
|
|
|
echo Sorry, something didn't work as expected :-(
|
|
|
|
set ONERROR=
|
2001-11-04 21:10:15 +01:00
|
|
|
|
2004-03-27 02:42:33 +01:00
|
|
|
:end
|