summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-17 18:46:09 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-11-17 18:46:09 (GMT)
commit620b98047422a0988c45717e6c32972d4003946d (patch)
tree3f1751971d0ae78e8fbf3962093018b00383bcfe
parent4f5952aebf07decd2f2484973a9b779dd50c6a22 (diff)
Build and install a uClibc cross-ldd.
Based on a patch by Joachim NILSSON: http://sourceware.org/ml/crossgcc/2008-11/msg00025.html /trunk/scripts/build/libc/uClibc.sh | 28 27 1 0 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-)
-rw-r--r--scripts/build/libc/uClibc.sh28
1 files changed, 27 insertions, 1 deletions
diff --git a/scripts/build/libc/uClibc.sh b/scripts/build/libc/uClibc.sh
index 9735718..ec9cc52 100644
--- a/scripts/build/libc/uClibc.sh
+++ b/scripts/build/libc/uClibc.sh
@@ -148,7 +148,33 @@ do_libc() {
# This function is used to install those components needing the final C compiler
do_libc_finish() {
- :
+ # Build and install host-side ldd
+ CT_DoStep INFO "Finishing C library"
+
+ mkdir -p "${CT_BUILD_DIR}/build-libc-finish"
+ cd "${CT_BUILD_DIR}/build-libc-finish"
+
+ # Simply copy files until uClibc has the ablity to build out-of-tree
+ CT_DoLog EXTRA "Copying sources to build dir"
+ { cd "${CT_SRC_DIR}/${CT_LIBC_FILE}"; tar cf - .; } |tar xf -
+
+ # Retrieve the config file
+ cp "${CT_BUILD_DIR}/uClibc.config" .config
+
+ CT_DoLog EXTRA "Applying configuration"
+ CT_DoYes "" |CT_DoExecLog ALL \
+ make CROSS=${CT_TARGET}- \
+ PREFIX="${CT_SYSROOT_DIR}/" \
+ oldconfig
+
+ CT_DoLog EXTRA "Installing C library host utils"
+ CT_DoExecLog ALL \
+ make PREFIX="${CT_SYSROOT_DIR}/" \
+ ${CT_LIBC_UCLIBC_VERBOSITY} \
+ -C utils hostutils
+ CT_DoExecLog ALL install -m 0755 utils/ldd.host "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ldd"
+
+ CT_EndStep
}
# Initialises the .config file to sensible values