[ipgen] Do not copy template description file The instantiated template is not a template any more, so no template description is necessary. Its presence actually adds to the confusion. Signed-off-by: Philipp Wagner <phw@lowrisc.org>
diff --git a/util/ipgen/renderer.py b/util/ipgen/renderer.py index 7607e25..f4e6ee8 100644 --- a/util/ipgen/renderer.py +++ b/util/ipgen/renderer.py
@@ -232,10 +232,9 @@ template_path = self.ip_template.template_path try: - # Copy everything but the templates. - shutil.copytree(template_path, - output_dir_staging, - ignore=shutil.ignore_patterns('*.tpl')) + # Copy everything but the templates and the template description. + ignore = shutil.ignore_patterns('*.tpl', '*.tpldesc.hjson') + shutil.copytree(template_path, output_dir_staging, ignore=ignore) # Render templates. for template_filepath in template_path.glob('**/*.tpl'):