[coreboot-gerrit] New patch to review for coreboot: kconfig_lint: Update prompt structure

Martin Roth (martinroth@google.com) gerrit at coreboot.org
Tue Jan 26 04:17:54 CET 2016


Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13461

-gerrit

commit b778d64b2a8ffb768c907b5d986b8a6b26384453
Author: Martin Roth <martinroth at google.com>
Date:   Mon Jan 25 16:42:13 2016 -0700

    kconfig_lint: Update prompt structure
    
    - The prompts were not getting incremented, so each prompt for a symbol
    would overwrite the previous.
    - Record the menu each prompt is in.
    
    Change-Id: Ia282a30344d5e135f4f2027be9aff0e49a4e5edb
    Signed-off-by: Martin Roth <martinroth at google.com>
---
 util/lint/kconfig_lint | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint
index 8bdca8d..2fbaf97 100755
--- a/util/lint/kconfig_lint
+++ b/util/lint/kconfig_lint
@@ -993,12 +993,17 @@ sub handle_prompt {
             }
 
             my $sym_num = $symbols{$inside_config}{count};
-            unless ( exists $symbols{$inside_config}{$sym_num}{prompt_max} ) {
+            if ( !exists $symbols{$inside_config}{$sym_num}{prompt_max} ) {
                 $symbols{$inside_config}{$sym_num}{prompt_max} = 0;
             }
+            else {
+                $symbols{$inside_config}{$sym_num}{prompt_max}++;
+            }
             my $prompt_max = $symbols{$inside_config}{$sym_num}{prompt_max};
             $symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt}         = $prompt;
             $symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt_line_no} = $line_no;
+
+            $symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt_menu} = @$menu_array_ref;
             if ($expression) {
                 $symbols{$inside_config}{$sym_num}{prompt}{$prompt_max}{prompt_depends_on} = $expression;
             }



More information about the coreboot-gerrit mailing list