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>
This commit is contained in:
parent
f9ae172b6f
commit
a7648f2b27
|
@ -1312,7 +1312,7 @@ sub print_wholeconfig {
|
||||||
|
|
||||||
return unless $print_full_output;
|
return unless $print_full_output;
|
||||||
|
|
||||||
for ( my $i = 0 ; $i < $#wholeconfig ; $i++ ) {
|
for ( my $i = 0 ; $i <= $#wholeconfig ; $i++ ) {
|
||||||
my $line = $wholeconfig[$i];
|
my $line = $wholeconfig[$i];
|
||||||
chop( $line->{text} );
|
chop( $line->{text} );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue