From 56d6603c2a3cd3c8e5a04e52c8f2d7ef6b809830 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 10 May 2021 09:32:02 +0200 Subject: analyze-config, to_json: use paramNames in exported json nodes --- bin/analyze-config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/analyze-config.py b/bin/analyze-config.py index 74718c6..fd8b982 100755 --- a/bin/analyze-config.py +++ b/bin/analyze-config.py @@ -183,7 +183,8 @@ def main(): ) with open("kconfigmodel.json", "w") as f: - json.dump(model.to_json(), f, cls=NpEncoder) + json_model = model.to_json(with_param_name=True, param_names=symbols) + json.dump(json_model, f, sort_keys=True, cls=NpEncoder) if __name__ == "__main__": -- cgit v1.2.3