Update contrib.
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".
10 rem Initial Contributors:
11 rem Nokia Corporation - initial contribution.
18 REM Check argument to see if epoc.ini should be created
27 REM Get path to F32TEST directory
28 call :GetParentDirPath F32TEST_PATH
29 echo F32TEST_PATH = %F32TEST_PATH%
30 set EPOC32_DIR=%EPOCROOT%EPOC32\
31 echo EPOC32_DIR = %EPOC32_DIR%
32 set EMUL_MEDIA_PATH=%EPOC32_DIR%DATA\MEDIA\
33 echo EMUL_MEDIA_PATH = %EMUL_MEDIA_PATH%
34 set RELEASE_PATH=%EPOC32_DIR%RELEASE\
35 echo RELEASE_PATH = %RELEASE_PATH%
37 REM If BASEPATH not set by basedoit.bat, because this is not a BTB build, then assume \os\
38 if "%BASEPATH%" == "" (
41 echo BASEPATH = %BASEPATH%
45 call :SetupCDrive wins
46 call :SetupCDrive winscw
47 call :SetupZDrive wins udeb
48 call :SetupZDrive wins urel
49 call :SetupZDrive winscw udeb
50 call :SetupZDrive winscw urel
51 %BTB_BUILD% call :SetupEpocDotIni
57 call :GetPath %1 %~p0.
65 if exist \asdfasdf rmdir /s /q \asdfasdf
66 if exist \red rmdir /s /q \red
67 if exist \f32-tst rmdir /s /q \f32-tst
68 if exist \ford rmdir /s /q \ford
69 if exist \session_test rmdir /s /q \session_test
70 if exist \tmisc rmdir /s /q \tmisc
71 if exist \volvo rmdir /s /q \volvo
72 if exist \blue del /q \blue
76 if exist %EMUL_MEDIA_PATH% del /q %EMUL_MEDIA_PATH%*.bin
78 if exist %BASEPATH%emulator\wins\emuldrives.zip (
79 Call unZip %BASEPATH%emulator\wins\emuldrives.zip
81 Call unZip %BASEPATH%boardsupport\emulator\emulatorbsp\emuldrives.zip
86 if exist %EPOC32_DIR%%1\C rmdir /s /q %EPOC32_DIR%%1\C 2>NUL
87 if not exist %EPOC32_DIR%%1\C\F32 mkdir %EPOC32_DIR%%1\C\F32
92 set REL_DIR=%RELEASE_PATH%%1\%2
93 set EMUL_Z=%REL_DIR%\Z
94 echo REL_DIR = %REL_DIR%
95 echo EMUL_Z = %EMUL_Z%
97 if exist %EMUL_Z% rmdir /s /q %EMUL_Z% 2>NUL
98 if not exist %EMUL_Z%\NOTINPATH mkdir %EMUL_Z%\NOTINPATH
99 if not exist %EMUL_Z%\TEST mkdir %EMUL_Z%\TEST
100 copy %F32TEST_PATH%\SERVER\T_FILE.CPP %EMUL_Z%\TEST\T_FILE.CPP
101 copy %F32TEST_PATH%\SERVER\T_FSRV.CPP %EMUL_Z%\TEST\T_FSRV.CPP
102 copy %F32TEST_PATH%\SERVER\T_RDSECT.TXT %EMUL_Z%\TEST\T_RDSECT.TXT
103 copy %EPOC32_DIR%BUILD%F32TEST_PATH%\GROUP\%1.AUTO.BAT %EMUL_Z%\TEST\%1.AUTO.BAT
104 copy %REL_DIR%\T_CHKUID.EXE %EMUL_Z%\TEST\T_CHKUID.EXE
106 REM Use both Sys and System directories until the switch has been made
108 if not exist %EMUL_Z%\SYS\LIBS mkdir %EMUL_Z%\SYS\LIBS
109 if not exist %EMUL_Z%\SYS\BIN mkdir %EMUL_Z%\SYS\BIN
110 copy %REL_DIR%\ESHELL.EXE %EMUL_Z%\SYS\BIN\ESHELL.EXE
111 copy %REL_DIR%\T_PREL.DLL %EMUL_Z%\SYS\BIN\T_PREL.DLL
112 if not exist %EMUL_Z%\SYS\DATA mkdir %EMUL_Z%\SYS\DATA
113 copy %F32TEST_PATH%\SERVER\PRELOAD.LST %EMUL_Z%\SYS\DATA\PRELOAD.LST
114 if exist %F32TEST_PATH%\..\EMULATOR\WINS_RESTRICTED\UNISTORE2\ESTART\ESTARTXSR.TXT (
115 copy %F32TEST_PATH%\..\EMULATOR\WINS_RESTRICTED\UNISTORE2\ESTART\ESTARTXSR.TXT %EMUL_Z%\SYS\DATA\ESTART.TXT
117 copy %BASEPATH%boardsupport\emulator\unistore2emulatorsupport\estart\estartxsr.txt %EMUL_Z%\SYS\DATA\ESTART.TXT
120 if not exist %EMUL_Z%\SYSTEM\LIBS mkdir %EMUL_Z%\SYSTEM\LIBS
121 if not exist %EMUL_Z%\SYSTEM\BIN mkdir %EMUL_Z%\SYSTEM\BIN
122 copy %REL_DIR%\ESHELL.EXE %EMUL_Z%\SYSTEM\BIN\ESHELL.EXE
123 copy %REL_DIR%\T_PREL.DLL %EMUL_Z%\SYSTEM\BIN\T_PREL.DLL
124 if not exist %EMUL_Z%\SYSTEM\DATA mkdir %EMUL_Z%\SYSTEM\DATA
125 copy %F32TEST_PATH%\SERVER\PRELOAD.LST %EMUL_Z%\SYSTEM\DATA\PRELOAD.LST
126 copy %F32TEST_PATH%\SERVER\corruptTest\CorruptFileNames.lst %EMUL_Z%\SYSTEM\DATA\CorruptFileNames.lst
127 copy %F32TEST_PATH%\SERVER\corruptTest\BadFile1.txt %EMUL_Z%\SYSTEM\DATA\BadFile1.txt
128 copy %F32TEST_PATH%\SERVER\corruptTest\BadFile2.txt %EMUL_Z%\SYSTEM\DATA\BadFile2.txt
131 copy %REL_DIR%\T_SYSBIN.EXE %EMUL_Z%\SYS\BIN\T_SYSBINa.EXE
132 if not exist %EMUL_Z%\SYSTEM\PROGRAMS mkdir %EMUL_Z%\SYSTEM\PROGRAMS
133 copy %REL_DIR%\T_SYSBIN.EXE %EMUL_Z%\SYSTEM\PROGRAMS\T_SYSBINb.EXE
134 copy %REL_DIR%\T_SYSBIN_DLL.DLL %EMUL_Z%\SYS\BIN\T_SYSBIN_DLLa.DLL
135 copy %REL_DIR%\T_SYSBIN_DLL.DLL %EMUL_Z%\SYS\BIN\T_SYSBIN_DLL_RAM.DLL
136 if not exist %EMUL_Z%\SYSTEM\LIBS mkdir %EMUL_Z%\SYSTEM\LIBS
137 copy %REL_DIR%\T_SYSBIN_DLL.DLL %EMUL_Z%\SYSTEM\LIBS\T_SYSBIN_DLLb.DLL
140 copy %REL_DIR%\t_vshook.pxt %EMUL_Z%\Test\t_vshook.pxt
141 copy %F32TEST_PATH%\plugins\version_1\virus\virusdef.txt %EMUL_Z%\Test\virusdef.txt
142 copy %F32TEST_PATH%\plugins\version_1\virus\virus1.txt %EMUL_Z%\Test\virus1.txt
143 copy %F32TEST_PATH%\plugins\version_1\virus\virus2.txt %EMUL_Z%\Test\virus2.txt
144 copy %F32TEST_PATH%\plugins\version_1\virus\clean.txt %EMUL_Z%\Test\clean.txt
146 REM for t_findcapall and t_findcapnone
147 copy %F32TEST_PATH%\SERVER\t_findcaptestfile.txt %EMUL_Z%\SYS\BIN\t_findcaptestfile.txt
149 REM for T_PLUGIN_V2BETA
150 copy %REL_DIR%\t_enchook.pxt %EMUL_Z%\Test\t_enchook.pxt
151 copy %REL_DIR%\t_hexhook.pxt %EMUL_Z%\Test\t_hexhook.pxt
152 copy %REL_DIR%\t_formathook.pxt %EMUL_Z%\Test\t_formathook.pxt
158 if exist %EPOCROOT%epoc32\data\epoc.ini (
159 echo epoc.ini already exists and hasn't been overwritten
160 echo epoc.ini may not contain build-and-test-system settings
162 if not exist %EPOCROOT%epoc32\data\epoc.ini (
163 REM these settings should replicate those settings
164 REM used for the build-and-test-system see how
165 REM basetests.ini gets configured in
166 REM //EPOC/development/base/tools/master/common/basedoit.bat
167 echo textshell >%EPOCROOT%epoc32\data\epoc.ini
168 echo timerresolution 1 >>%EPOCROOT%epoc32\data\epoc.ini
169 echo _epoc_drive_t %EPOCROOT%epoc32\build>>%EPOCROOT%epoc32\data\epoc.ini
170 echo justintime none>>%EPOCROOT%epoc32\data\epoc.ini
171 echo debugmask panic>>%EPOCROOT%epoc32\data\epoc.ini
172 echo logtimestamp 0 >>%EPOCROOT%epoc32\data\epoc.ini
173 echo logthreadid 0 >>%EPOCROOT%epoc32\data\epoc.ini
174 echo FlashEraseTime 50000 >>%EPOCROOT%epoc32\data\epoc.ini
175 echo FlashResumeTime 0 >>%EPOCROOT%epoc32\data\epoc.ini
176 echo FlashWriteTime 0 >>%EPOCROOT%epoc32\data\epoc.ini
177 echo NandDriverType=XSR >>%EPOCROOT%epoc32\data\epoc.ini
178 if exist %BASEPATH%e32\rombuild\platsec.settings (
179 type %BASEPATH%e32\rombuild\platsec.settings >>%EPOCROOT%epoc32\data\epoc.ini
181 type %BASEPATH%kernelhwsrv\kernel\eka\rombuild\platsec.settings >>%EPOCROOT%epoc32\data\epoc.ini