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