summaryrefslogtreecommitdiff
path: root/scripts/build/libc_uClibc.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-07 09:04:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-07 09:04:02 (GMT)
commit58b4c6d0a44d57b15d7857ecb27711a2224949e9 (patch)
treea44e1c3fbeac57ff5601b1cbd1400172b3c64bbe /scripts/build/libc_uClibc.sh
parent45e6df196be73e799e220810f9c48f8884d1049c (diff)
Merge the save-sample branch to trunk:
- reorder most of the environment setup, - geting, extracting and patching are now components' sub-actions, - save the current config as a sample to be used as a pre-configured target.
Diffstat (limited to 'scripts/build/libc_uClibc.sh')
-rw-r--r--scripts/build/libc_uClibc.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/build/libc_uClibc.sh b/scripts/build/libc_uClibc.sh
index 171736d..5b1504c 100644
--- a/scripts/build/libc_uClibc.sh
+++ b/scripts/build/libc_uClibc.sh
@@ -2,6 +2,25 @@
# Copyright 2007 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
+# Download uClibc
+do_libc_get() {
+ libc_src="http://www.uclibc.org/downloads
+ http://www.uclibc.org/downloads/snapshots
+ http://www.uclibc.org/downloads/old-releases"
+ # For uClibc, we have almost every thing: releases, and snapshots
+ # for the last month or so. We'll have to deal with svn revisions
+ # later...
+ CT_GetFile "${CT_LIBC_FILE}" ${libc_src}
+ # uClibc locales
+ [ "${CT_LIBC_UCLIBC_LOCALES}" = "y" ] && CT_GetFile "uClibc-locale-030818" ${libc_src}
+}
+
+# Extract uClibc
+do_libc_extract() {
+ CT_ExtractAndPatch "${CT_LIBC_FILE}"
+ # uClibc locales
+ [ "${CT_LIBC_UCLIBC_LOCALES}" = "y" ] && CT_ExtractAndPatch "uClibc-locale-030818"
+}
# Check that uClibc has been previously configured
do_libc_check_config() {