diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-09-29 04:27:29 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-09-29 04:27:29 -0500 |
| commit | 46887fa293cad9ba6c57e5f3dd4eebd50120b0d7 (patch) | |
| tree | b48c15cb5a3855505d28fce694ca997ab976ea5a /scripts | |
| parent | 1673f3b404bd1f54552439fc1ba32b737a9f2d83 (diff) | |
kbuild: Make scripts/Configure follow the definition of 'int'
Currently, scripts/Configure has code for the 'int' verb to take a
min/max. This violates the spec described in
Documentation/kbuild/config-language.txt. It also requires that if a
default is outside of +/- 10,000,000 that defaults be provided, or
'config' and 'oldconfig' will get stuck. The following removes the
support for a min/max from scripts/Configure.
(by Tom Rini)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Configure | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/Configure b/scripts/Configure index 1e8bc91f471f..52a50b7b5fff 100644 --- a/scripts/Configure +++ b/scripts/Configure @@ -415,25 +415,15 @@ function define_int () { # # int processes an integer argument with optional limits # -# int question define default [min max] +# int question define default # function int () { old=$(eval echo "\${$2}") def=${old:-$3} - if [ $# -gt 3 ]; then - min=$4 - else - min=-10000000 # !! - fi - if [ $# -gt 4 ]; then - max=$5 - else - max=10000000 # !! - fi rndval $2 while :; do readln "$1 ($2) [$def] " "$def" "$old" - if expr \( \( $ans + 0 \) \>= $min \) \& \( $ans \<= $max \) >/dev/null 2>&1 ; then + if expr "$ans" : '[0-9]*$' > /dev/null; then define_int "$2" "$ans" break else |
