kernel/eka/rombuild/bootx86.bat
author Tom Cosgrove <tom.cosgrove@nokia.com>
Fri, 28 May 2010 16:29:07 +0100
changeset 30 8aab599e3476
parent 0 a41df078684a
permissions -rw-r--r--
Fix for bug 2283 (RVCT 4.0 support is missing from PDK 3.0.h) Have multiple extension sections in the bld.inf, one for each version of the compiler. The RVCT version building the tools will build the runtime libraries for its version, but make sure we extract all the other versions from zip archives. Also add the archive for RVCT4.

@echo off
rem
rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
rem All rights reserved.
rem This component and the accompanying materials are made available
rem under the terms of the License "Eclipse Public License v1.0"
rem which accompanies this distribution, and is available
rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
rem

rem Nokia Corporation - initial contribution.
rem
rem Contributors:
rem
rem Description:
rem
setlocal
set IMAGE_PATH=\
set IMAGE_NAME=floppy
set X86PC_PATH=\os\boardsupport\x86pc\
set TEMP_PATH=%IMAGE_PATH%_bfi_temp
rem set BOCHS_PATH=C:\Program Files\Bochs-2.2.1
set BOCHS_PATH=C:\Program Files\Bochs-2.2.6
rem set BOCHS=bochs.exe
set BOCHS=bochs-smp.exe
md %IMAGE_PATH% 2>NUL
md %IMAGE_PATH%_bfi_temp 2>NUL
pushd \os\kernelhwsrv\kernel\eka\rombuild 2>NUL
call copyx86 %1 %TEMP_PATH%
popd
copy /y %X86PC_PATH%pcboot\epocboot.com %TEMP_PATH%\epocboot.bin
pushd
echo bfi -t=288 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH%
call bfi -t=288 -f=%IMAGE_PATH%%IMAGE_NAME% -b=%X86PC_PATH%pcboot\BOOT.COM -o=epocboot.bin %TEMP_PATH%
if errorlevel 1 (
	popd
	goto :EOF
)
copy /y %IMAGE_PATH%%IMAGE_NAME% "%BOCHS_PATH%"
pushd "%BOCHS_PATH%"
call %BOCHS% -q
popd
popd