equal
deleted
inserted
replaced
72 for toolchainname, xsdfilename in toolchains.iteritems(): |
72 for toolchainname, xsdfilename in toolchains.iteritems(): |
73 if path.isfile(xsdfilename): |
73 if path.isfile(xsdfilename): |
74 DictXSD_toolchain["toolchain_"+toolchainname] = open(xsdfilename).read() |
74 DictXSD_toolchain["toolchain_"+toolchainname] = open(xsdfilename).read() |
75 |
75 |
76 # Get all xsd targets |
76 # Get all xsd targets |
77 for _targetname, nfo in targets.iteritems(): |
77 for target_name, nfo in targets.iteritems(): |
78 xsd_string = open(nfo["xsd"]).read() |
78 xsd_string = open(nfo["xsd"]).read() |
79 targetchoices += xsd_string % DictXSD_toolchain |
79 targetchoices += xsd_string % dict(DictXSD_toolchain, |
|
80 target_name=target_name) |
80 |
81 |
81 return targetchoices |
82 return targetchoices |
82 |
83 |
83 |
84 |
84 def GetTargetCode(targetname): |
85 def GetTargetCode(targetname): |