os/kernelhwsrv/kernel/eka/rombuild/bootx86d.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
@echo off
sl@0
     2
rem
sl@0
     3
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     4
rem All rights reserved.
sl@0
     5
rem This component and the accompanying materials are made available
sl@0
     6
rem under the terms of the License "Eclipse Public License v1.0"
sl@0
     7
rem which accompanies this distribution, and is available
sl@0
     8
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     9
rem
sl@0
    10
sl@0
    11
rem Nokia Corporation - initial contribution.
sl@0
    12
rem
sl@0
    13
rem Contributors:
sl@0
    14
rem
sl@0
    15
rem Description:
sl@0
    16
rem
sl@0
    17
setlocal
sl@0
    18
set IMAGE_PATH=\
sl@0
    19
set IMAGE_NAME=floppy
sl@0
    20
set X86PC_PATH=\os\boardsupport\x86pc\
sl@0
    21
set TEMP_PATH=%IMAGE_PATH%_bfi_temp
sl@0
    22
rem set BOCHS_PATH=C:\Program Files\Bochs-2.2.1
sl@0
    23
set BOCHS_PATH=C:\Program Files\Bochs-2.2.6
sl@0
    24
set BOCHS=bochsdbg.exe
sl@0
    25
rem set BOCHS=bochs-smp.exe
sl@0
    26
md %IMAGE_PATH% 2>NUL
sl@0
    27
md %IMAGE_PATH%_bfi_temp 2>NUL
sl@0
    28
pushd \os\kernelhwsrv\kernel\eka\rombuild 2>NUL
sl@0
    29
call copyx86 %1 %TEMP_PATH%
sl@0
    30
popd
sl@0
    31
copy /y %X86PC_PATH%pcboot\epocboot.com %TEMP_PATH%\epocboot.bin
sl@0
    32
pushd
sl@0
    33
echo bfi -t=288 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH%
sl@0
    34
call bfi -t=288 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH%
sl@0
    35
if errorlevel 1 (
sl@0
    36
	popd
sl@0
    37
	goto :EOF
sl@0
    38
)
sl@0
    39
copy /y %IMAGE_PATH%%IMAGE_NAME% "%BOCHS_PATH%"
sl@0
    40
pushd "%BOCHS_PATH%"
sl@0
    41
call %BOCHS% -q
sl@0
    42
popd
sl@0
    43
popd