scripts/crosstool-NG.sh.in
branchcanadian
changeset 1425 4131f2e955aa
parent 1423 7f5563e3ec2d
child 1426 cb3b1f427968
     1.1 --- a/scripts/crosstool-NG.sh.in	Fri Jun 26 19:09:22 2009 +0200
     1.2 +++ b/scripts/crosstool-NG.sh.in	Fri Jun 26 19:09:22 2009 +0200
     1.3 @@ -223,8 +223,10 @@
     1.4  CT_DoExecLog ALL mkdir -p "${CT_CONFIG_DIR}"
     1.5  CT_DoExecLog ALL mkdir -p "${CT_INSTALL_DIR}"
     1.6  CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}"
     1.7 -CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}"
     1.8 -CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}"
     1.9 +if [ -z "${CT_CANADIAN}" ]; then
    1.10 +    CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_STATIC_PREFIX_DIR}"
    1.11 +    CT_DoExecLog ALL mkdir -p "${CT_CC_CORE_SHARED_PREFIX_DIR}"
    1.12 +fi
    1.13  
    1.14  # Only create the state dir if asked for a restartable build
    1.15  [ -n "${CT_DEBUG_CT_SAVE_STEPS}" ] && CT_DoExecLog ALL mkdir -p "${CT_STATE_DIR}"
    1.16 @@ -319,10 +321,17 @@
    1.17  
    1.18      # Prepare mangling patterns to later modify BUILD and HOST (see below)
    1.19      case "${CT_TOOLCHAIN_TYPE}" in
    1.20 +        canadian)
    1.21 +            CT_REAL_TARGET="${CT_TARGET}"
    1.22 +            build_mangle="build_"
    1.23 +            host_mangle="host_"
    1.24 +            install_build_tools_for="BUILD HOST TARGET"
    1.25 +            ;;
    1.26          cross)
    1.27              CT_HOST="${CT_BUILD}"
    1.28              build_mangle="build_"
    1.29              host_mangle="build_"
    1.30 +            install_build_tools_for="BUILD HOST"
    1.31              ;;
    1.32          *)  CT_Abort "No code for '${CT_TOOLCHAIN_TYPE}' toolchain type!"
    1.33              ;;
    1.34 @@ -350,7 +359,7 @@
    1.35      # cross-tools for those mangled tuples.
    1.36      CT_DoLog DEBUG "Making build system tools available"
    1.37      CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/buildtools"
    1.38 -    for m in BUILD HOST; do
    1.39 +    for m in ${install_build_tools_for}; do
    1.40          r="CT_REAL_${m}"
    1.41          v="CT_${m}"
    1.42          p="CT_${m}_PREFIX"
    1.43 @@ -418,6 +427,7 @@
    1.44      # so don't add those PATHs in this case...
    1.45      case "${CT_TOOLCHAIN_TYPE}" in
    1.46          cross)  export PATH="${CT_PREFIX_DIR}/buildtools:${CT_PREFIX_DIR}/bin:${CT_CC_CORE_SHARED_PREFIX_DIR}/bin:${CT_CC_CORE_STATIC_PREFIX_DIR}/bin:${PATH}";;
    1.47 +        canadian) export PATH="${CT_PREFIX_DIR}/buildtools:${PATH}";;
    1.48          *)  ;;
    1.49      esac
    1.50