2007-07-02 19:40:54 +00:00
|
|
|
." crosstool-NG man page
|
2007-07-01 19:04:20 +00:00
|
|
|
." Copyright 2007 Yann E. MORIN
|
|
|
|
." Licensed under the Creative Commons BY-SA, v2.5
|
|
|
|
."
|
|
|
|
." Beautifying URLs
|
|
|
|
.mso www.tmac
|
|
|
|
."
|
2007-07-02 19:40:54 +00:00
|
|
|
.TH crosstool-NG 1 "@@CT_DATE@@" "version @@CT_VERSION@@" "User Commands"
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
."
|
|
|
|
.SH NAME
|
2011-08-17 21:05:01 +00:00
|
|
|
@@CT_PROG_NAME@@, crosstool-NG \- Build cross-toolchains
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
."
|
|
|
|
.SH SYNOPSIS
|
2011-08-17 21:05:01 +00:00
|
|
|
.B @@CT_PROG_NAME@@ ACTION
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
."
|
|
|
|
.SH DESCRIPTION
|
|
|
|
Building a cross-toolchain can be a real pain.
|
|
|
|
.PP
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
makes it easy to build cross-toolchains, and allows you to take all the juice
|
2007-07-30 21:09:12 +00:00
|
|
|
out of your target by configuring the different components of the toolchain
|
2013-07-17 06:25:42 +00:00
|
|
|
according to the targeted processor.
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
."
|
|
|
|
.SH ACTIONS
|
|
|
|
Here are the most commonly used actions. For other actions, please see
|
2010-12-21 23:34:56 +00:00
|
|
|
.I "@@CT_DOCDIR@@/0 - Table of content.txt"
|
2007-07-01 19:04:20 +00:00
|
|
|
.TP
|
|
|
|
.B help
|
|
|
|
Prints a little help text.
|
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B menuconfig
|
|
|
|
Configures
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
using a configurator menu very similar to that of the Linux kernel.
|
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B oldconfig
|
|
|
|
Apply options found in an existing
|
|
|
|
.I .config
|
|
|
|
file, and ask for newer options if there are any.
|
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B saveconfig
|
|
|
|
Save the current
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
configuration, and associated components' config files, into a sample. Samples
|
2007-08-15 16:18:35 +00:00
|
|
|
are saved in their own sub-directory, named after the target's tuple, in the
|
2007-07-01 19:04:20 +00:00
|
|
|
.I samples
|
|
|
|
sub-directory of the current directory.
|
|
|
|
If that was not clear:
|
|
|
|
.I `pwd`/samples/${CT_TARGET}/
|
|
|
|
|
|
|
|
Samples can be later recalled by calling
|
2011-08-17 21:05:01 +00:00
|
|
|
.B @@CT_PROG_NAME@@
|
2007-08-15 16:18:35 +00:00
|
|
|
with the target tuple they represent.
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
.TP
|
2013-07-17 06:25:43 +00:00
|
|
|
.B savedefconfig
|
2012-08-15 20:06:22 +00:00
|
|
|
Save the current configuration to a mini-defconfig file, that contains only
|
2013-07-17 06:25:42 +00:00
|
|
|
the strictly required symbols to reproduce the configuration. defconfig files
|
2012-08-15 20:06:22 +00:00
|
|
|
are much smaller than a complete .config, so it is easy to send by mail. As
|
|
|
|
only non-default symbols are present in a defconfig, it easy to spot the
|
2013-07-17 06:25:42 +00:00
|
|
|
meaningful values. Also, it is easy to use defconfig files with newer
|
2012-08-15 20:06:22 +00:00
|
|
|
versions of
|
|
|
|
.BR crosstool-NG .
|
|
|
|
By default the mini-defconfig is saved to a file named
|
|
|
|
.IR defconfig ,
|
|
|
|
unless the variable
|
|
|
|
.B $DEFCONFIG
|
|
|
|
is set, in which case the mini-defconfig will be saved to the file referenced
|
|
|
|
by
|
|
|
|
.BR $DEFCONFIG .
|
|
|
|
|
|
|
|
Note: only the
|
|
|
|
.I .config
|
|
|
|
file for
|
|
|
|
.B crosstool-NG
|
|
|
|
is saved. Config files for the components are
|
|
|
|
.B not
|
|
|
|
saved. Use
|
|
|
|
.B saveconfig
|
|
|
|
for that
|
|
|
|
."
|
|
|
|
.TP
|
2013-07-17 06:25:43 +00:00
|
|
|
.B defconfig
|
2012-08-15 20:06:22 +00:00
|
|
|
Configure
|
|
|
|
.B crosstool-NG
|
|
|
|
using a mini-defconfig file (previously saved with
|
2013-07-17 06:25:43 +00:00
|
|
|
.B savedefconfig
|
2013-07-17 06:25:42 +00:00
|
|
|
or manually edited). The default mini-defconfig is read from the file
|
2012-08-15 20:06:22 +00:00
|
|
|
.IR defconfig ,
|
2013-07-17 06:25:42 +00:00
|
|
|
unless the variable
|
2012-08-15 20:06:22 +00:00
|
|
|
.B $DEFCONFIG
|
2013-07-17 06:25:42 +00:00
|
|
|
is set, in which case the mini-defconfig will be read from the file referenced
|
2012-08-15 20:06:22 +00:00
|
|
|
by
|
|
|
|
.B $DEFCONFIG
|
|
|
|
."
|
|
|
|
.TP
|
2007-07-01 19:04:20 +00:00
|
|
|
.B build
|
2007-07-02 19:40:54 +00:00
|
|
|
Builds the configured toolchain.
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B clean
|
|
|
|
Remove files generated by
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
for itself (these are mostly the configurators' binaries).
|
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B distclean
|
|
|
|
Same as
|
|
|
|
.B clean
|
|
|
|
, but also removes the toolchain build directory, the downloaded files and the
|
|
|
|
.I .config
|
|
|
|
configuration file. The generated toolchain is left untouched, as well as
|
|
|
|
samples which are not removed.
|
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B regtest
|
|
|
|
Calls the
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
regression test suite. All samples are build, and the regression test suite is
|
|
|
|
run against every one of them.
|
|
|
|
."
|
|
|
|
.TP
|
|
|
|
.B updatetools
|
|
|
|
Updates the
|
|
|
|
.I config.guess
|
|
|
|
and
|
|
|
|
.I config.sub
|
|
|
|
scripts. These scripts are used by
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
to canonicalise the machines' name (host, build and target machines).
|
|
|
|
."
|
|
|
|
.SH ENVIRONMENT
|
|
|
|
.TP
|
2015-03-11 10:09:13 +00:00
|
|
|
.B STOP, RESTART
|
2007-07-01 19:04:20 +00:00
|
|
|
Respectively stops and restarts the build just before this step. To restart a
|
|
|
|
step, a previous build should have run at least to that step, or further.
|
|
|
|
|
2011-07-17 14:53:40 +00:00
|
|
|
The list of steps is viewable with the action
|
2008-06-25 14:06:49 +00:00
|
|
|
.BR list-steps .
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
.SH EXIT VALUE
|
|
|
|
The
|
2011-08-17 21:05:01 +00:00
|
|
|
.B @@CT_PROG_NAME@@
|
2007-07-01 19:04:20 +00:00
|
|
|
frontend is in fact a
|
|
|
|
.BR make (1)
|
|
|
|
script. See the man page for
|
|
|
|
.BR make (1)
|
|
|
|
to have the meaning of the exit values.
|
|
|
|
."
|
|
|
|
.SH BUGS
|
|
|
|
As of today (@@CT_DATE@@), building tarballs is broken. It is difficult to
|
2013-07-17 06:25:42 +00:00
|
|
|
foresee how all parts of
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2013-07-17 06:25:42 +00:00
|
|
|
are going to be installed. Each part is needed to build a tarball, as it
|
2007-07-01 19:04:20 +00:00
|
|
|
contains all that is needed to rebuild the toolchain from scratch: toolchain
|
|
|
|
components' sources,
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
configuration, but also all
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
scripts.
|
|
|
|
."
|
|
|
|
.SH SECURITY
|
|
|
|
.B Don't run as root!
|
|
|
|
Great care has been taken to avoid mistakes, but bug-free programs don't
|
|
|
|
exist. During normal operation,
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-07-01 19:04:20 +00:00
|
|
|
removes entire directories. If you run as root, and there is a bug or you
|
|
|
|
mis-configured
|
2007-07-02 19:40:54 +00:00
|
|
|
.BR crosstool-NG ,
|
2007-07-01 19:04:20 +00:00
|
|
|
entire important directories could be removed (eg.
|
|
|
|
.IR /usr ),
|
|
|
|
although
|
2007-07-02 19:40:54 +00:00
|
|
|
.B crosstool-NG
|
2007-08-15 16:18:35 +00:00
|
|
|
will refuse to install toolchains in some well known critical directories.
|
2007-07-01 19:04:20 +00:00
|
|
|
."
|
|
|
|
.SH AUTHORS
|
|
|
|
Please consult the file
|
2014-12-06 10:51:15 +00:00
|
|
|
.I @@CT_DOCDIR@@/A - Credits.txt
|
2007-07-01 19:04:20 +00:00
|
|
|
for a list of contributors.
|
|
|
|
."
|
|
|
|
.SH SEE ALSO
|
2007-07-09 17:35:45 +00:00
|
|
|
You can find more in-depth documentation in
|
2010-12-21 23:34:56 +00:00
|
|
|
.IR "@@CT_DOCDIR@@/0 - Table of content.txt" .
|
2007-07-09 17:35:45 +00:00
|
|
|
|
2007-07-01 19:04:20 +00:00
|
|
|
Please have a look at the
|
|
|
|
.URL "http://www.kegel.com/crosstool" "original crosstool" " by Daniel KEGEL"
|