# HG changeset patch # User "Yann E. MORIN" # Date 1269857067 -7200 # Node ID 6a0b74b87dbd8ba8cff269bca7513c4be0f0e283 # Parent 758d5137fe87ab34d0e2289c5620188ab6e69810 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 -r 758d5137fe87 -r 6a0b74b87dbd config/global/paths.in --- a/config/global/paths.in Mon Mar 29 00:15:32 2010 +0200 +++ b/config/global/paths.in Mon Mar 29 12:04:27 2010 +0200 @@ -4,7 +4,7 @@ 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 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 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 -r 758d5137fe87 -r 6a0b74b87dbd config/toolchain.in --- a/config/toolchain.in Mon Mar 29 00:15:32 2010 +0200 +++ b/config/toolchain.in Mon Mar 29 12:04:27 2010 +0200 @@ -14,7 +14,7 @@ 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