summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2020-02-16 23:21:45 (GMT)
committerGitHub <noreply@github.com>2020-02-16 23:21:45 (GMT)
commit4897426202e57d894eedaa01440e0a606829bb5c (patch)
treeceff396eb301a7c8384fadcc5fab13a0572e2e9d
parentbe04d505106561360611c7246fc16a177c9bc167 (diff)
parentff0e8ac7ca0adc7cbbdffb43d3f7c0e50570ad04 (diff)
Merge pull request #1266 from nolange/move_builddir_kconfig
move BUILD_DIR variable into Kconfig
-rw-r--r--config/global/paths.in4
-rw-r--r--scripts/crosstool-NG.sh1
2 files changed, 4 insertions, 1 deletions
diff --git a/config/global/paths.in b/config/global/paths.in
index 0bf43d9..82ee4b3 100644
--- a/config/global/paths.in
+++ b/config/global/paths.in
@@ -55,6 +55,10 @@ config BUILD_TOP_DIR
string
default "${CT_WORK_DIR:-${CT_TOP_DIR}/.build}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
+config BUILD_DIR
+ string
+ default "${CT_BUILD_TOP_DIR}/build"
+
config PREFIX_DIR
string
prompt "Prefix directory"
diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh
index 31942b1..14be5ed 100644
--- a/scripts/crosstool-NG.sh
+++ b/scripts/crosstool-NG.sh
@@ -114,7 +114,6 @@ fi
# 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"