Tools: Support injecting param meta, do not generate code for these

This commit is contained in:
Lorenz Meier
2015-11-09 09:31:43 +01:00
parent a6ba6eb2e4
commit 56d67c6f6c
4 changed files with 161 additions and 4 deletions
+5 -1
View File
@@ -18,10 +18,14 @@ def indent(elem, level=0):
class XMLOutput():
def __init__(self, groups, board):
def __init__(self, groups, board, inject_xml_file_name):
xml_parameters = ET.Element("parameters")
xml_version = ET.SubElement(xml_parameters, "version")
xml_version.text = "3"
importtree = ET.parse(inject_xml_file_name)
injectgroups = importtree.getroot().findall("group")
for igroup in injectgroups:
xml_parameters.append(igroup)
last_param_name = ""
board_specific_param_set = False
for group in groups: