Commit:     870e6f7e15980d1a33615de572078406737ac22e
Parent:     7bbaac12a6036f55111a54b01908d0f3afe8622d
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Sat Dec 22 14:03:30 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Dec 23 12:54:37 2007 -0800

    kconfig: obey KCONFIG_ALLCONFIG choices with randconfig.
    Currently when using KCONFIG_ALLCONFIG with randconfig the choice options
    are clobbered.  As recommended by Roman, this adds an is_new test to see
    whether to select a new option or obey the existing one.
    This is a resend of the earlier patch a couple of weeks ago, since there
    was no reply.  Original thread is at
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
    Cc: Roman Zippel <[EMAIL PROTECTED]>
    Cc: Sam Ravnborg <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 scripts/kconfig/conf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index a38787a..8d6f174 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -374,7 +374,8 @@ static int conf_choice(struct menu *menu)
                case set_random:
-                       def = (random() % cnt) + 1;
+                       if (is_new)
+                               def = (random() % cnt) + 1;
                case set_default:
                case set_yes:
                case set_mod:
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to