From 16c6cc994fe1325535caa16dab5590c5a4cf2246 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Wed, 1 Oct 2008 18:10:40 +0000 Subject: Save the toolchain configuration to its own file, as an auto-extracting shell script: - get rid of the 'extractconfig' action, it was cumbersome to use, and badly documented, - introduce a skeleton for the config script, - update auto-completion, - document the config script. /trunk/kconfig/kconfig.mk | 9 2 7 0 ++------- /trunk/scripts/crosstool.sh | 6 5 1 0 +++++- /trunk/docs/overview.txt | 21 9 12 0 +++++++++------------ /trunk/tools/toolchain-config.in | 8 8 0 0 ++++++++ /trunk/ct-ng.comp | 2 1 1 0 +- 5 files changed, 25 insertions(+), 21 deletions(-) --- docs/overview.txt | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/overview.txt b/docs/overview.txt index cd704aa9..5e06afa0 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -283,19 +283,16 @@ Re-building an existing toolchain | 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 in the build log -file that is saved within the toolchain. crosstool-NG can extract those options -to recreate a new configuration: - ct-ng extractconfig .config +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 -will extract those options, prompt you for the new ones, which you can later -edit with menuconfig. +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 -Of course, if your build log was compressed, you'd have to use something like: - bzcat /path/to/your/build.log.bz2 |ct-ng extractconfig >.config - -Then, once the configuration has been extracted, run: - ct-ng oldconfig +Then, you can review and change the configuration by running: + ct-ng menuconfig ________________________ / -- cgit v1.2.3