summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2017-06-15 04:20:28 (GMT)
committerChris Packham <judge.packham@gmail.com>2017-06-15 04:29:21 (GMT)
commita4feec224c99b8f3513124090e6b3b9ab91a8f0e (patch)
treeec0d80403a6d79c24e190fad4ba59f7980b21ac1 /scripts/crosstool-NG.sh.in
parentf7c9ab33cf02a4e31c713dc02aeb135bea70ca97 (diff)
Set CT_BUILD_DIR prior to using it
Fixes #731 CT_BUILD_DIR is used in CT_DoExecLog. We need to ensure that it is set before the first call to CT_DoExecLog. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 1464f0f..78b3d0f 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -90,6 +90,7 @@ done
# Where will we work?
CT_WORK_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}"
+CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build"
CT_DoExecLog ALL mkdir -p "${CT_WORK_DIR}"
CT_DoExecLog DEBUG rm -f "${CT_WORK_DIR}/backtrace"
@@ -166,7 +167,6 @@ CT_PKGVERSION="crosstool-NG ${CT_VERSION}${CT_TOOLCHAIN_PKGVERSION:+ - ${CT_TOOL
# Compute the working directories names
CT_TARBALLS_DIR="${CT_WORK_DIR}/tarballs"
CT_SRC_DIR="${CT_WORK_DIR}/src"
-CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build"
CT_BUILDTOOLS_PREFIX_DIR="${CT_BUILD_TOP_DIR}/buildtools"
CT_STATE_DIR="${CT_WORK_DIR}/${CT_TARGET}/state"
# Note about HOST_COMPLIBS_DIR: it's always gonna be in the buildtools dir, or a