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(-)
1 # Build script for ltrace
3 is_enabled="${CT_LTRACE}"
6 [ "${CT_LTRACE}" = "y" ] || return 0
7 echo "ltrace-${CT_LTRACE_VERSION}.orig"
10 do_debug_ltrace_get() {
11 CT_GetFile "ltrace_${CT_LTRACE_VERSION}.orig" {ftp,http}://ftp.de.debian.org/debian/pool/main/l/ltrace/
12 # Create a link so that the following steps are easier to do:
13 cd "${CT_TARBALLS_DIR}"
14 ltrace_ext=$(CT_GetFileExtension "ltrace_${CT_LTRACE_VERSION}.orig")
15 ln -sf "ltrace_${CT_LTRACE_VERSION}.orig${ltrace_ext}" "ltrace-${CT_LTRACE_VERSION}${ltrace_ext}"
18 do_debug_ltrace_extract() {
19 CT_ExtractAndPatch "ltrace-${CT_LTRACE_VERSION}"
22 do_debug_ltrace_build() {
23 CT_DoStep INFO "Installing ltrace"
24 mkdir -p "${CT_BUILD_DIR}/build-ltrace"
25 CT_Pushd "${CT_BUILD_DIR}/build-ltrace"
27 CT_DoLog EXTRA "Configuring ltrace"
28 # CFLAGS="-I${CT_SYSROOT_DIR}/usr/include" \
29 # LDFLAGS="-L${CT_SYSROOT_DIR}/usr/include" \
31 "${CT_SRC_DIR}/ltrace-${CT_LTRACE_VERSION}/configure" \
36 CT_DoLog EXTRA "Building ltrace"
39 CT_DoLog EXTRA "Installing ltrace"
40 CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install