# HG changeset patch # User "Yann E. MORIN" # Date 1351722692 -3600 # Node ID bd4af15b7c7577de5e7abbf0b2be1729523b0127 # Parent 79169596cfc9b6c89753a569593411c24d3486ad libc/uClibc: remove use of snapshots and specific date We now have the ability to use a custom location, so supporting snapshots or custom date is no longer needed. Let the user do the required preparation in this case. Signed-off-by: "Yann E. MORIN" diff -r 79169596cfc9 -r bd4af15b7c75 config/libc/uClibc.in --- a/config/libc/uClibc.in Thu Oct 11 14:39:44 2012 +1000 +++ b/config/libc/uClibc.in Wed Oct 31 23:31:32 2012 +0100 @@ -82,23 +82,6 @@ prompt "0.9.28.3 (OBSOLETE)" depends on OBSOLETE -# As of today (20100702) we can be pretty sure that every -# snapshots made since a month ago are post -0.9.30. - -config LIBC_UCLIBC_V_snapshot - bool - prompt "latest snapshot (EXPERIMENTAL)" - depends on EXPERIMENTAL - select LIBC_SUPPORT_NPTL - select LIBC_UCLIBC_0_9_30_or_later - -config LIBC_UCLIBC_V_specific_date - bool - prompt " (EXPERIMENTAL)" - depends on EXPERIMENTAL - select LIBC_SUPPORT_NPTL - select LIBC_UCLIBC_0_9_30_or_later - config LIBC_UCLIBC_CUSTOM bool prompt "Custom uClibc" @@ -122,7 +105,6 @@ config LIBC_VERSION string - prompt "Enter date (YYYYMMDD)" if LIBC_UCLIBC_V_specific_date # Don't remove next line # CT_INSERT_VERSION_STRING_BELOW default "0.9.33.2" if LIBC_UCLIBC_V_0_9_33_2 @@ -137,7 +119,6 @@ default "0.9.30" if LIBC_UCLIBC_V_0_9_30 default "0.9.29" if LIBC_UCLIBC_V_0_9_29 default "0.9.28.3" if LIBC_UCLIBC_V_0_9_28_3 - default "snapshot" if LIBC_UCLIBC_V_snapshot default "custom" if LIBC_UCLIBC_CUSTOM config LIBC_UCLIBC_0_9_32_or_later diff -r 79169596cfc9 -r bd4af15b7c75 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Thu Oct 11 14:39:44 2012 +1000 +++ b/scripts/build/libc/uClibc.sh Wed Oct 31 23:31:32 2012 +0100 @@ -10,11 +10,7 @@ # 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... if [ "${CT_LIBC_UCLIBC_CUSTOM}" = "y" ]; then CT_GetCustom "uClibc" "${CT_LIBC_VERSION}" \ "${CT_LIBC_UCLIBC_CUSTOM_LOCATION}" @@ -31,16 +27,14 @@ # Extract uClibc do_libc_extract() { - # If using custom directory location, nothing to do - if [ "${CT_LIBC_UCLIBC_CUSTOM}" = "y" \ + # If not using custom directory location, extract and patch + # Note: we do the inverse test we do in other components, + # because here we still need to extract the locales, even for + # custom location directory. Just use negate the whole test, + # to keep it the same as for other components. + if ! [ "${CT_LIBC_UCLIBC_CUSTOM}" = "y" \ -a -d "${CT_SRC_DIR}/uClibc-${CT_LIBC_VERSION}" ]; then - return 0 - fi - CT_Extract "uClibc-${CT_LIBC_VERSION}" - # Don't patch snapshots - if [ -z "${CT_LIBC_UCLIBC_V_snapshot}" \ - -a -z "${CT_LIBC_UCLIBC_V_specific_date}" \ - ]; then + CT_Extract "uClibc-${CT_LIBC_VERSION}" CT_Patch "uClibc" "${CT_LIBC_VERSION}" fi @@ -467,8 +461,6 @@ fi # Push the threading model - # Note: we take into account all of the .28, .29, .30 and .31 - # versions, here. Even snapshots with NPTL. case "${CT_THREADS}:${CT_LIBC_UCLIBC_LNXTHRD}" in none:) cat <<-ENDSED