]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PATCH: kconfig choice defaults (2_2)
authorGreg Banks <gnb@alphalink.com.au>
Thu, 20 Jun 2002 06:50:53 +0000 (23:50 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 20 Jun 2002 06:50:53 +0000 (23:50 -0700)
The format for the "choice" statement is:

  choice 'prompt' "{sub-prompt sub-symbol}*" default-value

and the following is *not* legal config language (note the
positioning of the closing double quote):

  choice 'prompt' "{sub-prompt sub-symbol}* default-value"

It only happens to work because of a combination of accidental
side effects of the current parsers:

  *   unpaired sub-words inside the 2nd word are silently ignored
  *   the missing last word is silently treated as if empty

arch/mips64/config.in

index 34e555d8fffd915c3cd49369d74264850feb0252..533dc26cb130bcc55498475aba9d448cec9da9d4 100644 (file)
@@ -10,7 +10,7 @@ mainmenu_option next_comment
 comment 'Machine selection'
 choice 'Machine type'                                          \
        "SGI-IP22,Indy/Indigo2 CONFIG_SGI_IP22                  \
-        SGI-IP27,Origin200/2000 CONFIG_SGI_IP27 SGI-IP27,Origin200/2000"
+        SGI-IP27,Origin200/2000 CONFIG_SGI_IP27" SGI-IP27,Origin200/2000
 
 if [ "$CONFIG_SGI_IP27" = "y" ]; then
    bool '  IP27 N-Mode' CONFIG_SGI_SN0_N_MODE