Move config files around, and clean up the mess in the config/ directory.
config/kernel/kernel_linux.in | 12 6 6 0 +-
config/paths.in | 89 0 89 0 ----------------
config/kernel_linux_headers_install.in | 168 0 168 0 ------------------------------
config/kernel.in | 2 1 1 0
config/kernel_linux_headers_copy.in | 42 0 42 0 --------
config/cc.in | 2 1 1 0
config/logging.in | 110 0 110 0 --------------------
config/build-behave.in | 45 0 45 0 --------
config/libc_uClibc.in | 101 0 101 0 ------------------
config/kernel_linux_headers_sanitised.in | 62 0 62 0 -----------
config/ct-behave.in | 82 0 82 0 ---------------
config/kernel_linux.in | 134 0 134 0 ------------------------
config/global.in | 10 5 5 0 +-
config/download_extract.in | 171 0 171 0 -------------------------------
config/cc_gcc.in | 130 0 130 0 ------------------------
config/libc_glibc.in | 124 0 124 0 ----------------------
config/libc.in | 4 2 2 0
17 files changed, 15 insertions(+), 1273 deletions(-)
1 # Build script for the dmalloc debug library facility
3 is_enabled="${CT_DMALLOC}"
6 [ "${CT_DMALLOC}" = "y" ] || return 0
7 echo "dmalloc-${CT_DMALLOC_VERSION}"
10 do_debug_dmalloc_get() {
11 CT_GetFile "dmalloc-${CT_DMALLOC_VERSION}" http://dmalloc.com/releases/
14 do_debug_dmalloc_extract() {
15 CT_ExtractAndPatch "dmalloc-${CT_DMALLOC_VERSION}"
18 do_debug_dmalloc_build() {
19 CT_DoStep INFO "Installing dmalloc"
20 CT_DoLog EXTRA "Configuring dmalloc"
22 mkdir -p "${CT_BUILD_DIR}/build-dmalloc"
23 cd "${CT_BUILD_DIR}/build-dmalloc"
26 case "${CT_CC_LANG_CXX}" in
27 y) extra_config="${extra_config} --enable-cxx";;
28 *) extra_config="${extra_config} --disable-cxx";;
30 case "${CT_THREADS_NONE}" in
31 y) extra_config="${extra_config} --disable-threads";;
32 *) extra_config="${extra_config} --enable-threads";;
34 case "${CT_SHARED_LIBS}" in
35 y) extra_config="${extra_config} --enable-shlib";;
36 *) extra_config="${extra_config} --disable-shlib";;
39 CT_DoLog DEBUG "Extra config passed: \"${extra_config}\""
41 LD="${CT_TARGET}-ld" \
42 AR="${CT_TARGET}-ar" \
43 "${CT_SRC_DIR}/dmalloc-${CT_DMALLOC_VERSION}/configure" \
45 --build="${CT_BUILD}" \
46 --host="${CT_TARGET}" \
47 ${extra_config} 2>&1 |CT_DoLog ALL
49 CT_DoLog EXTRA "Building dmalloc"
50 make 2>&1 |CT_DoLog ALL
52 CT_DoLog EXTRA "Installing dmalloc"
53 make DESTDIR="${CT_SYSROOT_DIR}" installincs \
54 installlib 2>&1 |CT_DoLog ALL
55 make DESTDIR="${CT_DEBUG_INSTALL_DIR}" installutil 2>&1 |CT_DoLog ALL