summaryrefslogtreecommitdiff
path: root/utils/tuning/libtuning/parsers
diff options
context:
space:
mode:
Diffstat (limited to 'utils/tuning/libtuning/parsers')
-rw-r--r--utils/tuning/libtuning/parsers/__init__.py1
-rw-r--r--utils/tuning/libtuning/parsers/yaml_parser.py17
2 files changed, 18 insertions, 0 deletions
diff --git a/utils/tuning/libtuning/parsers/__init__.py b/utils/tuning/libtuning/parsers/__init__.py
index 9d20d2fc..022c1e5d 100644
--- a/utils/tuning/libtuning/parsers/__init__.py
+++ b/utils/tuning/libtuning/parsers/__init__.py
@@ -3,3 +3,4 @@
# Copyright (C) 2022, Paul Elder <paul.elder@ideasonboard.com>
from libtuning.parsers.raspberrypi_parser import RaspberryPiParser
+from libtuning.parsers.yaml_parser import YamlParser
diff --git a/utils/tuning/libtuning/parsers/yaml_parser.py b/utils/tuning/libtuning/parsers/yaml_parser.py
new file mode 100644
index 00000000..5c1673a5
--- /dev/null
+++ b/utils/tuning/libtuning/parsers/yaml_parser.py
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2022, Paul Elder <paul.elder@ideasonboard.com>
+#
+# yaml_parser.py - Parser for YAML format config file
+
+from .parser import Parser
+
+
+class YamlParser(Parser):
+ def __init__(self):
+ super().__init__()
+
+ # \todo Implement this (it's fine for now as we don't need a config for
+ # rkisp1 LSC, which is the only user of this so far)
+ def parse(self, config_file: str, modules: list) -> (dict, list):
+ return {}, []