sf-platform/build.xml
changeset 816 4fbec78cd97f
parent 808 8f386eeff5ad
child 827 b671b85a0863
equal deleted inserted replaced
815:3ae590eac695 816:4fbec78cd97f
   160     ==         - job_refs.ant.xml
   160     ==         - job_refs.ant.xml
   161     ==
   161     ==
   162     -->
   162     -->
   163   <target name="sf-os-compile" depends="sf-compile-options">
   163   <target name="sf-os-compile" depends="sf-compile-options">
   164 
   164 
   165         <hlm:argSet id="sbs.tools2.var">
   165     <hlm:argSet id="sbs.tools2.var">
   166                 <hlm:arg name="config" value="tools2_rel.whatlog" />
   166       <hlm:arg name="config" value="tools2_rel.whatlog" />
   167                 <hlm:arg name="singlejob" value="false" />
   167       <hlm:arg name="singlejob" value="false" />
   168                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   168       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   169                 <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   169       <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   170         </hlm:argSet>
   170     </hlm:argSet>
   171 
   171 
   172 		<hlm:argSet id="sbs.tools2.clean.var">
   172     <hlm:argSet id="sbs.tools2.clean.var">
   173                 <hlm:arg name="config" value="tools2_rel.whatlog" />
   173       <hlm:arg name="config" value="tools2_rel.whatlog" />
   174                 <hlm:arg name="singlejob" value="false" />
   174       <hlm:arg name="singlejob" value="false" />
   175                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   175       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   176 		<hlm:arg name="command" value="CLEAN --check" />
   176       <hlm:arg name="command" value="CLEAN --check" />
   177         </hlm:argSet>
   177     </hlm:argSet>
   178 
   178 
   179         <hlm:argSet id="sbs.tools.var">
   179     <hlm:argSet id="sbs.tools.var">
   180                 <hlm:arg name="config" value="tools_rel.whatlog" />
   180       <hlm:arg name="config" value="tools_rel.whatlog" />
   181                 <hlm:arg name="singlejob" value="true" />
   181       <hlm:arg name="singlejob" value="true" />
   182                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   182       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   183                 <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   183       <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   184         </hlm:argSet>
   184     </hlm:argSet>
   185 
   185 
   186 		<hlm:argSet id="sbs.tools.clean.var">
   186     <hlm:argSet id="sbs.tools.clean.var">
   187                 <hlm:arg name="config" value="tools_rel.whatlog" />
   187       <hlm:arg name="config" value="tools_rel.whatlog" />
   188                 <hlm:arg name="singlejob" value="true" />
   188       <hlm:arg name="singlejob" value="true" />
   189                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   189       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   190 		<hlm:arg name="command" value="CLEAN --check" />
   190       <hlm:arg name="command" value="CLEAN --check" />
   191         </hlm:argSet>
   191     </hlm:argSet>
   192 
   192 
   193         <hlm:argSet id="sbs.main.sbs.var">
   193     <hlm:argSet id="sbs.main.sbs.var">
   194                 <hlm:arg name="config" value="${sf.spec.sbs.config}" />
   194       <hlm:arg name="config" value="${sf.spec.sbs.config}" />
   195                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   195       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   196                 <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   196       <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   197         </hlm:argSet>
   197     </hlm:argSet>
   198 
   198 
   199 		<hlm:argSet id="sbs.main.clean.sbs.var">
   199     <hlm:argSet id="sbs.main.clean.sbs.var">
   200                 <hlm:arg name="config" value="${sf.spec.sbs.config}" />
   200       <hlm:arg name="config" value="${sf.spec.sbs.config}" />
   201                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   201       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   202 		<hlm:arg name="command" value="CLEAN --check" />
   202       <hlm:arg name="command" value="CLEAN --check" />
   203         </hlm:argSet>
   203     </hlm:argSet>
   204 		
   204 
   205 		<hlm:argSet id="sbs.main.what.sbs.var">
   205     <hlm:argSet id="sbs.main.what.sbs.var">
   206                 <hlm:arg name="config" value="${sf.spec.sbs.config}" />
   206       <hlm:arg name="config" value="${sf.spec.sbs.config}" />
   207                 <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   207       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   208 		<hlm:arg name="command" value="WHAT" />
   208       <hlm:arg name="command" value="WHAT" />
   209         </hlm:argSet>
   209     </hlm:argSet>
   210 
   210 
   211 		<!-- generate baseline dir list to allow delta creation -->
   211     <!-- generate baseline dir list to allow delta creation -->
   212 		<if><isset property="sf.os.compile.fast"/>
   212     <if><isset property="sf.os.compile.fast"/>
   213 			<then>
   213       <then>
   214 				<echo message="INFO [FAST COMPILE] Skipping baseline dir list generation"/>
   214         <echo message="INFO [FAST COMPILE] Skipping baseline dir list generation"/>
   215 			</then>
   215       </then>
   216 			<else>
   216       <else>
   217 				<antcall target="sf-list-dir" inheritAll="false">
   217         <antcall target="sf-list-dir" inheritAll="false">
   218 					<param name="sf.list.name" value="baseline"/>
   218           <param name="sf.list.name" value="baseline"/>
   219 				</antcall>
   219         </antcall>
   220 			</else>
   220       </else>
   221 		</if>
   221     </if>
   222 
   222     
   223 		<!-- OS what -->
   223     <!-- OS clean main build -->
   224 		<!--
   224     <if><istrue value="${sf.spec.baseline.clean}"/>
       
   225       <then>
   225         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   226         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   226                 <param name="build.system" value="${sf.spec.build.system}" />
   227           <param name="build.system" value="${sf.spec.build.system}" />
   227                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   228           <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   228                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   229           <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   229                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   230           <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   230                 <reference refid="sbs.main.what.sbs.var" torefid="sbs.var" />
   231           <reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
   231                 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   232           <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   232                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   233           <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   233         </antcall>
   234         </antcall>
   234 		-->
   235       </then>
   235 		
   236     </if>
   236 		<!-- OS clean main build -->
   237 
   237 		<if><istrue value="${sf.spec.baseline.clean}"/>
   238     <if><isset property="sf.os.compile.fast"/>
   238 			<then>
   239       <then>
   239 				<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   240         <echo message="INFO [FAST COMPILE] Skipping baseline vs post-clean delta generation"/>
   240 						<param name="build.system" value="${sf.spec.build.system}" />
   241       </then>
   241 						<param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   242       <else>
   242 						<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   243         <antcall target="sf-list-dir" inheritAll="false">
   243 						<param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   244           <param name="sf.list.name" value="post-clean"/>
   244 						<reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
   245         </antcall>
   245 						<reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   246         <!-- what has been cleaned from baseline PDK by sos model -->
   246 						<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   247         <antcall target="sf-delta-dir" inheritAll="false">
   247 				</antcall>
   248           <param name="sf.list_a.name" value="baseline"/>
   248 			</then>
   249           <param name="sf.list_b.name" value="post-clean"/>
   249 		</if>
   250         </antcall>
   250 		
   251       </else>
   251 		<if><isset property="sf.os.compile.fast"/>
   252     </if>
   252 			<then>
   253     
   253 				<echo message="INFO [FAST COMPILE] Skipping baseline vs post-clean delta generation"/>
   254     <if><isset property="sf.os.compile.fast"/>
   254 			</then>
   255       <then>
   255 			<else>
   256         <echo message="INFO [FAST COMPILE] Skipping Tools/Tools2 builds"/>
   256 				<antcall target="sf-list-dir" inheritAll="false">
   257       </then>
   257 					<param name="sf.list.name" value="post-clean"/>
   258       <else>
   258 				</antcall>
   259         <!-- OS tools2 build first-->
   259 				<!-- what has been cleaned from baseline PDK by sos model -->
   260         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   260 				<antcall target="sf-delta-dir" inheritAll="false">
   261           <param name="build.system" value="${sf.spec.build.system}" />
   261 					<param name="sf.list_a.name" value="baseline"/>
   262           <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   262 					<param name="sf.list_b.name" value="post-clean"/>
   263           <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   263 				</antcall>		
   264           <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   264 			</else>
   265           <reference refid="sbs.tools2.var" torefid="sbs.var" />
   265 		</if>
   266           <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   266 		
   267           <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   267 		<if><isset property="sf.os.compile.fast"/>
   268         </antcall>
   268 			<then>
   269 
   269 				<echo message="INFO [FAST COMPILE] Skipping Tools/Tools2 builds"/>
   270         <antcall target="sf-list-dir" inheritAll="false">
   270 			</then>
   271           <param name="sf.list.name" value="post-build-tools2"/>
   271 			<else>
   272         </antcall>
   272 				<!-- OS tools2 build first-->
   273 
   273 				<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   274         <!-- OS tools build after tools2 -->
   274 						<param name="build.system" value="${sf.spec.build.system}" />
   275         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   275 						<param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   276           <param name="build.system" value="${sf.spec.build.system}" />
   276 						<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   277           <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   277 						<param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   278           <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   278 						<reference refid="sbs.tools2.var" torefid="sbs.var" />
   279           <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   279 						<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   280           <reference refid="sbs.tools.var" torefid="sbs.var" />
   280 						<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   281           <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
   281 				</antcall>
   282           <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   282 
   283         </antcall>
   283 				<antcall target="sf-list-dir" inheritAll="false">
   284 
   284 					<param name="sf.list.name" value="post-build-tools2"/>
   285         <antcall target="sf-list-dir" inheritAll="false">
   285 				</antcall>
   286           <param name="sf.list.name" value="post-build-tools"/>
   286 				
   287         </antcall>
   287 				
   288       </else>
   288 				<!-- OS tools build after tools2 -->
   289     </if>
   289 				<antcall target="compile-main" inheritAll="false" inheritRefs="true">
   290 
   290 						<param name="build.system" value="${sf.spec.build.system}" />
   291     <if><istrue value="${sf.os.compile.iterate}"/>
   291 						<param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
       
   292 						<param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
       
   293 						<param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
       
   294 						<reference refid="sbs.tools.var" torefid="sbs.var" />
       
   295 						<reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
   296 						<reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
       
   297 				</antcall>
       
   298 
       
   299 				<antcall target="sf-list-dir" inheritAll="false">
       
   300 					<param name="sf.list.name" value="post-build-tools"/>
       
   301 				</antcall>
       
   302 			</else>
       
   303 		</if>
       
   304 		<if><istrue value="${sf.os.compile.iterate}"/>
       
   305       <then>
   292       <then>
   306         <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.sbs.splitconfig">
   293         <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.sbs.splitconfig">
   307           <sequential>
   294           <sequential>
   308   				<echo message="INFO [Iterative compile] @{sf.spec.sbs.splitconfig}"/>
   295             <echo message="INFO [Iterative compile] @{sf.spec.sbs.splitconfig}"/>
   309   
   296 
   310           <hlm:argSet id="sbs.main.iterate.sbs.var">
   297             <hlm:argSet id="sbs.main.iterate.sbs.var">
   311                   <hlm:arg name="config" value="@{sf.spec.sbs.splitconfig}" />
   298               <hlm:arg name="config" value="@{sf.spec.sbs.splitconfig}" />
   312                   <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   299               <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   313                   <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   300               <hlm:arg name="retry-limit" value="${sf.spec.sbs.retry.limit}" />
   314           </hlm:argSet>
   301             </hlm:argSet>
   315           <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   302             <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   316                   <param name="build.system" value="${sf.spec.build.system}" />
   303               <param name="build.system" value="${sf.spec.build.system}" />
   317                   <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   304               <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   318                   <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   305               <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   319                   <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   306               <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   320                   <reference refid="sbs.main.iterate.sbs.var" torefid="sbs.var" />
   307               <reference refid="sbs.main.iterate.sbs.var" torefid="sbs.var" />
   321                   <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   308               <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   322                   <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   309               <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   323           </antcall>                
   310             </antcall>
   324           </sequential>
   311           </sequential>
   325         </for>        
   312         </for>
   326       </then>
   313       </then>
   327 		  <else>
   314       <else>
   328         <!-- OS main build -->
   315         <!-- OS main build -->
   329         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   316         <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   330                 <param name="build.system" value="${sf.spec.build.system}" />
   317           <param name="build.system" value="${sf.spec.build.system}" />
   331                 <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   318           <param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" />
   332                 <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   319           <param name="sysdef.configurations.list" value="${sf.spec.os.sysdef.clean.configurations.list}" />
   333                 <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   320           <param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/>
   334                 <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   321           <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
   335                 <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   322           <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   336                 <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   323           <reference refid="sf.spec.os.system.definition.files" torefid="system.definition.files" />
   337         </antcall>
   324         </antcall>
   338 		  </else>
   325       </else>
   339     </if>		
   326     </if>
   340 		<if><isset property="sf.os.compile.fast"/>
   327 
   341 			<then>
   328     <if><isset property="sf.os.compile.fast"/>
   342 				<echo message="INFO [FAST COMPILE] Skipping delta and intersect list generation"/>
   329       <then>
   343 			</then>
   330         <echo message="INFO [FAST COMPILE] Skipping delta and intersect list generation"/>
   344 			<else>
   331       </then>
   345 				<antcall target="sf-list-dir" inheritAll="false">
   332       <else>
   346 					<param name="sf.list.name" value="post-build-main"/>
   333         <antcall target="sf-list-dir" inheritAll="false">
   347 				</antcall>
   334           <param name="sf.list.name" value="post-build-main"/>
   348 				
   335         </antcall>
   349 				<!-- what has been built in tools2+tools+main -->
   336         
   350 				<antcall target="sf-delta-dir" inheritAll="false">
   337         <!-- what has been built in tools2+tools+main -->
   351 					<param name="sf.list_a.name" value="post-clean"/>
   338         <antcall target="sf-delta-dir" inheritAll="false">
   352 					<param name="sf.list_b.name" value="post-build-main"/>
   339           <param name="sf.list_a.name" value="post-clean"/>
   353 				</antcall>
   340           <param name="sf.list_b.name" value="post-build-main"/>
   354 				
   341         </antcall>
   355 				<!-- what has been cleaned and rebuilt -->
   342         
   356 				<antcall target="sf-intersect-dir" inheritAll="false">
   343         <!-- what has been cleaned and rebuilt -->
   357 					<param name="sf.list_a.name" value="post-clean_delta"/>       <!-- clean list -->
   344         <antcall target="sf-intersect-dir" inheritAll="false">
   358 					<param name="sf.list_b.name" value="post-build-main_delta"/>  <!-- built list -->
   345           <param name="sf.list_a.name" value="post-clean_delta"/>       <!-- clean list -->
   359 				</antcall>
   346           <param name="sf.list_b.name" value="post-build-main_delta"/>  <!-- built list -->
   360 				
   347         </antcall>
   361 				<!-- what has been cleaned and not rebuilt -->
   348       </else>
   362 			</else>
   349     </if>
   363 		</if>
   350     
   364 		
       
   365   </target>
   351   </target>
   366 
   352 
   367   <!--
   353   <!--
   368     == Name: SF-S60-COMPILE
   354     == Name: SF-S60-COMPILE
   369     ==
   355     ==