From bf785b301b34635e2ed1450df79cc0059ff6aea5 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 29 Mar 2010 12:04:27 +0200 Subject: config: hide paths when used as a backend When crosstool-NG is used as a backend, it is the responsibility of the upper-layer build-system to properly set paths, so we just hide the prompts in this case. diff --git a/config/global/paths.in b/config/global/paths.in index 7fc151b..63b8775 100644 --- a/config/global/paths.in +++ b/config/global/paths.in @@ -4,7 +4,7 @@ comment "Paths" config LOCAL_TARBALLS_DIR string - prompt "Local tarballs directory" + prompt "Local tarballs directory" if ! BACKEND default "" help If you have previously downloaded the tarballs, enter the PATH where @@ -12,16 +12,17 @@ config LOCAL_TARBALLS_DIR config SAVE_TARBALLS bool - prompt "Save new tarballs" - default n - depends on LOCAL_TARBALLS_DIR != "" + prompt "Save new tarballs" if ! BACKEND + depends on LOCAL_TARBALLS_DIR != "" || BACKEND + default y if BACKEND + default n if ! BACKEND help If you say 'y' here, new downloaded tarballs will be saved in the directory you entered above. config WORK_DIR string - prompt "Working directory" + prompt "Working directory" if ! BACKEND default "${CT_TOP_DIR}/targets" help Set this to the directory where all build actions will be done. @@ -42,7 +43,7 @@ config WORK_DIR config PREFIX_DIR string - prompt "Prefix directory" + prompt "Prefix directory" if ! BACKEND default "${HOME}/x-tools/${CT_TARGET}" help This is the path the toolchain will run from. diff --git a/config/toolchain.in b/config/toolchain.in index c3d0351..896ccca 100644 --- a/config/toolchain.in +++ b/config/toolchain.in @@ -14,7 +14,7 @@ config USE_SYSROOT config SYSROOT_DIR_PREFIX string - prompt "sysroot prefix dir (READ HELP)" + prompt "sysroot prefix dir (READ HELP)" if ! BACKEND depends on USE_SYSROOT default "" help -- cgit v0.10.2-6-g49f6