source: rtems-docs/rsb/commands.rst @ 969e60e

5
Last change on this file since 969e60e was 96fe12c, checked in by Maksim E. Kozlov <maksim.e.kozlov@…>, on 02/20/18 at 14:47:51

rsb: Add '--patchdir' option description

According to commit d30be3129e9681a74efc80ce241aaf3c3a5b0efe in
rtems-source-builder repo.

Signed-off-by: Maksim E. Kozlov <maksim.e.kozlov@…>

  • Property mode set to 100644
File size: 14.2 KB
Line 
1.. comment SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. comment COPYRIGHT (c) 2012 - 2016.
4.. comment Chris Johns <chrisj@rtems.org>
5
6Commands
7========
8
9Checker (sb-check)
10------------------
11
12This commands checks your system is set up correctly. Most options are ignored::
13
14    $ ../source-builder/sb-check --help
15    sb-check: [options] [args]
16    RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2013 Chris Johns
17    Options and arguments:
18    --force                : Force the build to proceed
19    --quiet                : Quiet output (not used)
20    --trace                : Trace the execution
21    --dry-run              : Do everything but actually run the build
22    --warn-all             : Generate warnings
23    --no-clean             : Do not clean up the build tree
24    --always-clean         : Always clean the build tree, even with an error
25    --jobs                 : Run with specified number of jobs, default: num CPUs.
26    --host                 : Set the host triplet
27    --build                : Set the build triplet
28    --target               : Set the target triplet
29    --prefix path          : Tools build prefix, ie where they are installed
30    --topdir path          : Top of the build tree, default is $PWD
31    --configdir path       : Path to the configuration directory, default: ./config
32    --builddir path        : Path to the build directory, default: ./build
33    --sourcedir path       : Path to the source directory, default: ./source
34    --patchdir path        : Path to the patches directory, default: ./patches
35    --tmppath path         : Path to the temp directory, default: ./tmp
36    --macros file[,[file]  : Macro format files to load after the defaults
37    --log file             : Log file where all build out is written too
38    --url url[,url]        : URL to look for source
39    --no-download          : Disable the source downloader
40    --targetcflags flags   : List of C flags for the target code
41    --targetcxxflags flags : List of C++ flags for the target code
42    --libstdcxxflags flags : List of C++ flags to build the target libstdc++ code
43    --with-<label>         : Add the --with-<label> to the build
44    --without-<label>      : Add the --without-<label> to the build
45    --regression           : Set --no-install, --keep-going and --always-clean
46    $ ../source-builder/sb-check
47    RTEMS Source Builder - Check, v0.2.0
48    Environment is ok
49
50Defaults (sb-defaults)
51----------------------
52
53This commands outputs and the default macros for your when given no
54arguments. Most options are ignored::
55
56    $ ../source-builder/sb-defaults --help
57    sb-defaults: [options] [args]
58    RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2013 Chris Johns
59    Options and arguments:
60    --force                : Force the build to proceed
61    --quiet                : Quiet output (not used)
62    --trace                : Trace the execution
63    --dry-run              : Do everything but actually run the build
64    --warn-all             : Generate warnings
65    --no-clean             : Do not clean up the build tree
66    --always-clean         : Always clean the build tree, even with an error
67    --jobs                 : Run with specified number of jobs, default: num CPUs.
68    --host                 : Set the host triplet
69    --build                : Set the build triplet
70    --target               : Set the target triplet
71    --prefix path          : Tools build prefix, ie where they are installed
72    --topdir path          : Top of the build tree, default is $PWD
73    --configdir path       : Path to the configuration directory, default: ./config
74    --builddir path        : Path to the build directory, default: ./build
75    --sourcedir path       : Path to the source directory, default: ./source
76    --patchdir path        : Path to the patches directory, default: ./patches
77    --tmppath path         : Path to the temp directory, default: ./tmp
78    --macros file[,[file]  : Macro format files to load after the defaults
79    --log file             : Log file where all build out is written too
80    --url url[,url]        : URL to look for source
81    --no-download          : Disable the source downloader
82    --targetcflags flags   : List of C flags for the target code
83    --targetcxxflags flags : List of C++ flags for the target code
84    --libstdcxxflags flags : List of C++ flags to build the target libstdc++ code
85    --with-<label>         : Add the --with-<label> to the build
86    --without-<label>      : Add the --without-<label> to the build
87    --regression           : Set --no-install, --keep-going and --always-clean
88
89Set Builder (sb-set-builder)
90----------------------------
91
92This command builds a set::
93
94    $ ../source-builder/sb-set-builder --help
95    RTEMS Source Builder, an RTEMS Tools Project (c) 2012-2013 Chris Johns
96    Options and arguments:
97    --force                : Force the build to proceed
98    --quiet                : Quiet output (not used)
99    --trace                : Trace the execution
100    --dry-run              : Do everything but actually run the build
101    --warn-all             : Generate warnings
102    --no-clean             : Do not clean up the build tree
103    --always-clean         : Always clean the build tree, even with an error
104    --regression           : Set --no-install, --keep-going and --always-clean
105    ---jobs                 : Run with specified number of jobs, default: num CPUs.
106    --host                 : Set the host triplet
107    --build                : Set the build triplet
108    --target               : Set the target triplet
109    --prefix path          : Tools build prefix, ie where they are installed
110    --topdir path          : Top of the build tree, default is $PWD
111    --configdir path       : Path to the configuration directory, default: ./config
112    --builddir path        : Path to the build directory, default: ./build
113    --sourcedir path       : Path to the source directory, default: ./source
114    --patchdir path        : Path to the patches directory, default: ./patches
115    --tmppath path         : Path to the temp directory, default: ./tmp
116    --macros file[,[file]  : Macro format files to load after the defaults
117    --log file             : Log file where all build out is written too
118    --url url[,url]        : URL to look for source
119    --no-download          : Disable the source downloader
120    --no-install           : Do not install the packages to the prefix
121    --targetcflags flags   : List of C flags for the target code
122    --targetcxxflags flags : List of C++ flags for the target code
123    --libstdcxxflags flags : List of C++ flags to build the target libstdc++ code
124    --with-<label>         : Add the --with-<label> to the build
125    --without-<label>      : Add the --without-<label> to the build
126    --mail-from            : Email address the report is from.
127    --mail-to              : Email address to send the email too.
128    --mail                 : Send email report or results.
129    --smtp-host            : SMTP host to send via.
130    --no-report            : Do not create a package report.
131    --report-format        : The report format (text, html, asciidoc).
132    --bset-tar-file        : Create a build set tar file
133    --pkg-tar-files        : Create package tar files
134    --list-bsets           : List available build sets
135    --list-configs         : List available configurations
136    --list-deps            : List the dependent files.
137
138The ``arguments`` are a list of build sets to build.
139
140**Options**:
141
142``--force``:
143  Force the build to proceed even if the host check fails. Typically this
144  happens if executable files are found in the path at a different location to
145  the host defaults.
146
147``--trace``:
148  Trace enable printing of debug information to stdout. It is really only of
149  use to RTEMS Source Builder's developers.
150
151``--dry-run``:
152  Do everything but actually run the build commands. This is useful when
153  checking a new configuration parses cleanly.
154
155``--warn-all``:
156  Generate warnings.
157
158``--no-clean``:
159  Do not clean up the build tree during the cleaning phase of the build. This
160  leaves the source and the build output on disk so you can make changes, or
161  amend or generate new patches. It also allows you to review configure type
162  output such as ``config.log``.
163
164``--always-clean``:
165  Clean away the results of a build even if the build fails. This is normally
166  used with ``--keep-going`` when regression testing to see which build sets
167  fail to build. It keeps the disk usage down.
168
169``--jobs``:
170  Control the number of jobs make is given. The jobs can be ``none`` for only 1
171  job, ``half`` so the number of jobs is half the number of detected cores, a
172  fraction such as ``0.25`` so the number of jobs is a quarter of the number of
173  detected cores and a number such as ``25`` which forces the number of jobs to
174  that number.
175
176``--host``:
177  Set the host triplet value. Be careful with this option.
178
179``--build``:
180  Set the build triplet. Be careful with this option.
181
182``--target``:
183  Set the target triplet. Be careful with this option. This is useful if you
184  have a generic configuration script that can work for a range of
185  architectures.
186
187``--prefix path``:
188  Tools build prefix, ie where they are installed.
189
190``--topdir path``:
191  Top of the build tree, that is the current directory you are in.
192
193``--configdir path``:
194  Path to the configuration directory. This overrides the built in defaults.
195
196``--builddir path``:
197  Path to the build directory. This overrides the default of +build+.
198
199``--sourcedir path``:
200  Path to the source directory. This overrides the default of +source+.
201
202``--patchdir path``:
203  Path to the patches directory. This overrides the default of +patches+.
204
205``--tmppath path``:
206  Path to the temporary directory. This overrides the default of +tmp+.
207
208``--macros files``:
209  Macro files to load. The configuration directory path is searched.
210
211``--log file``:
212  Log all the output from the build process. The output is directed to +stdout+
213  if no log file is provided.
214
215``--url url``:
216  URL to look for source when downloading. This is can be comma separate list.
217
218``--no-download``:
219  Disable downloading of source and patches. If the source is not found an
220  error is raised.
221
222``--targetcflags flags``:
223  List of C flags for the target code. This allows for specific local
224  customisation when testing new variations.
225
226``--targetcxxflags flags``:
227  List of C++ flags for the target code. This allows for specific local
228  customisation when testing new variations.
229
230``--libstdcxxflags flags``:
231  List of C++ flags to build the target libstdc++ code. This allows for
232  specific local customisation when testing new variations.
233
234``--with-<label>``:
235  Add the ``--with-<label>`` to the build. This can be tested for in a script
236  with the ``%bconf_with`` macro.
237
238``--without-<label>``:
239  Add the ``--without-<label>`` to the build. This can be tested for in a
240  script with the ``%bconf_without`` macro.
241
242``--mail-from``:
243  Set the from mail address if report mailing is enabled.
244
245``--mail-to``:
246  Set the to mail address if report mailing is enabled. The report is mailed to
247  this address.
248
249``--mail``:
250  Mail the build report to the mail to address.
251
252``--smtp-host``:
253  The SMTP host to use to send the email. The default is ``localhost``.
254
255``--no-report``:
256  Do not create a report format.
257
258``--report-format format``:
259  The report format can be ``text`` or ``html``. The default is ``html``.
260
261``--keep-going``:
262  Do not stop on error. This is useful if your build sets performs a large
263  number of testing related builds and there are errors.
264
265``--always-clean``:
266  Always clean the build tree even with a failure.
267
268``--no-install``:
269  Do not install the packages to the prefix. Use this if you are only after the
270  tar files.
271
272``--regression``:
273  A convenience option which is the same as ``--no-install``, ``--keep-going``
274  and ``--always-clean``.
275
276``--bset-tar-file``:
277  Create a build set tar file. This is a single tar file of all the packages in
278  the build set.
279
280``--pkg-tar-files``:
281  Create package tar files. A tar file will be created for each package built
282  in a build set.
283
284``--list-bsets``:
285  List available build sets.
286
287``--list-configs``:
288  List available configurations.
289
290``--list-deps``:
291  Print a list of dependent files used by a build set. Dependent files have a
292  ``dep[?]` prefix where ``?`` is a number. The files are listed alphabetically.
293
294Set Builder (sb-builder)
295------------------------
296
297This command builds a configuration as described in a configuration
298file. Configuration files have the extension of ``.cfg``::
299
300    $ ./source-builder/sb-builder --help
301    sb-builder: [options] [args]
302    RTEMS Source Builder, an RTEMS Tools Project (c) 2012 Chris Johns
303    Options and arguments:
304    --force                : Force the build to proceed
305    --quiet                : Quiet output (not used)
306    --trace                : Trace the execution
307    --dry-run              : Do everything but actually run the build
308    --warn-all             : Generate warnings
309    --no-clean             : Do not clean up the build tree
310    --always-clean         : Always clean the build tree, even with an error
311    --jobs                 : Run with specified number of jobs, default: num CPUs.
312    --host                 : Set the host triplet
313    --build                : Set the build triplet
314    --target               : Set the target triplet
315    --prefix path          : Tools build prefix, ie where they are installed
316    --topdir path          : Top of the build tree, default is $PWD
317    --configdir path       : Path to the configuration directory, default: ./config
318    --builddir path        : Path to the build directory, default: ./build
319    --sourcedir path       : Path to the source directory, default: ./source
320    --patchdir path        : Path to the patches directory, default: ./patches
321    --tmppath path         : Path to the temp directory, default: ./tmp
322    --macros file[,[file]  : Macro format files to load after the defaults
323    --log file             : Log file where all build out is written too
324    --url url[,url]        : URL to look for source
325    --targetcflags flags   : List of C flags for the target code
326    --targetcxxflags flags : List of C++ flags for the target code
327    --libstdcxxflags flags : List of C++ flags to build the target libstdc++ code
328    --with-<label>         : Add the --with-<label> to the build
329    --without-<label>      : Add the --without-<label> to the build
330    --list-configs         : List available configurations
Note: See TracBrowser for help on using the repository browser.