config: hide paths when used as a backend
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 29 12:04:27 2010 +0200 (2010-03-29)
changeset 18656a0b74b87dbd
parent 1864 758d5137fe87
child 1866 1539194a1877
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.
config/global/paths.in
config/toolchain.in
     1.1 --- a/config/global/paths.in	Mon Mar 29 00:15:32 2010 +0200
     1.2 +++ b/config/global/paths.in	Mon Mar 29 12:04:27 2010 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  
     1.5  config LOCAL_TARBALLS_DIR
     1.6      string
     1.7 -    prompt "Local tarballs directory"
     1.8 +    prompt "Local tarballs directory" if ! BACKEND
     1.9      default ""
    1.10      help
    1.11        If you have previously downloaded the tarballs, enter the PATH where
    1.12 @@ -12,16 +12,17 @@
    1.13  
    1.14  config SAVE_TARBALLS
    1.15      bool
    1.16 -    prompt "Save new tarballs"
    1.17 -    default n
    1.18 -    depends on LOCAL_TARBALLS_DIR != ""
    1.19 +    prompt "Save new tarballs" if ! BACKEND
    1.20 +    depends on LOCAL_TARBALLS_DIR != "" || BACKEND
    1.21 +    default y if BACKEND
    1.22 +    default n if ! BACKEND
    1.23      help
    1.24        If you say 'y' here, new downloaded tarballs will be saved in the
    1.25        directory you entered above.
    1.26  
    1.27  config WORK_DIR
    1.28      string
    1.29 -    prompt "Working directory"
    1.30 +    prompt "Working directory" if ! BACKEND
    1.31      default "${CT_TOP_DIR}/targets"
    1.32      help
    1.33        Set this to the directory where all build actions will be done.
    1.34 @@ -42,7 +43,7 @@
    1.35  
    1.36  config PREFIX_DIR
    1.37      string
    1.38 -    prompt "Prefix directory"
    1.39 +    prompt "Prefix directory" if ! BACKEND
    1.40      default "${HOME}/x-tools/${CT_TARGET}"
    1.41      help
    1.42        This is the path the toolchain will run from.
     2.1 --- a/config/toolchain.in	Mon Mar 29 00:15:32 2010 +0200
     2.2 +++ b/config/toolchain.in	Mon Mar 29 12:04:27 2010 +0200
     2.3 @@ -14,7 +14,7 @@
     2.4  
     2.5  config SYSROOT_DIR_PREFIX
     2.6      string
     2.7 -    prompt "sysroot prefix dir (READ HELP)"
     2.8 +    prompt "sysroot prefix dir (READ HELP)" if ! BACKEND
     2.9      depends on USE_SYSROOT
    2.10      default ""
    2.11      help