efinity: don't add unknown language files to sources

This commit is contained in:
Franck Jullien 2022-01-27 23:10:27 +01:00
parent ccd3ab17be
commit 5fd7c758a1
1 changed files with 2 additions and 0 deletions

View File

@ -203,6 +203,8 @@ def _build_xml(family, device, timing_model, build_name, sources):
# Add Design Sources. # Add Design Sources.
for filename, language, library in sources: for filename, language, library in sources:
if language is None:
continue
et.SubElement(design_info, "efx:design_file", { et.SubElement(design_info, "efx:design_file", {
"name" : filename, "name" : filename,
"version" : "default", "version" : "default",