|
1 <?xml version='1.0' encoding='UTF-8'?> |
|
2 <project> |
|
3 <actions/> |
|
4 <description><h3>Description</h3>
 |
|
5 <li>This project will rebuild the Symbian^2 and Symbian^3 Platform from source using a Bill Of Materials that can be downloaded from the <a href="http://developer.symbian.org/main/tools_and_kits/">kits page.</a>
 |
|
6 <li>It encapsulates the steps as defined in the <a href="http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_Raptor"/>manual build process </a>for Raptor and is a simple way to start building using SBSv2.
 |
|
7 
 |
|
8 <h3>Prerequisites</h3>
 |
|
9 <li>Installation of mandatory <a href="http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_Raptor#Installing_Build_Tools"/>build tools</a>
 |
|
10 <li>Download of required (and recommended) <a href="
 |
|
11 http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_Raptor#Getting_the_Baseline"/>zips </a> from the <a href="http://developer.symbian.org/main/tools_and_kits/">kits page.</a>
 |
|
12 </description> |
|
13 <keepDependencies>false</keepDependencies> |
|
14 <properties> |
|
15 <hudson.model.ParametersDefinitionProperty> |
|
16 <parameterDefinitions> |
|
17 <hudson.model.StringParameterDefinition> |
|
18 <name>BUILD_DRIVE</name> |
|
19 <description>Physical Build Drive</description> |
|
20 <defaultValue>C:</defaultValue> |
|
21 </hudson.model.StringParameterDefinition> |
|
22 <hudson.model.StringParameterDefinition> |
|
23 <name>SUBST_DRIVE</name> |
|
24 <description>Subst'd EPOC drive</description> |
|
25 <defaultValue>M:</defaultValue> |
|
26 </hudson.model.StringParameterDefinition> |
|
27 <hudson.model.StringParameterDefinition> |
|
28 <name>RELEASE_ZIP_LOCATION</name> |
|
29 <description>Location of <a href="http://developer.symbian.org/main/tools_and_kits/">release zipfiles</a> e.g. |
|
30 <li>build_BOM.zip |
|
31 <li>tools_epoc.zip |
|
32 |
|
33 </description> |
|
34 <defaultValue></defaultValue> |
|
35 </hudson.model.StringParameterDefinition> |
|
36 <hudson.model.BooleanParameterDefinition> |
|
37 <name>REBUILD_TOOLS</name> |
|
38 <description>Tick this box if you want to rebuild "tools" as well (needs VC++ 6.0)</description> |
|
39 <defaultValue>false</defaultValue> |
|
40 </hudson.model.BooleanParameterDefinition> |
|
41 <hudson.model.BooleanParameterDefinition> |
|
42 <name>SPLIT_BUILD</name> |
|
43 <description>Untick this box if the build is not GT/S60 split (only PDK2.0.e is not split at the moment)</description> |
|
44 <defaultValue>true</defaultValue> |
|
45 </hudson.model.BooleanParameterDefinition> |
|
46 <hudson.model.ChoiceParameterDefinition> |
|
47 <name>SRC_LOCATION</name> |
|
48 <description>How to get src for building the Platform. |
|
49 <li>BOM - download source direct from <a href="https://developer.symbian.org/oss">web</a> using downloaded Bill Of Materials |
|
50 <li>ZIPFILES - unpack source zips such as src_oss_os.zip from specified location on disk</description> |
|
51 <choices class="java.util.Arrays$ArrayList"> |
|
52 <a class="string-array"> |
|
53 <string>BOM</string> |
|
54 <string>ZIPFILES</string> |
|
55 </a> |
|
56 </choices> |
|
57 </hudson.model.ChoiceParameterDefinition> |
|
58 <hudson.model.BooleanParameterDefinition> |
|
59 <name>LEGACY_BLDMEFIRST</name> |
|
60 <description>Must be ticked for every baseline prior to PDK 2.0.e</description> |
|
61 <defaultValue>false</defaultValue> |
|
62 </hudson.model.BooleanParameterDefinition> |
|
63 <hudson.model.StringParameterDefinition> |
|
64 <name>HG_USERNAME</name> |
|
65 <description>Enter your symbian developer web username <i>(required for download of packages from BOM, not needed when using source zip packages)</i></description> |
|
66 <defaultValue></defaultValue> |
|
67 </hudson.model.StringParameterDefinition> |
|
68 <hudson.model.PasswordParameterDefinition> |
|
69 <name>HG_PASSWORD</name> |
|
70 <description>Enter your Mercurial symbian developer web password <i>(required for download of packages from BOM, not needed when using source zip packages)</i></description> |
|
71 <defaultValue></defaultValue> |
|
72 </hudson.model.PasswordParameterDefinition> |
|
73 <hudson.model.ChoiceParameterDefinition> |
|
74 <name>PLATFORM</name> |
|
75 <description></description> |
|
76 <choices class="java.util.Arrays$ArrayList"> |
|
77 <a class="string-array"> |
|
78 <string>symbian3</string> |
|
79 <string>symbian2</string> |
|
80 </a> |
|
81 </choices> |
|
82 </hudson.model.ChoiceParameterDefinition> |
|
83 <hudson.model.ChoiceParameterDefinition> |
|
84 <name>TARGET</name> |
|
85 <description>What target to build. Building armv5 targets requires RVCT arm compiler installed.</description> |
|
86 <choices class="java.util.Arrays$ArrayList"> |
|
87 <a class="string-array"> |
|
88 <string>-c winscw_udeb</string> |
|
89 <string>-c winscw</string> |
|
90 <string>-c armv5_urel</string> |
|
91 <string>-c armv5 -c winscw</string> |
|
92 </a> |
|
93 </choices> |
|
94 </hudson.model.ChoiceParameterDefinition> |
|
95 </parameterDefinitions> |
|
96 </hudson.model.ParametersDefinitionProperty> |
|
97 </properties> |
|
98 <scm class="hudson.scm.NullSCM"/> |
|
99 <canRoam>true</canRoam> |
|
100 <disabled>false</disabled> |
|
101 <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> |
|
102 <triggers class="vector"/> |
|
103 <concurrentBuild>true</concurrentBuild> |
|
104 <builders> |
|
105 <hudson.tasks.BatchFile> |
|
106 <command>%BUILD_DRIVE% |
|
107 cd\ |
|
108 mkdir build_%JOB_NAME%.%BUILD_NUMBER%\tmp |
|
109 cd build_%JOB_NAME%.%BUILD_NUMBER% |
|
110 subst /d %SUBST_DRIVE% |
|
111 subst %SUBST_DRIVE% . |
|
112 cd %SUBST_DRIVE% |
|
113 %SUBST_DRIVE% |
|
114 cd %SUBST_DRIVE%\tmp |
|
115 hg clone http://developer.symbian.org/oss/MCL/utilities</command> |
|
116 </hudson.tasks.BatchFile> |
|
117 <hudson.tasks.BatchFile> |
|
118 <command>%SUBST_DRIVE% |
|
119 cd \ |
|
120 copy %RELEASE_ZIP_LOCATION%\build_BOM.zip %SUBST_DRIVE%\tmp |
|
121 copy %RELEASE_ZIP_LOCATION%\*_rndonly*.zip %SUBST_DRIVE%\tmp |
|
122 copy %RELEASE_ZIP_LOCATION%\bin_redist*.zip %SUBST_DRIVE%\tmp |
|
123 copy %RELEASE_ZIP_LOCATION%\binaries_epoc_additional.zip %SUBST_DRIVE%\tmp |
|
124 copy %RELEASE_ZIP_LOCATION%\binaries_bldmefirst.zip %SUBST_DRIVE%\tmp |
|
125 %SUBST_DRIVE%\tmp |
|
126 IF %SRC_LOCATION% == BOM goto TOOLSZIP |
|
127 copy %RELEASE_ZIP_LOCATION%\src_*.zip %SUBST_DRIVE%\tmp |
|
128 :TOOLSZIP |
|
129 IF %REBUILD_TOOLS% == true exit 0 |
|
130 copy %RELEASE_ZIP_LOCATION%\binaries_epoc32_stlport.zip %SUBST_DRIVE%\tmp |
|
131 copy %RELEASE_ZIP_LOCATION%\tools_*.zip %SUBST_DRIVE%\tmp |
|
132 exit 0</command> |
|
133 </hudson.tasks.BatchFile> |
|
134 <hudson.tasks.BatchFile> |
|
135 <command>%SUBST_DRIVE% |
|
136 cd %SUBST_DRIVE%\tmp |
|
137 7z x *.zip -o.. -y |
|
138 cd.. |
|
139 7z x *.zip -y |
|
140 del *.zip |
|
141 exit 0</command> |
|
142 </hudson.tasks.BatchFile> |
|
143 <hudson.tasks.BatchFile> |
|
144 <command>IF NOT %SRC_LOCATION% == BOM exit |
|
145 %SUBST_DRIVE% |
|
146 cd \ |
|
147 @ECHO OFF |
|
148 IF NOT "%HG_USERNAME%" == "" GOTO USERNAME_OK |
|
149 echo "You must enter a UserName and Password when using the BOM option" |
|
150 exit 1 |
|
151 :USERNAME_OK |
|
152 IF NOT "%HG_PASSWORD%" == "" GOTO HG_OK |
|
153 echo "You must enter a UserName and Password when using the BOM option" |
|
154 exit 1 |
|
155 :HG_OK |
|
156 \tmp\utilities\clone_packages\clone_all_packages.pl -packagelist \build_info\logs\BOM\build-info.xml -username %HG_USERNAME% -password %HG_PASSWORD% -retries=7</command> |
|
157 </hudson.tasks.BatchFile> |
|
158 <hudson.tasks.BatchFile> |
|
159 <command>IF %LEGACY_BLDMEFIRST% == true exit |
|
160 cd %SUBST_DRIVE% |
|
161 %SUBST_DRIVE% |
|
162 cd \ |
|
163 mkdir %SUBST_DRIVE%\epoc32\include\variant\ |
|
164 mkdir %SUBST_DRIVE%\epoc32\tools\variant\ |
|
165 set VARIANT=tb91sf |
|
166 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
167 IF NOT %PLATFORM% == symbian2 copy %SUBST_DRIVE%\sf\os\deviceplatformrelease\symbianosbld\cedarutils\inc\Symbian_OS_%VARIANT%.hrh %SUBST_DRIVE%\sf\os\deviceplatformrelease\symbianosbld\cedarutils\Symbian_OS.hrh |
|
168 copy %SUBST_DRIVE%\sf\os\deviceplatformrelease\symbianosbld\cedarutils\*.hrh %SUBST_DRIVE%\epoc32\include\variant\ |
|
169 copy %SUBST_DRIVE%\sf\os\deviceplatformrelease\symbianosbld\cedarutils\Symbian_OS_v%VARIANT%.cfg %SUBST_DRIVE%\epoc32\tools\variant\variant.cfg |
|
170 cd %SUBST_DRIVE%\sf\os\deviceplatformrelease\sf_config\config\inc\ |
|
171 copy variant.cfg +,, |
|
172 exit 0</command> |
|
173 </hudson.tasks.BatchFile> |
|
174 <hudson.tasks.BatchFile> |
|
175 <command>IF %LEGACY_BLDMEFIRST% == true exit |
|
176 cd %SUBST_DRIVE% |
|
177 %SUBST_DRIVE% |
|
178 cd\ |
|
179 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\deviceplatformrelease\sf_config\config\western\group\bld.inf %TARGET% |
|
180 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\deviceplatformrelease\sf_config\config\group\bld.inf %TARGET% |
|
181 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\devicesrv\devicesrv_pub\platform_path_definitions_api\group\bld.inf %TARGET% |
|
182 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\devicesrv\devicesrv_pub\common_platform_security_definitions_api\group\bld.inf %TARGET% |
|
183 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\os\devicesrv\commonservices\commonengine\group\bld.inf %TARGET% |
|
184 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\mw\web\web_plat\browser_platform_api\group\bld.inf %TARGET% |
|
185 cmd /c sbs EXPORT --ignore-os-detection --export-only -b %SUBST_DRIVE%\sf\tools\homescreentools\dtdinstaller\group\bld.inf %TARGET%</command> |
|
186 </hudson.tasks.BatchFile> |
|
187 <hudson.tasks.BatchFile> |
|
188 <command>IF %LEGACY_BLDMEFIRST% == true exit |
|
189 cd %SUBST_DRIVE% |
|
190 %SUBST_DRIVE% |
|
191 cd\ |
|
192 xcopy /s %SUBST_DRIVE%\sf\tools\makefile_templates\*.* %SUBST_DRIVE%\epoc32\tools\makefile_templates\s60\ |
|
193 exit 0</command> |
|
194 </hudson.tasks.BatchFile> |
|
195 <hudson.tasks.BatchFile> |
|
196 <command>if %REBUILD_TOOLS% == true exit |
|
197 cd %SUBST_DRIVE% |
|
198 %SUBST_DRIVE% |
|
199 cd\ |
|
200 set VARIANT=tb91sf |
|
201 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
202 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_GT_%VARIANT%.xml -c tools_rel.whatlog -c tools2_rel.whatlog %TARGET% -i EXPORT -k -f exports.log</command> |
|
203 </hudson.tasks.BatchFile> |
|
204 <hudson.tasks.BatchFile> |
|
205 <command>if %REBUILD_TOOLS% == false exit |
|
206 cd %SUBST_DRIVE% |
|
207 %SUBST_DRIVE% |
|
208 cd\ |
|
209 set VARIANT=tb91sf |
|
210 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
211 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_GT_%VARIANT%.xml -c tools2_rel.whatlog.v%VARIANT% -i -j 32 -t 5 -k -f tools2_gt.log</command> |
|
212 </hudson.tasks.BatchFile> |
|
213 <hudson.tasks.BatchFile> |
|
214 <command>if %REBUILD_TOOLS% == false exit |
|
215 cd %SUBST_DRIVE% |
|
216 %SUBST_DRIVE% |
|
217 cd\ |
|
218 set VARIANT=tb91sf |
|
219 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
220 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_GT_%VARIANT%.xml -c tools_rel.whatlog.v%VARIANT% -i -j 32 -t 5 -k -f tools_gt.log</command> |
|
221 </hudson.tasks.BatchFile> |
|
222 <hudson.tasks.BatchFile> |
|
223 <command>cd %SUBST_DRIVE% |
|
224 %SUBST_DRIVE% |
|
225 cd\ |
|
226 set VARIANT=tb91sf |
|
227 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
228 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_GT_%VARIANT%.xml %TARGET% -i -j 32 -t 5 -k -f build.log</command> |
|
229 </hudson.tasks.BatchFile> |
|
230 <hudson.tasks.BatchFile> |
|
231 <command>IF %SPLIT_BUILD% == false exit |
|
232 IF %REBUILD_TOOLS% == true exit |
|
233 cd %SUBST_DRIVE% |
|
234 %SUBST_DRIVE% |
|
235 cd\ |
|
236 set S60VARIANT=5_1 |
|
237 set VARIANT=tb91sf |
|
238 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
239 IF %PLATFORM% == symbian3 set S60VARIANT=5_2 |
|
240 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_S60_%S60VARIANT%_sf.xml -c tools_rel.whatlog -c tools2_rel.whatlog %TARGET% -i EXPORT -k -f exports.log</command> |
|
241 </hudson.tasks.BatchFile> |
|
242 <hudson.tasks.BatchFile> |
|
243 <command>IF %SPLIT_BUILD% == false exit |
|
244 IF %REBUILD_TOOLS% == false exit |
|
245 cd %SUBST_DRIVE% |
|
246 %SUBST_DRIVE% |
|
247 cd\ |
|
248 set S60VARIANT=5_1 |
|
249 set VARIANT=tb91sf |
|
250 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
251 IF %PLATFORM% == symbian3 set S60VARIANT=5_2 |
|
252 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_S60_%S60VARIANT%_sf.xml -c tools2_rel.whatlog.v%VARIANT% -i -j 32 -t 5 -k -f tools2_gt.log</command> |
|
253 </hudson.tasks.BatchFile> |
|
254 <hudson.tasks.BatchFile> |
|
255 <command>IF %SPLIT_BUILD% == false exit |
|
256 IF %REBUILD_TOOLS% == false exit |
|
257 cd %SUBST_DRIVE% |
|
258 %SUBST_DRIVE% |
|
259 cd\ |
|
260 set S60VARIANT=5_1 |
|
261 set VARIANT=tb91sf |
|
262 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
263 IF %PLATFORM% == symbian3 set S60VARIANT=5_2 |
|
264 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_S60_%S60VARIANT%_sf.xml -c tools_rel.whatlog.v%VARIANT% -i -j 32 -t 5 -k -f tools_gt.log</command> |
|
265 </hudson.tasks.BatchFile> |
|
266 <hudson.tasks.BatchFile> |
|
267 <command>IF %SPLIT_BUILD% == false exit |
|
268 cd %SUBST_DRIVE% |
|
269 %SUBST_DRIVE% |
|
270 cd\ |
|
271 set S60VARIANT=5_1 |
|
272 set VARIANT=tb91sf |
|
273 IF %PLATFORM% == symbian3 set VARIANT=tb92sf |
|
274 IF %PLATFORM% == symbian3 set S60VARIANT=5_2 |
|
275 cmd /c sbs -s %SUBST_DRIVE%\build_info\logs\BOM\canonical_system_definition_S60_%S60VARIANT%_sf.xml %TARGET% -i -j 32 -t 5 -k -f build.log</command> |
|
276 </hudson.tasks.BatchFile> |
|
277 <hudson.tasks.BatchFile> |
|
278 <command>cd %SUBST_DRIVE% |
|
279 %SUBST_DRIVE% |
|
280 cd\ |
|
281 %HELIUM_HOME%\..\ConfigurationTool/cli_build.cmd -master_conf s60 -impl /epoc32/rom/config/confml_data/s60 -confml /epoc32/rom/config/confml_data/s60 -ignore_errors</command> |
|
282 </hudson.tasks.BatchFile> |
|
283 </builders> |
|
284 <publishers/> |
|
285 <buildWrappers/> |
|
286 <customWorkspace>C:\</customWorkspace> |
|
287 </project> |