sf-platform/compile.ant.xml
changeset 1100 561033b10e0f
parent 1048 f3a459ab2cfe
child 1101 9485f8e9a74c
equal deleted inserted replaced
1080:35aea233d3f7 1100:561033b10e0f
    67       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    67       <antcall target="sf-do-target-compile" inheritAll="false" inheritRefs="true">
    68           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    68           <param name="i.sf.spec.sbs.config" value="${sf.spec.sbs.config}" />
    69       </antcall>
    69       </antcall>
    70   
    70   
    71       <!-- Export model to BOM, as generate-layers target is no longer called from compile-main target -->
    71       <!-- Export model to BOM, as generate-layers target is no longer called from compile-main target -->
    72       <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configurations.list}.xml" todir="${build.log.dir}/BOM/"/>
    72       <!-- Name of file in BOM should always be system_model.xml, so that it can be predictably re-used again -->
       
    73       <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configurations.list}.xml" tofile="${build.log.dir}/BOM/system_model.xml"/>
    73   </target>
    74   </target>
    74 
    75 
    75   <!-- perform export only first to assist when parallel makefile parsing -->
    76   <!-- perform export only first to assist when parallel makefile parsing -->
    76   <target name="sf-do-full-export">
    77   <target name="sf-do-full-export">
       
    78   
       
    79     <!-- turn comma separated list into sbs friendly -c list, and _ separated list for friendly log names -->
       
    80     <propertyregex property="i.sf.spec.sbs.config.expanded"         override="true" input="${sf.spec.sbs.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
       
    81     <propertyregex property="i.sf.spec.sbs.tools.config.expanded"   override="true" input="${sf.spec.sbs.tools.config}" regexp="(,)" replace=" -c " defaultValue="${sf.spec.sbs.config}" global="true"  casesensitive="false"/>
       
    82 
    77     <hlm:sbsinput id="sf.export">
    83     <hlm:sbsinput id="sf.export">
    78         <sbsOptions>
    84         <sbsOptions>
       
    85             <arg line="-c ${i.sf.spec.sbs.config.expanded} -c ${i.sf.spec.sbs.tools.config.expanded}"/>
    79             <arg line="-k" />
    86             <arg line="-k" />
    80             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    87             <arg line="-j ${sf.spec.sbs.numberofjobs}"/>
    81             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    88             <arg line="-t ${sf.spec.sbs.retry.limit}"/>
    82             <arg name="--logfile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}.log" />
    89             <arg name="--logfile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}.log" />
    83             <arg name="--makefile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}_Makefile" />
    90             <arg name="--makefile" value="${compile.log.dir}/${build.id}_${sf.spec.os.sysdef.clean.configurations.list}_compile_${sf.export.stage.name}_Makefile" />