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