scripts/build/libc/uClibc.sh
changeset 3099 79169596cfc9
parent 2951 e9a326ae9369
child 3100 bd4af15b7c75
     1.1 --- a/scripts/build/libc/uClibc.sh	Fri Feb 24 16:08:32 2012 +0100
     1.2 +++ b/scripts/build/libc/uClibc.sh	Thu Oct 11 14:39:44 2012 +1000
     1.3 @@ -15,7 +15,12 @@
     1.4      # For uClibc, we have almost every thing: releases, and snapshots
     1.5      # for the last month or so. We'll have to deal with svn revisions
     1.6      # later...
     1.7 -    CT_GetFile "uClibc-${CT_LIBC_VERSION}" ${libc_src}
     1.8 +    if [ "${CT_LIBC_UCLIBC_CUSTOM}" = "y" ]; then
     1.9 +        CT_GetCustom "uClibc" "${CT_LIBC_VERSION}" \
    1.10 +                     "${CT_LIBC_UCLIBC_CUSTOM_LOCATION}"
    1.11 +    else
    1.12 +        CT_GetFile "uClibc-${CT_LIBC_VERSION}" ${libc_src}
    1.13 +    fi
    1.14      # uClibc locales
    1.15      if [ "${CT_LIBC_UCLIBC_LOCALES_PREGEN_DATA}" = "y" ]; then
    1.16          CT_GetFile "${uclibc_local_tarball}" ${libc_src}
    1.17 @@ -26,6 +31,11 @@
    1.18  
    1.19  # Extract uClibc
    1.20  do_libc_extract() {
    1.21 +    # If using custom directory location, nothing to do
    1.22 +    if [ "${CT_LIBC_UCLIBC_CUSTOM}" = "y" \
    1.23 +         -a -d "${CT_SRC_DIR}/uClibc-${CT_LIBC_VERSION}" ]; then
    1.24 +        return 0
    1.25 +    fi
    1.26      CT_Extract "uClibc-${CT_LIBC_VERSION}"
    1.27      # Don't patch snapshots
    1.28      if [    -z "${CT_LIBC_UCLIBC_V_snapshot}"      \