From a4feec224c99b8f3513124090e6b3b9ab91a8f0e Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Thu, 15 Jun 2017 16:20:28 +1200 Subject: 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 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 -- cgit v0.10.2-6-g49f6