mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
buildman: Ignore blank lines during size checks
Today when parsing the .sizes files we get a warning about an invalid line in the file as it's blank. Solve this by checking that we have a non-blank line prior to processing. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -577,7 +577,8 @@ class Builder:
|
|||||||
sym = {}
|
sym = {}
|
||||||
for line in fd.readlines():
|
for line in fd.readlines():
|
||||||
try:
|
try:
|
||||||
size, type, name = line[:-1].split()
|
if line.strip():
|
||||||
|
size, type, name = line[:-1].split()
|
||||||
except:
|
except:
|
||||||
Print("Invalid line in file '%s': '%s'" % (fname, line[:-1]))
|
Print("Invalid line in file '%s': '%s'" % (fname, line[:-1]))
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user