diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-02-11 21:28:10 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-02-11 21:28:10 +0100 |
commit | 013230cda91a104af9e1344ccf926c19c52d9e1d (patch) | |
tree | 42bbe5ec594601a4df895aba30366a9a50744555 /docs | |
parent | 9dc4e8172fb18203f86f5d62e7204472f787ace6 (diff) | |
download | crosstool-ng-013230cda91a104af9e1344ccf926c19c52d9e1d.tar.gz crosstool-ng-013230cda91a104af9e1344ccf926c19c52d9e1d.tar.bz2 crosstool-ng-013230cda91a104af9e1344ccf926c19c52d9e1d.zip |
scripts: add action to extract config from a build.log file
That got removed quite some time ago, but is really usefull to get the
configuration from a build.log file of a failing build.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/overview.txt | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/docs/overview.txt b/docs/overview.txt index 206e8c91..a0e12226 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -331,11 +331,20 @@ If you have an existing toolchain, you can re-use the options used to build it to create a new toolchain. That needs a very little bit of effort on your side but is quite easy. The options to build a toolchain are saved with the toolchain, and you can retrieve this configuration by running: - ${CT_TARGET}-config + ${CT_TARGET}-ct-ng.config -This will dump the configuration to stdout, so to rebuild a toolchain with this -configuration, the following is all you need to do: - ${CT_TARGET}-config >.config +An alternate method is to extract the configuration from a build.log file. +This will be necessary if your toolchain was build with crosstool-NG prior +to 1.4.0, but can be used with build.log files from any version: + ct-ng extractconfig <build.log >.config + +Or, if your build.log file is compressed (most probably!): + bzcat build.log.bz2 |ct-ng extractconfig >.config + +The above commands will dump the configuration to stdout, so to rebuild a +toolchain with this configuration, just redirect the output to the +.config file: + ${CT_TARGET}-ct-ng.config >.config ct-ng oldconfig Then, you can review and change the configuration by running: |