From ff0e8ac7ca0adc7cbbdffb43d3f7c0e50570ad04 Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Sat, 19 Oct 2019 00:06:31 +0200 Subject: move BUILD_DIR variable into Kconfig this allows users to reference this variable, for ex. in TARGET_CFLAGS to remap paths. Signed-off-by: Norbert Lange 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" -- cgit v0.10.2-6-g49f6