|
1 .. index:: |
|
2 module: Configuring CTC for SBS |
|
3 |
|
4 ======================= |
|
5 Configuring CTC for SBS |
|
6 ======================= |
|
7 |
|
8 The following commands will generate mon.sym files in the root of your build area which are sent to the ATS server to generate coverage information. |
|
9 |
|
10 Clean components: |
|
11 |
|
12 hlm compile-main -Dbuild.drive=z: -Dsysdef.configurations.list=build_ctc_clean -Dbuild.system=sbs |
|
13 |
|
14 Build for CTC: |
|
15 |
|
16 hlm compile-main -Dbuild.drive=z: -Dsysdef.configurations.list=build_ctc -Dctc.enabled=true -Dbuild.system=sbs |
|
17 |
|
18 Ant configuration: |
|
19 |
|
20 .. code-block:: xml |
|
21 |
|
22 <hlm:sbsoptions id="commonSBS"> |
|
23 <arg line="-k" /> |
|
24 |
|
25 <hlm:sbsoptions id="armv5_CTC_SBS"> |
|
26 <argset refid="commonSBS" /> |
|
27 <arg line="-c armv5_udeb" /> |
|
28 </hlm:sbsoptions> |
|
29 |
|
30 <hlm:sbsinput id="armv5-ctc-sbs"> |
|
31 <sbsoptions refid="armv5_CTC_SBS" /> |
|
32 </hlm:sbsinput> |
|
33 |
|
34 <hlm:sbsinput id="build_ctc_input_armv5"> |
|
35 <sbsInput refid="armv5-ctc-${build.system}" /> |
|
36 <sbsOptions> |
|
37 <arg name="--logfile" value="${compile.log.dir}/${build.id}_armv5_build_ctc.log" /> |
|
38 </sbsOptions> |
|
39 </hlm:sbsinput> |
|
40 |
|
41 <hlm:sbsbuild id="sbs.build_ctc"> |
|
42 <sbsInput refid="build_ctc_input_armv5" /> |
|
43 </hlm:sbsbuild> |
|
44 |
|
45 <hlm:sbsoptions id="cleanCommon"> |
|
46 <arg line="REALLYCLEAN" /> |
|
47 <arg line="-c armv5" /> |
|
48 </hlm:sbsoptions> |
|
49 |
|
50 <hlm:sbsoptions id="armv5Clean"> |
|
51 <argset refid="cleanCommon" /> |
|
52 </hlm:sbsoptions> |
|
53 |
|
54 <hlm:sbsinput id="armv5-sbs-clean"> |
|
55 <sbsoptions refid="armv5Clean" /> |
|
56 </hlm:sbsinput> |
|
57 |
|
58 <hlm:sbsinput id="build_input_clean_armv5"> |
|
59 <sbsInput refid="armv5-${build.system}-clean" /> |
|
60 <sbsOptions> |
|
61 <arg name="--logfile" value="${compile.log.dir}/${build.id}_armv5_build_clean.log" /> |
|
62 <arg name="--makefile" value="${compile.log.dir}/${build.id}_armv5_build_clean" /> |
|
63 </sbsOptions> |
|
64 </hlm:sbsinput> |
|
65 |
|
66 <hlm:sbsbuild id="sbs.build_ctc_clean"> |
|
67 <sbsInput refid="build_input_clean_armv5" /> |
|
68 </hlm:sbsbuild> |
|
69 |
|
70 Optional extra arguments: |
|
71 |
|
72 .. code-block:: xml |
|
73 |
|
74 <hlm:argSet id="ctc.build.options"> |
|
75 <arg line="-C OPT_ADD_COMPILE+-DCTC_NO_START_CTCMAN" /> |
|
76 </hlm:argSet> |