buildframework/helium/tools/rombuild/rombuild.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
child 593 4367a1b2db65
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    32     <!-- <property name="rombuild.makefile.name" value="mc_imaker_conf.mk" /> -->
    32     <!-- <property name="rombuild.makefile.name" value="mc_imaker_conf.mk" /> -->
    33     <property name="imaker.command" location="${build.drive}\epoc32\tools\imaker.cmd" />
    33     <property name="imaker.command" location="${build.drive}\epoc32\tools\imaker.cmd" />
    34     <property name="ee.makefile.target" value="ee_roms" />
    34     <property name="ee.makefile.target" value="ee_roms" />
    35     <property name="subcon.makefile.target" value="subcon_roms" />
    35     <property name="subcon.makefile.target" value="subcon_roms" />
    36     <property name="trace.makefile.target" value="trace_roms" />
    36     <property name="trace.makefile.target" value="trace_roms" />
    37     <property name="ee_roms.log.file" value="${build.log.dir}/${build.id}_ee_roms.log" />
    37     <property name="ee_roms.log.file" value="${roms.log.dir}/${build.id}_ee_roms.log" />
    38     <property name="trace.log.file" value="${build.log.dir}/${build.id}_trace_roms.log" />
    38     <property name="trace.log.file" value="${roms.log.dir}/${build.id}_trace_roms.log" />
    39     <property name="subcon.log.file" value="${build.log.dir}/${build.id}_subcon_roms.log" />
    39     <property name="subcon.log.file" value="${roms.log.dir}/${build.id}_subcon_roms.log" />
    40 
    40 
    41     <!-- Properties for image-creation target which is being used by IDOs -->
    41     <!-- Properties for image-creation target which is being used by IDOs -->
    42     <property name="image_creation.copyto" value="${build.output.dir}/images" />
    42     <property name="image_creation.copyto" value="${build.output.dir}/images" />
    43     <property name="image_creation.drive" value="${build.drive}" />
    43     <property name="image_creation.drive" value="${build.drive}" />
    44     <!-- Property for variant-image-creation -->
    44     <!-- Property for variant-image-creation -->
   203 
   203 
   204 
   204 
   205     <!-- Creates ee-images
   205     <!-- Creates ee-images
   206      -->
   206      -->
   207     <target name="ee-roms" depends="rombuild-create-makefile" unless="no.ncp">
   207     <target name="ee-roms" depends="rombuild-create-makefile" unless="no.ncp">
   208         <hlm:startSpecificLogMacro name="${ee_roms.log.file}" />
   208         <hlm:startSpecificLogMacro name="${ee_roms.log.file}" phase="roms"/>
   209         <hlm:preECImakerMacro />
   209         <hlm:preECImakerMacro />
   210         <for list="${product.list}" delimiter="," param="product.name">
   210         <for list="${product.list}" delimiter="," param="product.name">
   211             <sequential>
   211             <sequential>
   212                 <hlm:rombuildImakerMacro product="@{product.name}" target="${ee.makefile.target}" />
   212                 <hlm:rombuildImakerMacro product="@{product.name}" target="${ee.makefile.target}" />
   213             </sequential>
   213             </sequential>
   214         </for>
   214         </for>
   215         <hlm:ecImakerMacro makefile.target="${ee.makefile.target}" />
   215         <hlm:ecImakerMacro makefile.target="${ee.makefile.target}" />
   216         <hlm:stopSpecificLogMacro name="${ee_roms.log.file}" />
   216         <hlm:stopSpecificLogMacro name="${ee_roms.log.file}" phase="roms"/>
   217         <hlm:metadatarecord database="${metadata.dbfile}">
   217         <hlm:metadatarecord database="${metadata.dbfile}">
   218             <hlm:textmetadatainput>
   218             <hlm:textmetadatainput>
   219                 <fileset casesensitive="false" file="${ee_roms.log.file}" />
   219                 <fileset casesensitive="false" file="${ee_roms.log.file}" />
   220                 <metadatafilterset refid="filterset.ee.roms" />
   220                 <metadatafilterset refid="filterset.ee.roms" />
   221             </hlm:textmetadatainput>
   221             </hlm:textmetadatainput>
   226     </target>
   226     </target>
   227 
   227 
   228 
   228 
   229     <!-- Creates subcon certified rom images with imaker tool -->
   229     <!-- Creates subcon certified rom images with imaker tool -->
   230     <target name="subcon-roms" depends="rombuild-create-makefile" unless="no.ncp">
   230     <target name="subcon-roms" depends="rombuild-create-makefile" unless="no.ncp">
   231         <hlm:startSpecificLogMacro name="${subcon.log.file}" />
   231         <hlm:startSpecificLogMacro name="${subcon.log.file}" phase="roms"/>
   232         <mkdir dir="${subcon.build.drive}/output/development_flash_images/engineering_english/${product.name}/subcon" />
   232         <mkdir dir="${subcon.build.drive}/output/development_flash_images/engineering_english/${product.name}/subcon" />
   233         <hlm:preECImakerMacro />
   233         <hlm:preECImakerMacro />
   234         <for list="${product.list}" delimiter="," param="product.name">
   234         <for list="${product.list}" delimiter="," param="product.name">
   235             <sequential>
   235             <sequential>
   236                 <hlm:rombuildImakerMacro product="@{product.name}" target="${subcon.makefile.target}" />
   236                 <hlm:rombuildImakerMacro product="@{product.name}" target="${subcon.makefile.target}" />
   237             </sequential>
   237             </sequential>
   238         </for>
   238         </for>
   239         <hlm:ecImakerMacro makefile.target="${ee.makefile.target}" />
   239         <hlm:ecImakerMacro makefile.target="${ee.makefile.target}" />
   240         <hlm:stopSpecificLogMacro name="${subcon.log.file}" />
   240         <hlm:stopSpecificLogMacro name="${subcon.log.file}" phase="roms"/>
   241         <hlm:metadatarecord database="${metadata.dbfile}">
   241         <hlm:metadatarecord database="${metadata.dbfile}">
   242             <hlm:textmetadatainput>
   242             <hlm:textmetadatainput>
   243                 <fileset casesensitive="false" file= "${subcon.log.file}"/>
   243                 <fileset casesensitive="false" file= "${subcon.log.file}"/>
   244                 <metadatafilterset refid="filterset.subcon.roms" />
   244                 <metadatafilterset refid="filterset.subcon.roms" />
   245             </hlm:textmetadatainput>
   245             </hlm:textmetadatainput>
   280 
   280 
   281 
   281 
   282 
   282 
   283     <!-- Creates trace rom images -->
   283     <!-- Creates trace rom images -->
   284     <target name="trace-roms" depends="rombuild-create-makefile" unless="no.ncp">
   284     <target name="trace-roms" depends="rombuild-create-makefile" unless="no.ncp">
   285         <hlm:startSpecificLogMacro name="${trace.log.file}" />
   285         <hlm:startSpecificLogMacro name="${trace.log.file}" phase="roms"/>
   286         <hlm:preECImakerMacro />
   286         <hlm:preECImakerMacro />
   287         <for list="${product.list}" delimiter="," param="product.name">
   287         <for list="${product.list}" delimiter="," param="product.name">
   288             <sequential>
   288             <sequential>
   289                 <hlm:rombuildImakerMacro product="@{product.name}" target="${trace.makefile.target}" />
   289                 <hlm:rombuildImakerMacro product="@{product.name}" target="${trace.makefile.target}" />
   290             </sequential>
   290             </sequential>
   291         </for>
   291         </for>
   292         <hlm:ecImakerMacro makefile.target="${ee.makefile.target}" />
   292         <hlm:ecImakerMacro makefile.target="${ee.makefile.target}" />
   293         <hlm:stopSpecificLogMacro name="${trace.log.file}" />
   293         <hlm:stopSpecificLogMacro name="${trace.log.file}" phase="roms"/>
   294         <!-- Todo: Make sure that logfilter is added to the filterset -->
   294         <!-- Todo: Make sure that logfilter is added to the filterset -->
   295         <hlm:metadatarecord database="${metadata.dbfile}">
   295         <hlm:metadatarecord database="${metadata.dbfile}">
   296             <hlm:textmetadatainput>
   296             <hlm:textmetadatainput>
   297                 <fileset casesensitive="false" file="${trace.log.file}" />
   297                 <fileset casesensitive="false" file="${trace.log.file}" />
   298                 <metadatafilterset refid="filterset.trace.rom" />
   298                 <metadatafilterset refid="filterset.trace.rom" />
   329                 <and>
   329                 <and>
   330                     <equals arg1="${build.system}" arg2="ec-helium" />
   330                     <equals arg1="${build.system}" arg2="ec-helium" />
   331                     <isset property="rom.dryrun" />
   331                     <isset property="rom.dryrun" />
   332                 </and>
   332                 </and>
   333                 <then>
   333                 <then>
   334                     <exec executable="python" dir="${build.drive}/" failonerror="${failonerror}">
       
   335                         <arg line="${helium.dir}/tools/rombuild/dryrun_parser.py ${build.drive}/dryrun_out.txt ${build.drive}/@{makefile.target}.make @{makefile.target}" />
       
   336                     </exec>
       
   337                     <antcall target="compile-ec-helium">
   334                     <antcall target="compile-ec-helium">
   338                         <param name="skip.compile-ec-patch" value="yes" />
   335                         <param name="skip.compile-ec-patch" value="yes" />
   339                         <param name="sysdef.configuration" value="@{makefile.target}" />
   336                         <param name="sysdef.configuration" value="@{makefile.target}" />
   340                         <param name="ec.makefile.file" location="${build.drive}/@{makefile.target}.make" />
   337                         <param name="ec.makefile.file" location="${build.drive}/@{makefile.target}.make" />
   341                     </antcall>
   338                     </antcall>