|
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_helium"/>manual build process </a>for Helium and is a simple way to start building using the Foundation Build Framework.
 |
|
7 <br><br>
 |
|
8 The Foundation Build Framework (FBF) is an Apache ANT-like configuration that can be used with the Helium tool, delivered in the <a href="https://developer.symbian.org/main/tools_and_kits/downloads/view.php?id=4"/>PDT</a>.
 |
|
9 
 |
|
10 <h3>Prerequisites</h3>
 |
|
11 <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_helium#Installing_Build_Tools"/>build tools</a>
 |
|
12 <li>Download of required (and recommended) <a href="
 |
|
13 http://developer.symbian.org/wiki/index.php/How_to_perform_a_platform_build_of_PDK_3.0.b_using_helium#Getting_the_Baseline"/>zips </a> from the <a href="http://developer.symbian.org/main/tools_and_kits/">kits page.</a>
 |
|
14 
 |
|
15 <h3>Additional Information</h3>
 |
|
16 Source for the FBF can be downloaded from the following Mercurial Repositories -
 |
|
17 <br>
 |
|
18 <li>FBF Configuration - <a href="https://developer.symbian.org/oss/FCL/interim/fbf/configs/default/"/>https://developer.symbian.org/oss/FCL/interim/fbf/configs/default/</a>
 |
|
19 <li>FBF Platform Project - <a href="https://developer.symbian.org/oss/FCL/interim/fbf/projects/platforms"/>https://developer.symbian.org/oss/FCL/interim/fbf/projects/platforms</a>
 |
|
20 <li>FBF Bootstrap - <a href="https://developer.symbian.org/oss/FCL/interim/fbf/bootstrap"/>https://developer.symbian.org/oss/FCL/interim/fbf/bootstrap</a>
 |
|
21 </description> |
|
22 <keepDependencies>false</keepDependencies> |
|
23 <properties> |
|
24 <hudson.model.ParametersDefinitionProperty> |
|
25 <parameterDefinitions> |
|
26 <hudson.model.StringParameterDefinition> |
|
27 <name>BUILD_DRIVE</name> |
|
28 <description>Physical Build Drive</description> |
|
29 <defaultValue>C:</defaultValue> |
|
30 </hudson.model.StringParameterDefinition> |
|
31 <hudson.model.StringParameterDefinition> |
|
32 <name>SUBST_DRIVE</name> |
|
33 <description>Subst'd EPOC drive</description> |
|
34 <defaultValue>M:</defaultValue> |
|
35 </hudson.model.StringParameterDefinition> |
|
36 <hudson.model.StringParameterDefinition> |
|
37 <name>RELEASE_ZIP_LOCATION</name> |
|
38 <description>Location of <a href="http://developer.symbian.org/main/tools_and_kits/">release zipfiles</a> e.g. |
|
39 <li>build_BOM.zip |
|
40 <li>tools_epoc.zip |
|
41 |
|
42 </description> |
|
43 <defaultValue></defaultValue> |
|
44 </hudson.model.StringParameterDefinition> |
|
45 <hudson.model.BooleanParameterDefinition> |
|
46 <name>REBUILD_TOOLS</name> |
|
47 <description>Tick this box if you want to rebuild "tools" as well (needs VC++ 6.0)</description> |
|
48 <defaultValue>false</defaultValue> |
|
49 </hudson.model.BooleanParameterDefinition> |
|
50 <hudson.model.BooleanParameterDefinition> |
|
51 <name>SPLIT_BUILD</name> |
|
52 <description>Untick this box if the build is not GT/S60 split (only PDK2.0.e is not split at the moment)</description> |
|
53 <defaultValue>true</defaultValue> |
|
54 </hudson.model.BooleanParameterDefinition> |
|
55 <hudson.model.ChoiceParameterDefinition> |
|
56 <name>SRC_LOCATION</name> |
|
57 <description>How to get src for building the Platform. |
|
58 <li>BOM - download source direct from <a href="https://developer.symbian.org/oss">web</a> using downloaded Bill Of Materials |
|
59 <li>ZIPFILES - unpack source zips such as src_oss_os.zip from specified location on disk</description> |
|
60 <choices class="java.util.Arrays$ArrayList"> |
|
61 <a class="string-array"> |
|
62 <string>BOM</string> |
|
63 <string>ZIPFILES</string> |
|
64 </a> |
|
65 </choices> |
|
66 </hudson.model.ChoiceParameterDefinition> |
|
67 <hudson.model.StringParameterDefinition> |
|
68 <name>HG_USERNAME</name> |
|
69 <description>Enter your symbian developer web username <i>(required for download of packages from BOM, not needed when using source zip packages)</i></description> |
|
70 <defaultValue></defaultValue> |
|
71 </hudson.model.StringParameterDefinition> |
|
72 <hudson.model.PasswordParameterDefinition> |
|
73 <name>HG_PASSWORD</name> |
|
74 <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> |
|
75 <defaultValue></defaultValue> |
|
76 </hudson.model.PasswordParameterDefinition> |
|
77 <hudson.model.ChoiceParameterDefinition> |
|
78 <name>PLATFORM</name> |
|
79 <description></description> |
|
80 <choices class="java.util.Arrays$ArrayList"> |
|
81 <a class="string-array"> |
|
82 <string>symbian3</string> |
|
83 <string>symbian2</string> |
|
84 </a> |
|
85 </choices> |
|
86 </hudson.model.ChoiceParameterDefinition> |
|
87 <hudson.model.StringParameterDefinition> |
|
88 <name>TARGET</name> |
|
89 <description>Comma separated list of target(s) to build. Building armv5 targets requires RVCT arm compiler installed. |
|
90 <br><br> |
|
91 <li>winscw_udeb.whatlog |
|
92 <li>winscw_udeb.whatlog, armv5_urel.whatlog |
|
93 <li>armv5.whatlog,winscw.whatlog</description> |
|
94 <defaultValue>winscw_udeb.whatlog</defaultValue> |
|
95 </hudson.model.StringParameterDefinition> |
|
96 <hudson.model.ChoiceParameterDefinition> |
|
97 <name>FBF_REV</name> |
|
98 <description>The tagged version of the FBF (Helium) to use to build the Platform. |
|
99 <li>tip - is the latest revision from the web |
|
100 <br><br> |
|
101 <i>Its recommended to use the revision that matches the build_BOM.zip downloaded</i> |
|
102 </description> |
|
103 <choices class="java.util.Arrays$ArrayList"> |
|
104 <a class="string-array"> |
|
105 <string>tip</string> |
|
106 <string>PDK_3.0.b</string> |
|
107 <string>PDK_3.0.a</string> |
|
108 <string>PDK_2.0.0</string> |
|
109 </a> |
|
110 </choices> |
|
111 </hudson.model.ChoiceParameterDefinition> |
|
112 </parameterDefinitions> |
|
113 </hudson.model.ParametersDefinitionProperty> |
|
114 </properties> |
|
115 <scm class="hudson.scm.NullSCM"/> |
|
116 <canRoam>true</canRoam> |
|
117 <disabled>false</disabled> |
|
118 <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> |
|
119 <triggers class="vector"/> |
|
120 <concurrentBuild>true</concurrentBuild> |
|
121 <builders> |
|
122 <hudson.tasks.BatchFile> |
|
123 <command>%BUILD_DRIVE% |
|
124 cd\ |
|
125 rmdir /q/s sf-bootstrap |
|
126 mkdir sf-bootstrap |
|
127 cd sf-bootstrap |
|
128 hg clone http://developer.symbian.org/oss/FCL/interim/fbf/bootstrap |
|
129 cd bootstrap |
|
130 hlm -f bootstrap.xml -Dsf.project.repo=http://developer.symbian.org/oss/FCL/interim/fbf/projects/platforms -Dsf.config.repo=http://developer.symbian.org/oss/FCL/interim/fbf/configs/default -Dsf.target.dir=%BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER% -Dsf.config.rev=%FBF_REV% -Dsf.project.rev=%FBF_REV%</command> |
|
131 </hudson.tasks.BatchFile> |
|
132 <hudson.tasks.BatchFile> |
|
133 <command>%BUILD_DRIVE% |
|
134 cd\ |
|
135 set PROJECT=single |
|
136 set TOOLS_BASELINE_ENABLE=true |
|
137 set TOOLS_CONFIG=tools_rel.whatlog,tools2_rel.whatlog |
|
138 IF %SPLIT_BUILD% == true set PROJECT=split |
|
139 IF %REBUILD_TOOLS% == true set TOOLS_BASELINE_ENABLE=false |
|
140 IF %REBUILD_TOOLS% == false set TOOLS_CONFIG=tools2_rel.whatlog |
|
141 cd %BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\sf-config |
|
142 hlm sf-prep -Dbuild.drive=%SUBST_DRIVE% -Dsf.spec.job.number=%JOB_NAME%.%BUILD_NUMBER% -Dsf.spec.job.codeline="%SRC_LOCATION%" -Dsf.project.location=%BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\build\config\%PLATFORM%\%PROJECT% -Dsf.spec.splitbuild=%SPLIT_BUILD% -Dsf.spec.sbs.config="%TARGET%" -Dsf.spec.baseline.enable=%TOOLS_BASELINE_ENABLE% -Dsf.spec.sbs.tools.config="%TOOLS_CONFIG%" -Dsf.spec.job.rootdir=%BUILD_DRIVE% -Dsf.suppress.buildenv.check=true -Dsf.suppress.drive.space.check=true -Dsf.spec.logs.raptorfilter.enable=false</command> |
|
143 </hudson.tasks.BatchFile> |
|
144 <hudson.tasks.BatchFile> |
|
145 <command>%SUBST_DRIVE% |
|
146 cd\ |
|
147 mkdir tmp |
|
148 copy %RELEASE_ZIP_LOCATION%\build_BOM.zip %SUBST_DRIVE%\tmp |
|
149 copy %RELEASE_ZIP_LOCATION%\binaries_epoc_additional.zip %SUBST_DRIVE%\tmp |
|
150 rem copy %RELEASE_ZIP_LOCATION%\binaries_bldmefirst.zip %SUBST_DRIVE%\tmp |
|
151 copy %RELEASE_ZIP_LOCATION%\*_rndonly*.zip %SUBST_DRIVE%\tmp |
|
152 copy %RELEASE_ZIP_LOCATION%\bin_redist*.zip %SUBST_DRIVE%\tmp |
|
153 IF %SRC_LOCATION% == BOM goto TOOLSZIP |
|
154 copy %RELEASE_ZIP_LOCATION%\src_*.zip %SUBST_DRIVE%\tmp |
|
155 :TOOLSZIP |
|
156 IF %REBUILD_TOOLS% == true goto UNZIP |
|
157 copy %RELEASE_ZIP_LOCATION%\binaries_epoc32_stlport.zip %SUBST_DRIVE%\tmp |
|
158 copy %RELEASE_ZIP_LOCATION%\tools_*.zip %SUBST_DRIVE%\tmp |
|
159 :UNZIP |
|
160 %SUBST_DRIVE% |
|
161 cd %SUBST_DRIVE%\tmp |
|
162 7z x *.zip -o.. -y |
|
163 cd.. |
|
164 7z x *.zip -y |
|
165 del *.zip |
|
166 exit 0</command> |
|
167 </hudson.tasks.BatchFile> |
|
168 <hudson.tasks.BatchFile> |
|
169 <command>IF NOT %SRC_LOCATION% == BOM exit |
|
170 %SUBST_DRIVE% |
|
171 cd \ |
|
172 @ECHO OFF |
|
173 IF NOT "%HG_USERNAME%" == "" GOTO USERNAME_OK |
|
174 echo "You must enter a UserName and Password when using the BOM option" |
|
175 exit 1 |
|
176 :USERNAME_OK |
|
177 IF NOT "%HG_PASSWORD%" == "" GOTO HG_OK |
|
178 echo "You must enter a UserName and Password when using the BOM option" |
|
179 exit 1 |
|
180 :HG_OK |
|
181 cd \tmp |
|
182 hg clone http://developer.symbian.org/oss/MCL/utilities |
|
183 cd\ |
|
184 \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> |
|
185 </hudson.tasks.BatchFile> |
|
186 <hudson.tasks.BatchFile> |
|
187 <command>%BUILD_DRIVE% |
|
188 cd\ |
|
189 set PROJECT=single |
|
190 set TOOLS_BASELINE_ENABLE=true |
|
191 set TOOLS_CONFIG=tools_rel.whatlog,tools2_rel.whatlog |
|
192 IF %SPLIT_BUILD% == true set PROJECT=split |
|
193 IF %REBUILD_TOOLS% == true set TOOLS_BASELINE_ENABLE=false |
|
194 IF %REBUILD_TOOLS% == false set TOOLS_CONFIG=tools2_rel.whatlog |
|
195 cd %BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\sf-config |
|
196 hlm sf-build-noprep -Dbuild.drive=%SUBST_DRIVE% -Dsf.spec.job.number=%JOB_NAME%.%BUILD_NUMBER% -Dsf.spec.job.codeline="%SRC_LOCATION%" -Dsf.project.location=%BUILD_DRIVE%\maintools_%JOB_NAME%.%BUILD_NUMBER%\build\config\%PLATFORM%\%PROJECT% -Dsf.spec.splitbuild=%SPLIT_BUILD% -Dsf.spec.sbs.config="%TARGET%" -Dsf.spec.baseline.enable=%TOOLS_BASELINE_ENABLE% -Dsf.spec.sbs.tools.config="%TOOLS_CONFIG%" -Dsf.spec.job.rootdir=%BUILD_DRIVE% -Dsf.suppress.buildenv.check=true -Dsf.suppress.drive.space.check=true -Dsf.spec.logs.raptorfilter.enable=false -Dsf.spec.publish.enable=false -Dsf.spec.package.bin.enable=false -Dsf.spec.test.sendpkg.enable=false</command> |
|
197 </hudson.tasks.BatchFile> |
|
198 </builders> |
|
199 <publishers/> |
|
200 <buildWrappers/> |
|
201 <customWorkspace>D:\</customWorkspace> |
|
202 </project> |