scripts/build/cc/gcc.sh
changeset 3088 7f5a3382968f
parent 3074 bcfcd68a4e0d
child 3093 f5af323f7805
     1.1 --- a/scripts/build/cc/gcc.sh	Sat Oct 13 18:26:26 2012 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Thu Oct 11 14:39:41 2012 +1000
     1.3 @@ -4,7 +4,9 @@
     1.4  
     1.5  # Download gcc
     1.6  do_cc_get() {
     1.7 -    if [ -n "${CT_CC_V_SVN}" ]; then
     1.8 +    if [ "${CT_CC_CUSTOM}" = "y" ]; then
     1.9 +        CT_GetCustom "gcc" "${CT_CC_VERSION}" "${CT_CC_CUSTOM_LOCATION}"
    1.10 +    elif [ -n "${CT_CC_V_SVN}" ]; then
    1.11          # Get gcc from SVN!
    1.12          local svn_base
    1.13  
    1.14 @@ -59,6 +61,12 @@
    1.15  
    1.16  # Extract gcc
    1.17  do_cc_extract() {
    1.18 +    # If using custom directory location, nothing to do
    1.19 +    if [ "${CT_CC_CUSTOM}" = "y"                    \
    1.20 +         -a -d "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}" ]; then
    1.21 +        return 0
    1.22 +    fi
    1.23 +
    1.24      CT_Extract "gcc-${CT_CC_VERSION}"
    1.25      CT_Patch "gcc" "${CT_CC_VERSION}"
    1.26