sf-package/build.xml
changeset 346 f9ce0418735b
parent 342 626d3847cf2a
child 593 4fc8d6b0b184
equal deleted inserted replaced
316:11662e122465 346:f9ce0418735b
    11   
    11   
    12   <!-- import package references -->
    12   <!-- import package references -->
    13   <import file="${sf.package.config.dir}/package_refs.ant.xml" />
    13   <import file="${sf.package.config.dir}/package_refs.ant.xml" />
    14   
    14   
    15   <target name="sf-compile">
    15   <target name="sf-compile">
       
    16   
       
    17     <!-- Check that package_definition is not in v 3.0.0 otherwise transforms it to 2.0.1 -->
       
    18     <echo message="Check that model file is in a version usable by Raptor"/>
       
    19     <exec executable="perl" dir="${sf.common.config.dir}/sysdefdowngrade" failonerror="false" output="${build.log.dir}/sysdefdowngrade.log">
       
    20       <arg value="sysdefdowngrade.pl"/>
       
    21       <arg value="--model=${build.drive}/${sf.spec.systemdefinition.location}"/>
       
    22       <arg value="--sources=${sf.spec.sourcesync.sourcespecdir}/${sf.spec.sourcesync.sourcespecfile}"/>
       
    23     </exec>
       
    24     
    16     <runtarget target="sf-package-compile"/>
    25     <runtarget target="sf-package-compile"/>
    17   </target>
    26   </target>
    18   
    27   
    19   <target name="sf-package-compile">
    28   <target name="sf-package-compile">
    20     
    29     
    21     <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
    30     <hlm:sbsMakeOptions engine="gmake" id="sbs.fullbuild.options"/>
    22     <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
    31     <hlm:sbsMakeOptions engine="gmake" id="sbs.toolsbuild.options"/>
    23     
    32     
    24     <!-- CLEAN -->
    33     <!-- BUILD tools2_rel CLEAN -->
    25     <hlm:argSet id="sbs.main.clean.sbs.var">
    34     <!--
    26       <hlm:arg name="config" value="${sf.spec.sbs.config}" />
    35     <hlm:argSet id="sbs.tools2_rel.clean.var">
    27       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    36       <hlm:arg name="config" value="tools2_rel" />
    28       <hlm:arg name="command" value="CLEAN" />
    37       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}"/>
       
    38       <hlm:arg name="command" value="CLEAN"/>
    29     </hlm:argSet>
    39     </hlm:argSet>
    30     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    40     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    31       <param name="build.system" value="${sf.spec.build.system}" />
    41       <param name="build.system" value="${sf.spec.build.system}" />
    32       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    33       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    42       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    34       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
    43       <reference refid="sbs.tools2_rel.clean.var" torefid="sbs.var" />
    35       <reference refid="sbs.main.clean.sbs.var" torefid="sbs.var" />
    44       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    45       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    46     </antcall>
       
    47     -->
       
    48     
       
    49     <!-- BUILD tools2_rel -->
       
    50     <hlm:argSet id="sbs.tools2_rel.var">
       
    51       <hlm:arg name="config" value="tools2_rel.whatlog" />
       
    52       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    53     </hlm:argSet>
       
    54     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    55       <param name="build.system" value="${sf.spec.build.system}" />
       
    56       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    57       <reference refid="sbs.tools2_rel.var" torefid="sbs.var" />
       
    58       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    59       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    60     </antcall>
       
    61     
       
    62     <!-- BUILD tools CLEAN -->
       
    63     <!-- 
       
    64     <hlm:argSet id="sbs.tools.clean.var">
       
    65       <hlm:arg name="config" value="tools"/>
       
    66       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    67       <hlm:arg name="command" value="CLEAN"/>
       
    68     </hlm:argSet>
       
    69     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    70       <param name="build.system" value="${sf.spec.build.system}" />
       
    71       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    72       <reference refid="sbs.tools.clean.var" torefid="sbs.var" />
       
    73       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    74       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    75     </antcall>
       
    76     -->
       
    77     
       
    78     <!-- BUILD tools -->
       
    79     <!-- 
       
    80     <hlm:argSet id="sbs.tools.var">
       
    81       <hlm:arg name="config" value="tools.whatlog"/>
       
    82       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    83     </hlm:argSet>
       
    84     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    85       <param name="build.system" value="${sf.spec.build.system}" />
       
    86       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    87       <reference refid="sbs.tools.var" torefid="sbs.var" />
       
    88       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    89       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    90     </antcall>
       
    91     -->
       
    92     
       
    93     <!-- BUILD winscw CLEAN -->
       
    94     <!--
       
    95     <hlm:argSet id="sbs.winscw.clean.var">
       
    96       <hlm:arg name="config" value="winscw" />
       
    97       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    98       <hlm:arg name="command" value="CLEAN"/>
       
    99     </hlm:argSet>
       
   100     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   101       <param name="build.system" value="${sf.spec.build.system}" />
       
   102       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
   103       <reference refid="sbs.winscw.clean.var" torefid="sbs.var" />
       
   104       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
   105       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
   106     </antcall>
       
   107     -->
       
   108     
       
   109     <!-- BUILD winscw -->
       
   110     <hlm:argSet id="sbs.winscw.var">
       
   111       <hlm:arg name="config" value="winscw.whatlog" />
       
   112       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
   113     </hlm:argSet>
       
   114     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   115       <param name="build.system" value="${sf.spec.build.system}" />
       
   116       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
   117       <reference refid="sbs.winscw.var" torefid="sbs.var" />
    36       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   118       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
    37       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
   119       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    38     </antcall>
   120     </antcall>
    39     
   121     
    40     <!-- BUILD tools2 -->
   122     <!-- BUILD armv5 CLEAN -->
    41     <hlm:argSet id="sbs.tools2.var">
   123     <!--
    42       <hlm:arg name="config" value="tools2_rel" />
   124     <hlm:argSet id="sbs.armv5.clean.var">
    43       <hlm:arg name="singlejob" value="false" />
   125       <hlm:arg name="config" value="armv5" />
       
   126       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
   127       <hlm:arg name="command" value="CLEAN"/>
       
   128     </hlm:argSet>
       
   129     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
   130       <param name="build.system" value="${sf.spec.build.system}" />
       
   131       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
   132       <reference refid="sbs.armv5.clean.var" torefid="sbs.var" />
       
   133       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
       
   134       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
   135     </antcall>
       
   136     -->
       
   137     
       
   138     <!-- BUILD armv5 -->
       
   139     <hlm:argSet id="sbs.armv5.var">
       
   140       <hlm:arg name="config" value="armv5.whatlog" />
    44       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
   141       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
    45     </hlm:argSet>
   142     </hlm:argSet>
    46     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
   143     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
    47       <param name="build.system" value="${sf.spec.build.system}" />
   144       <param name="build.system" value="${sf.spec.build.system}" />
    48       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    49       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
   145       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
    50       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
   146       <reference refid="sbs.armv5.var" torefid="sbs.var" />
    51       <reference refid="sbs.tools2.var" torefid="sbs.var" />
       
    52       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    53       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    54     </antcall>
       
    55     
       
    56     <!-- BUILD tools -->
       
    57     <hlm:argSet id="sbs.tools.var">
       
    58       <hlm:arg name="config" value="tools_rel" />
       
    59       <hlm:arg name="singlejob" value="true" />
       
    60       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    61     </hlm:argSet>
       
    62     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    63       <param name="build.system" value="${sf.spec.build.system}" />
       
    64       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    65       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    66       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
       
    67       <reference refid="sbs.tools.var" torefid="sbs.var" />
       
    68       <reference refid="sbs.toolsbuild.options" torefid="sbs.make.options" />
       
    69       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
       
    70     </antcall>
       
    71     
       
    72     <!-- BUILD -->
       
    73     <hlm:argSet id="sbs.main.sbs.var">
       
    74       <hlm:arg name="config" value="${sf.spec.sbs.config}.whatlog" />
       
    75       <hlm:arg name="enable-filter" value="${sf.spec.logs.raptorfilter.enable}" />
       
    76     </hlm:argSet>
       
    77     <antcall target="compile-main" inheritAll="false" inheritRefs="true">
       
    78       <param name="build.system" value="${sf.spec.build.system}" />
       
    79       <!-- param name="compile.sysdef.dtd.stub" value="${sf.spec.os.sysdef.dtd}" / -->
       
    80       <param name="sysdef.configurations.list" value="${sf.spec.sysdef.configurations.list}" />
       
    81       <!-- param name="sf.spec.sysdef.version" value ="${sf.spec.os.sysdef.version}"/ -->
       
    82       <reference refid="sbs.main.sbs.var" torefid="sbs.var" />
       
    83       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
   147       <reference refid="sbs.fullbuild.options" torefid="sbs.make.options" />
    84       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
   148       <reference refid="sf.spec.system.definition.files" torefid="system.definition.files" />
    85     </antcall>
   149     </antcall>
    86     
   150     
    87     <!-- CHECK -->
   151     <!-- CHECK -->
    88     <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
   152     <exec executable="cmd" dir="${build.drive}/" output="${build.drive}/output\logs\build_check_compile.log">
    89       <arg value="/c sbs.bat -s ${build.drive}/output\build\canonical_system_definition_SF.xml -k -c ${sf.spec.sbs.config} -j 32 --check -m ${build.drive}/output\logs\build_check_Makefile"/>
   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"/>
    90       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
   154       <!-- argument of -j option can be parameterized with: ${number.of.threads} -->
    91     </exec>
   155     </exec>
    92     
   156     
    93   </target>
   157   </target>
    94   
   158