From 5ecf3a3f4500da86ddfd65aafd2e4622ce4c65e3 Mon Sep 17 00:00:00 2001 From: John McMaster Date: Tue, 13 Nov 2018 19:47:53 -0800 Subject: [PATCH] parsedb: ignore mask lines Signed-off-by: John McMaster --- utils/parsedb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/parsedb.py b/utils/parsedb.py index 50019426..011a5ab2 100755 --- a/utils/parsedb.py +++ b/utils/parsedb.py @@ -11,6 +11,9 @@ def run(fnin, fnout=None, strict=False, verbose=False): line = line.strip() if line == '': continue + # TODO: figure out what to do with masks + if line.startswith("bit "): + continue tag, bits, mode = util.parse_db_line(line) if strict: assert not mode, "strict: got ill defined line: %s" % (line, )