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 gdb debug facility
6 [ "${CT_GDB}" = "y" ] || return 0
7 echo "gdb`do_debug_gdb_suffix`"
10 do_debug_gdb_suffix() {
11 case "${CT_GDB_VERSION}" in
13 *) echo "-${CT_GDB_VERSION}";;
18 CT_GetFile "gdb`do_debug_gdb_suffix`" \
19 ftp://ftp.gnu.org/pub/gnu/gdb \
20 ftp://sources.redhat.com/pub/gdb/releases \
21 ftp://sources.redhat.com/pub/gdb/old-releases \
22 ftp://sources.redhat.com/pub/gdb/snapshots/current
25 do_debug_gdb_extract() {
26 CT_ExtractAndPatch "gdb`do_debug_gdb_suffix`"
29 do_debug_gdb_build() {
30 gdb_src_dir="${CT_SRC_DIR}/gdb`do_debug_gdb_suffix`"
33 # Version 6.3 and below behave badly with gdbmi
34 case "${CT_GDB_VERSION}" in
35 6.2*|6.3) extra_config="${extra_config} --disable-gdbmi";;
38 if [ "${CT_GDB_CROSS}" = "y" ]; then
39 CT_DoStep INFO "Installing cross-gdb"
40 CT_DoLog EXTRA "Configuring cross-gdb"
42 mkdir -p "${CT_BUILD_DIR}/build-gdb-cross"
43 cd "${CT_BUILD_DIR}/build-gdb-cross"
45 "${gdb_src_dir}/configure" \
48 --target=${CT_TARGET} \
49 --prefix="${CT_PREFIX_DIR}" \
50 --with-build-sysroot="${CT_SYSROOT_DIR}" \
52 ${extra_config} 2>&1 |CT_DoLog ALL
54 CT_DoLog EXTRA "Building cross-gdb"
55 make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL
57 CT_DoLog EXTRA "Installing cross-gdb"
58 make install 2>&1 |CT_DoLog ALL
62 CT_DoStep INFO "Installing gdbserver"
63 CT_DoLog EXTRA "Configuring gdbserver"
65 mkdir -p "${CT_BUILD_DIR}/build-gdb-gdbserver"
66 cd "${CT_BUILD_DIR}/build-gdb-gdbserver"
68 # Workaround for bad versions, where the configure
69 # script for gdbserver is not executable...
70 # Bah, GNU folks strike again... :-(
71 chmod +x "${gdb_src_dir}/gdb/gdbserver/configure"
74 if [ "${CT_GDB_CROSS_STATIC_GDBSERVER}" = "y" ]; then
75 gdbserver_LDFLAGS=-static
78 LDFLAGS="${gdbserver_LDFLAGS}" \
79 "${gdb_src_dir}/gdb/gdbserver/configure" \
82 --target=${CT_TARGET} \
85 --localstatedir=/var \
86 --includedir="${CT_HEADERS_DIR}" \
87 --with-build-sysroot="${CT_SYSROOT_DIR}" \
93 --without-included-gettext \
94 ${extra_config} 2>&1 |CT_DoLog ALL
96 CT_DoLog EXTRA "Building gdbserver"
97 make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} 2>&1 |CT_DoLog ALL
99 CT_DoLog EXTRA "Installing gdbserver"
100 make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL
105 if [ "${CT_GDB_NATIVE}" = "y" ]; then
106 CT_DoStep EXTRA "Installing native gdb"
107 CT_DoLog EXTRA "Configuring native gdb"
109 mkdir -p "${CT_BUILD_DIR}/build-gdb-native"
110 cd "${CT_BUILD_DIR}/build-gdb-native"
112 "${gdb_src_dir}/configure" \
113 --build=${CT_BUILD} \
114 --host=${CT_TARGET} \
115 --target=${CT_TARGET} \
117 --with-build-sysroot="${CT_SYSROOT_DIR}" \
123 --disable-gdbserver \
124 --without-included-gettext \
125 ${extra_config} 2>&1 |CT_DoLog ALL
127 CT_DoLog EXTRA "Building native gdb"
128 make ${PARALLELMFLAGS} CC=${CT_TARGET}-${CT_CC} 2>&1 |CT_DoLog ALL
130 CT_DoLog EXTRA "Installing native gdb"
131 make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install 2>&1 |CT_DoLog ALL