1.1 --- a/scripts/build/libc/newlib.sh Sun Jul 17 18:01:28 2011 +0200
1.2 +++ b/scripts/build/libc/newlib.sh Thu Oct 11 14:39:45 2012 +1000
1.3 @@ -20,7 +20,10 @@
1.4 libc_src="ftp://sources.redhat.com/pub/newlib"
1.5 avr32headers_src="http://dev.doredevelopment.dk/avr32-toolchain/sources"
1.6
1.7 - if [ -z "${CT_LIBC_NEWLIB_CVS}" ]; then
1.8 + if [ "${CT_LIBC_NEWLIB_CUSTOM}" = "y" ]; then
1.9 + CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
1.10 + "${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
1.11 + elif [ -z "${CT_LIBC_NEWLIB_CVS}" ]; then
1.12 CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src}
1.13 else
1.14 CT_GetCVS "newlib-$(libc_newlib_version)" \
1.15 @@ -36,6 +39,12 @@
1.16 }
1.17
1.18 do_libc_extract() {
1.19 + # If using custom directory location, nothing to do
1.20 + if [ "${CT_LIBC_NEWLIB_CUSTOM}" != "y" \
1.21 + -a -d "${CT_SRC_DIR}/newlib-$(libc_newlib_version)" ]; then
1.22 + return 0
1.23 + fi
1.24 +
1.25 CT_Extract "newlib-$(libc_newlib_version)"
1.26 CT_Patch "newlib" "$(libc_newlib_version)"
1.27