os/kernelhwsrv/kernel/eka/rombuild/bootx86.bat
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/rombuild/bootx86.bat	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,43 @@
     1.4 +@echo off
     1.5 +rem
     1.6 +rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +rem All rights reserved.
     1.8 +rem This component and the accompanying materials are made available
     1.9 +rem under the terms of the License "Eclipse Public License v1.0"
    1.10 +rem which accompanies this distribution, and is available
    1.11 +rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.12 +rem
    1.13 +
    1.14 +rem Nokia Corporation - initial contribution.
    1.15 +rem
    1.16 +rem Contributors:
    1.17 +rem
    1.18 +rem Description:
    1.19 +rem
    1.20 +setlocal
    1.21 +set IMAGE_PATH=\
    1.22 +set IMAGE_NAME=floppy
    1.23 +set X86PC_PATH=\os\boardsupport\x86pc\
    1.24 +set TEMP_PATH=%IMAGE_PATH%_bfi_temp
    1.25 +rem set BOCHS_PATH=C:\Program Files\Bochs-2.2.1
    1.26 +set BOCHS_PATH=C:\Program Files\Bochs-2.2.6
    1.27 +rem set BOCHS=bochs.exe
    1.28 +set BOCHS=bochs-smp.exe
    1.29 +md %IMAGE_PATH% 2>NUL
    1.30 +md %IMAGE_PATH%_bfi_temp 2>NUL
    1.31 +pushd \os\kernelhwsrv\kernel\eka\rombuild 2>NUL
    1.32 +call copyx86 %1 %TEMP_PATH%
    1.33 +popd
    1.34 +copy /y %X86PC_PATH%pcboot\epocboot.com %TEMP_PATH%\epocboot.bin
    1.35 +pushd
    1.36 +echo bfi -t=288 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH%
    1.37 +call bfi -t=288 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH%
    1.38 +if errorlevel 1 (
    1.39 +	popd
    1.40 +	goto :EOF
    1.41 +)
    1.42 +copy /y %IMAGE_PATH%%IMAGE_NAME% "%BOCHS_PATH%"
    1.43 +pushd "%BOCHS_PATH%"
    1.44 +call %BOCHS% -q
    1.45 +popd
    1.46 +popd