docs/ct-ng.1.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Oct 02 20:06:18 2013 +0200 (2013-10-02)
branch1.19
changeset 3238 d39abd309eb7
parent 3224 4e9c41579ebd
permissions -rw-r--r--
1.19: update version to 1.19.0+hg

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 ." crosstool-NG man page
     2 ." Copyright 2007 Yann E. MORIN
     3 ." Licensed under the Creative Commons BY-SA, v2.5
     4 ."
     5 ." Beautifying URLs
     6 .mso www.tmac
     7 ."
     8 .TH crosstool-NG 1 "@@CT_DATE@@" "version @@CT_VERSION@@" "User Commands"
     9 ."
    10 ."
    11 .SH NAME
    12 @@CT_PROG_NAME@@, crosstool-NG \- Build cross-toolchains
    13 ."
    14 ."
    15 .SH SYNOPSIS
    16 .B @@CT_PROG_NAME@@ ACTION
    17 ."
    18 ."
    19 .SH DESCRIPTION
    20 Building a cross-toolchain can be a real pain.
    21 .PP
    22 .B crosstool-NG
    23 makes it easy to build cross-toolchains, and allows you to take all the juice
    24 out of your target by configuring the different components of the toolchain
    25 according to the targeted processor.
    26 ."
    27 ."
    28 .SH ACTIONS
    29 Here are the most commonly used actions. For other actions, please see
    30 .I "@@CT_DOCDIR@@/0 - Table of content.txt"
    31 .TP
    32 .B help
    33 Prints a little help text.
    34 ."
    35 .TP
    36 .B menuconfig
    37 Configures
    38 .B crosstool-NG
    39 using a configurator menu very similar to that of the Linux kernel.
    40 ."
    41 .TP
    42 .B oldconfig
    43 Apply options found in an existing
    44 .I .config
    45 file, and ask for newer options if there are any.
    46 ."
    47 .TP
    48 .B saveconfig
    49 Save the current
    50 .B crosstool-NG
    51 configuration, and associated components' config files, into a sample. Samples
    52 are saved in their own sub-directory, named after the target's tuple, in the
    53 .I samples
    54 sub-directory of the current directory.
    55 If that was not clear:
    56 .I `pwd`/samples/${CT_TARGET}/
    57 
    58 Samples can be later recalled by calling
    59 .B @@CT_PROG_NAME@@
    60 with the target tuple they represent.
    61 ."
    62 .TP
    63 .B savedefconfig
    64 Save the current configuration to a mini-defconfig file, that contains only
    65 the strictly required symbols to reproduce the configuration. defconfig files
    66 are much smaller than a complete .config, so it is easy to send by mail. As
    67 only non-default symbols are present in a defconfig, it easy to spot the
    68 meaningful values. Also, it is easy to use defconfig files with newer
    69 versions of
    70 .BR crosstool-NG .
    71 By default the mini-defconfig is saved to a file named
    72 .IR defconfig ,
    73 unless the variable
    74 .B $DEFCONFIG
    75 is set, in which case the mini-defconfig will be saved to the file referenced
    76 by
    77 .BR $DEFCONFIG .
    78 
    79 Note: only the
    80 .I .config
    81 file for
    82 .B crosstool-NG
    83 is saved. Config files for the components are
    84 .B not
    85 saved. Use
    86 .B saveconfig
    87 for that
    88 ."
    89 .TP
    90 .B defconfig
    91 Configure
    92 .B crosstool-NG
    93 using a mini-defconfig file (previously saved with
    94 .B savedefconfig
    95 or manually edited). The default mini-defconfig is read from the file
    96 .IR defconfig ,
    97 unless the variable
    98 .B $DEFCONFIG
    99 is set, in which case the mini-defconfig will be read from the file referenced
   100 by
   101 .B $DEFCONFIG
   102 ."
   103 .TP
   104 .B build
   105 Builds the configured toolchain.
   106 ."
   107 .TP
   108 .B clean
   109 Remove files generated by
   110 .B crosstool-NG
   111 for itself (these are mostly the configurators' binaries).
   112 ."
   113 .TP
   114 .B distclean
   115 Same as
   116 .B clean
   117 , but also removes the toolchain build directory, the downloaded files and the
   118 .I .config
   119 configuration file. The generated toolchain is left untouched, as well as
   120 samples which are not removed.
   121 ."
   122 .TP
   123 .B regtest
   124 Calls the
   125 .B crosstool-NG
   126 regression test suite. All samples are build, and the regression test suite is
   127 run against every one of them.
   128 ."
   129 .TP
   130 .B updatetools
   131 Updates the
   132 .I config.guess
   133 and
   134 .I config.sub
   135 scripts. These scripts are used by
   136 .B crosstool-NG
   137 to canonicalise the machines' name (host, build and target machines).
   138 .TP
   139 .B tarball
   140 Builds a tarball of the generated toolchain, also saving the scripts from
   141 .B crosstool-NG
   142 that are needed to rebuild the target, and also saving the tarballs of the
   143 components that were used.
   144 ."
   145 .SH ENVIRONMENT
   146 .TP
   147 .B STOP, START
   148 Respectively stops and restarts the build just before this step. To restart a
   149 step, a previous build should have run at least to that step, or further.
   150 
   151 The list of steps is viewable with the action
   152 .BR list-steps .
   153 ."
   154 .SH EXIT VALUE
   155 The
   156 .B @@CT_PROG_NAME@@
   157 frontend is in fact a
   158 .BR make (1)
   159 script. See the man page for
   160 .BR make (1)
   161 to have the meaning of the exit values.
   162 ."
   163 .SH BUGS
   164 As of today (@@CT_DATE@@), building tarballs is broken. It is difficult to
   165 foresee how all parts of
   166 .B crosstool-NG
   167 are going to be installed. Each part is needed to build a tarball, as it
   168 contains all that is needed to rebuild the toolchain from scratch: toolchain
   169 components' sources,
   170 .B crosstool-NG
   171 configuration, but also all
   172 .B crosstool-NG
   173 scripts.
   174 ."
   175 .SH SECURITY
   176 .B Don't run as root!
   177 Great care has been taken to avoid mistakes, but bug-free programs don't
   178 exist. During normal operation,
   179 .B crosstool-NG
   180 removes entire directories. If you run as root, and there is a bug or you
   181 mis-configured
   182 .BR crosstool-NG ,
   183 entire important directories could be removed (eg.
   184 .IR /usr ),
   185 although
   186 .B crosstool-NG
   187 will refuse to install toolchains in some well known critical directories.
   188 ."
   189 .SH AUTHORS
   190 Please consult the file
   191 .I @@CT_DOCDIR@@/CREDITS
   192 for a list of contributors.
   193 ."
   194 .SH SEE ALSO
   195 You can find more in-depth documentation in
   196 .IR "@@CT_DOCDIR@@/0 - Table of content.txt" .
   197 
   198 Please have a look at the
   199 .URL "http://www.kegel.com/crosstool" "original crosstool" " by Daniel KEGEL"