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=\_vmx\ |
|
19 set IMAGE_NAME=floppy |
|
20 set ROMBUILD_PATH=\os\kernelhwsrv\kernel\eka\rombuild\ |
|
21 set X86PC_PATH=\os\boardsupport\x86pc\ |
|
22 set TEMP_PATH=%IMAGE_PATH%_bfi_temp |
|
23 if exist "%ProgramFiles%\VMWare\VMWare Workstation" ( |
|
24 set VMPLAYER=%ProgramFiles%\VMWare\VMWare Workstation\vmplayer.exe |
|
25 ) |
|
26 if exist "%ProgramFiles%\VMWare\VMWare Player" ( |
|
27 set VMPLAYER=%ProgramFiles%\VMWare\VMWare Player\vmplayer.exe |
|
28 ) |
|
29 set LOGFILE=%IMAGE_PATH%serial.out |
|
30 md %IMAGE_PATH% 2>NUL |
|
31 md %IMAGE_PATH%_bfi_temp 2>NUL |
|
32 unzip -o -d %IMAGE_PATH% %ROMBUILD_PATH%symbian.vmx.zip |
|
33 call %ROMBUILD_PATH%copyx86 %1 %TEMP_PATH% |
|
34 copy /y %X86PC_PATH%pcboot\epocboot.com %TEMP_PATH%\epocboot.bin |
|
35 pushd |
|
36 echo bfi -t=%2 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH% |
|
37 call bfi -t=%2 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH% |
|
38 popd |
|
39 del /f %LOGFILE% |
|
40 start "%VMPLAYER%" "%IMAGE_PATH%symbian.smp.vmx" |