common/build.xml
changeset 792 893b85cda81b
parent 721 555e9b4085ea
child 829 b9c988316957
--- a/common/build.xml	Thu Nov 26 16:02:05 2009 +0000
+++ b/common/build.xml	Wed Nov 25 14:14:19 2009 +0000
@@ -573,67 +573,5 @@
         <copy file="${sf.common.config.dir}/tools/brag/brag.xsl" toDir="${build.log.dir}/summary/"/>
     </target>
        
-
-    <target name="sf-rombuild">
-      <!-- TODO If ANT gets a better way to do conditions based on value then use it instead! -->
-      <property name="sf.rombuild.dir" value="${build.drive}/sf/os/kernelhwsrv/kernel/eka/rombuild"/>
-      
-      <for list="${sf.spec.sbs.config}" delimiter="," param="sf.spec.sbs.config.variant">
-          <sequential>
-          <propertyregex property="udeb" input="@{sf.spec.sbs.config.variant}" regexp="(armv5$|armv5\.|armv5_udeb)" select="\1"/>
-          <propertyregex property="urel" input="@{sf.spec.sbs.config.variant}" regexp="(armv5$|armv5\.|armv5_urel)" select="\1"/>
-          </sequential>
-      </for> 
-      
-      <condition property="sf.spec.sbs.config.expanded" value="udeb">
-      <and><isset property="udeb"/><not><isset property="urel"/></not></and>
-      </condition>
-      
-      <condition property="sf.spec.sbs.config.expanded" value="urel">
-      <and><isset property="urel"/><not><isset property="udeb"/></not></and>
-      </condition>
-      
-      <condition property="sf.spec.sbs.config.expanded" value="udeb,urel">
-      <and><isset property="udeb"/><isset property="urel"/></and>
-      </condition>
-      
-      <if><isset property="sf.spec.sbs.config.expanded"/>
-      <then>
-          <echo message="INFO Found armv5, building ${sf.spec.sbs.config.expanded}"/>      
-          
-          <for list="${sf.spec.referenceroms.list}" delimiter="," param="sf.spec.referenceroms.variant">
-              <sequential>
-              <for list="${sf.spec.sbs.config.expanded}" delimiter="," param="sf.spec.sbs.config.expanded.i">
-                  <sequential>
-                      <echo message="INFO Building textshell ROM variant @{sf.spec.sbs.config.expanded.i} @{sf.spec.referenceroms.variant}"/>
-                      <exec executable="cmd" dir="${sf.rombuild.dir}" failonerror="false" 
-                      output="${build.log.dir}/ROM_@{sf.spec.referenceroms.variant}_@{sf.spec.sbs.config.expanded.i}_out.log" logError="true">
-                          <arg value="/c"/>
-                          <arg value="rom --variant=@{sf.spec.referenceroms.variant} --inst=armv5 --build=@{sf.spec.sbs.config.expanded.i} --type=tshell"/>
-                      </exec>
-                      
-                      <if><available  file="${sf.rombuild.dir}/ROMBUILD.LOG"/>
-                      <then>
-                          <move file="${sf.rombuild.dir}/ROMBUILD.LOG" tofile="${build.log.dir}/ROMBUILD_@{sf.spec.referenceroms.variant}_@{sf.spec.sbs.config.expanded.i}.log"/>
-                      </then>
-                      <else>
-                          <echo message="ERROR Failed to build @{sf.spec.sbs.config.expanded.i} ROM for @{sf.spec.referenceroms.variant} variant"/>
-                      </else>
-                      </if>
-                  </sequential>
-             </for>
-             </sequential>
-          </for>
-          
-          <move todir="${build.drive}/epoc32/rom/"  verbose="true" failonerror="false">
-            <fileset dir="${sf.rombuild.dir}">
-              <include name="**/*.IMG"/>
-            </fileset>
-          </move>
-      </then>
-      <else><echo message="INFO ROM Build requested but no valid build variants defined by sf.spec.sbs.config. Skipping."/></else>
-      </if>
-    </target>
-
 </project>