13 <import file="../common/build.xml" /> |
13 <import file="../common/build.xml" /> |
14 |
14 |
15 <!-- import package references --> |
15 <!-- import package references --> |
16 <import file="${sf.package.config.dir}/package_refs.ant.xml" /> |
16 <import file="${sf.package.config.dir}/package_refs.ant.xml" /> |
17 |
17 |
18 <target name="sf-compile"> |
18 <target name="sf-ensure-v2-sysdef"> |
19 |
|
20 <!-- Check that package_definition is not in v 3.0.0 otherwise transforms it to 2.0.1 --> |
19 <!-- Check that package_definition is not in v 3.0.0 otherwise transforms it to 2.0.1 --> |
21 <echo message="Check that model file is in a version usable by Raptor"/> |
20 <echo message="Check that model file is in a version usable by Raptor"/> |
22 <exec executable="perl" dir="${sf.common.config.dir}/sysdefdowngrade" failonerror="false" output="${build.log.dir}/sysdefdowngrade.log"> |
21 <exec executable="perl" dir="${sf.common.config.dir}/sysdefdowngrade" failonerror="false" output="${build.log.dir}/sysdefdowngrade.log"> |
23 <arg value="sysdefdowngrade.pl"/> |
22 <arg value="sysdefdowngrade.pl"/> |
24 <arg value="--model=${build.drive}/${sf.spec.systemdefinition.location}"/> |
23 <arg value="--model=${build.drive}/${sf.spec.systemdefinition.location}"/> |
25 <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
24 <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
26 </exec> |
25 </exec> |
27 |
|
28 <!-- helium 7+ should use new sf-package-compile target --> |
|
29 <if> |
|
30 <or> |
|
31 <equals arg1="${helium.version}" arg2="7.0"/> |
|
32 <equals arg1="${last.major.helium.version}" arg2="7.0"/> |
|
33 </or> |
|
34 <then> |
|
35 <runtarget target="sf-package-compile"/> |
|
36 </then> |
|
37 <else> |
|
38 <runtarget target="sf-package-compile-hlm-5"/> |
|
39 </else> |
|
40 </if> |
|
41 |
|
42 </target> |
26 </target> |
43 |
27 |
44 |
28 <target name="sf-compile" depends="sf-ensure-v2-sysdef"> |
45 |
|
46 <target name="sf-package-compile"> |
|
47 |
|
48 <!-- build stuff --> |
29 <!-- build stuff --> |
49 <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig"> |
30 <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig"> |
50 <sequential> |
31 <sequential> |
51 |
32 |
52 <hlm:sbsinput id="sf.build"> |
33 <hlm:sbsinput id="sf.build"> |
105 <!-- CHECK --> |
86 <!-- CHECK --> |
106 <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log"> |
87 <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log"> |
107 <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/> |
88 <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/> |
108 <!-- argument of -j option can be parameterized with: ${number.of.threads} --> |
89 <!-- argument of -j option can be parameterized with: ${number.of.threads} --> |
109 </exec> |
90 </exec> |
110 |
|
111 </target> |
91 </target> |
112 |
92 |
113 |
|
114 <target name="sf-package-compile-hlm-5"> |
|
115 |
|
116 <for list="${sf.spec.sbs.config}" delimiter="," param="item.sbs.splitconfig"> |
|
117 <sequential> |
|
118 <echo message="INFO [Iterative compile] Building target: @{item.sbs.splitconfig}"/> |
|
119 |
|
120 <!-- Do CLEAN |
|
121 <hlm:argSet id="sbs.iterate.clean.var"> |
|
122 <hlm:arg name="config" value="@{item.sbs.splitconfig}" /> |
|
123 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" /> |
|
124 <hlm:arg name="command" value="CLEAN"/> |
|
125 </hlm:argSet> |
|
126 <antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
127 <param name="build.system" value="${sf.spec.build.system}" /> |
|
128 <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" /> |
|
129 <reference refid="sbs.iterate.clean.var" torefid="sbs.var" /> |
|
130 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
|
131 <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" /> |
|
132 </antcall> |
|
133 --> |
|
134 |
|
135 <!-- Do BUILD --> |
|
136 <hlm:argSet id="sbs.main.iterate.sbs.var"> |
|
137 <hlm:arg name="config" value="@{item.sbs.splitconfig}" /> |
|
138 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" /> |
|
139 <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" /> |
|
140 </hlm:argSet> |
|
141 <antcall target="compile-main" inheritAll="false" inheritRefs="true"> |
|
142 <param name="build.system" value="${sf.spec.build.system}" /> |
|
143 <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" /> |
|
144 <reference refid="sbs.main.iterate.sbs.var" torefid="sbs.var" /> |
|
145 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" /> |
|
146 <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" /> |
|
147 </antcall> |
|
148 </sequential> |
|
149 </for> |
|
150 |
|
151 <!-- CHECK --> |
|
152 <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log"> |
|
153 <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c tools2_rel -c winscw -c armv5 -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/> |
|
154 <!-- argument of -j option can be parameterized with: ${number.of.threads} --> |
|
155 </exec> |
|
156 |
|
157 </target> |
|
158 |
|
159 |
|
160 <target name="sf-test-package"> |
93 <target name="sf-test-package"> |
161 |
|
162 <echo message="INFO Preparing package"/> |
94 <echo message="INFO Preparing package"/> |
163 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" output="${build.log.dir}/ATS_${build.id}_prep_package.log"> |
95 <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/" failonerror="false" output="${build.log.dir}/ATS_${build.id}_prep_package.log"> |
164 <arg value="hlm_prep_package.pl"/> |
96 <arg value="hlm_prep_package.pl"/> |
165 <arg value="--csv-file=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
97 <arg value="--csv-file=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/> |
166 <arg value="--bld-drive=${build.drive}"/> |
98 <arg value="--bld-drive=${build.drive}"/> |