diff options
author | Martin Roth <martin@coreboot.org> | 2021-11-05 17:24:29 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-11-09 14:14:46 +0000 |
commit | a7648f2b27a7be37916ab7e62169e6841ab4caad (patch) | |
tree | 53908796b5eb3ba886f5d2329410ddfc3b8f597a /util/lint | |
parent | f9ae172b6f6df17018381a548c52082720e9f6f4 (diff) |
util/lint/kconfig_lint: Fix off by one error that missed last line
This error prevented the last line of the Kconfig tree from being
printed or added to the output file. This is a significant problem if
you try to use the generated file as the kconfig source, because it
changes CONFIG_HAVE_RAMSTAGE from defaulting to yes to defaulting to
NO. This causes the build to stop working.
Signed-off-by: Martin Roth <martin@coreboot.org>
Change-Id: I3ec11f1ac59533a078fd3bd4d0dbee9df825a97a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58992
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util/lint')
-rwxr-xr-x | util/lint/kconfig_lint | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint index a3495ce2bf..32bf92dc4d 100755 --- a/util/lint/kconfig_lint +++ b/util/lint/kconfig_lint @@ -1312,7 +1312,7 @@ sub print_wholeconfig { return unless $print_full_output; - for ( my $i = 0 ; $i < $#wholeconfig ; $i++ ) { + for ( my $i = 0 ; $i <= $#wholeconfig ; $i++ ) { my $line = $wholeconfig[$i]; chop( $line->{text} ); |