tools wrapper: move choice selection to a more appropriate place
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 06 11:47:40 2009 +0200 (2009-09-06)
changeset 1515545179329bc5
parent 1514 461d964d7df2
child 1516 df99f43e9db7
tools wrapper: move choice selection to a more appropriate place

Move the tools wrapper choice selection down to the companion libraries
sub-menu, to avoid the user going back and forth in the menu.
config/companion_libs.in
config/toolchain.in
     1.1 --- a/config/companion_libs.in	Sun Sep 06 11:13:28 2009 +0200
     1.2 +++ b/config/companion_libs.in	Sun Sep 06 11:47:40 2009 +0200
     1.3 @@ -91,4 +91,35 @@
     1.4        
     1.5        Please note that for now, crosstool-NG can only build GMP and MPFR so.
     1.6  
     1.7 +choice
     1.8 +    bool
     1.9 +    prompt "|  Install tools wrapper as:"
    1.10 +    depends on WRAPPER_NEEDED
    1.11 +    default TOOLS_WRAPPER_SHELL
    1.12 +
    1.13 +config TOOLS_WRAPPER_SCRIPT
    1.14 +    bool
    1.15 +    prompt "shell script"
    1.16 +    help
    1.17 +      If your host has a shell, then you should say 'Y' here, to use
    1.18 +      a (very very simple) shell script as wrapper.
    1.19 +      
    1.20 +      See docs/overview.txt, section "Tools wrapper".
    1.21 +
    1.22 +config TOOLS_WRAPPER_EXEC
    1.23 +    bool
    1.24 +    prompt "executable"
    1.25 +    help
    1.26 +      If your host lacks a shell, then you should say 'Y' here, to use
    1.27 +      an executable.
    1.28 +      
    1.29 +      See docs/overview.txt, section "Tools wrapper".
    1.30 +
    1.31 +endchoice
    1.32 +
    1.33 +config TOOLS_WRAPPER
    1.34 +    string
    1.35 +    default "script" if TOOLS_WRAPPER_SCRIPT
    1.36 +    default "exec"   if TOOLS_WRAPPER_EXEC
    1.37 +
    1.38  endmenu
     2.1 --- a/config/toolchain.in	Sun Sep 06 11:13:28 2009 +0200
     2.2 +++ b/config/toolchain.in	Sun Sep 06 11:47:40 2009 +0200
     2.3 @@ -285,38 +285,4 @@
     2.4  
     2.5  endif # CROSS_NATIVE || CANADIAN
     2.6  
     2.7 -# Necessary for all types of toolchains, at least for gcc > 4.3.x
     2.8 -comment "Host specifics"
     2.9 -
    2.10 -choice
    2.11 -    bool
    2.12 -    prompt "|  Install tools wrapper as:"
    2.13 -    depends on WRAPPER_NEEDED
    2.14 -    default TOOLS_WRAPPER_SHELL
    2.15 -
    2.16 -config TOOLS_WRAPPER_SCRIPT
    2.17 -    bool
    2.18 -    prompt "shell script"
    2.19 -    help
    2.20 -      If your host has a shell, then you should say 'Y' here, to use
    2.21 -      a (very very simple) shell script as wrapper.
    2.22 -      
    2.23 -      See docs/overview.txt, section "Tools wrapper".
    2.24 -
    2.25 -config TOOLS_WRAPPER_EXEC
    2.26 -    bool
    2.27 -    prompt "executable"
    2.28 -    help
    2.29 -      If your host lacks a shell, then you should say 'Y' here, to use
    2.30 -      an executable.
    2.31 -      
    2.32 -      See docs/overview.txt, section "Tools wrapper".
    2.33 -
    2.34 -endchoice
    2.35 -
    2.36 -config TOOLS_WRAPPER
    2.37 -    string
    2.38 -    default "script" if TOOLS_WRAPPER_SCRIPT
    2.39 -    default "exec"   if TOOLS_WRAPPER_EXEC
    2.40 -
    2.41  endmenu