Skip to content
Snippets Groups Projects
Commit 98a37b23 authored by dam1n19's avatar dam1n19
Browse files

Fixed filelist bug in python script for HTMLgen

parent 5a4de6fe
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ gen_html:
@echo building HTML tree
@mkdir -p $(OUT_DIR)/build
@echo Output Directory is $(OUT_DIR)/build
@echo Filelist is $(FILELIST)
$(MAKE) -C $(SOCLABS_NANOSOC_TECH_DIR) defs_gen
@(cd $(OUT_DIR)/build; \
rm *.html; rm *.gif; \
......
......@@ -37,11 +37,11 @@ def html_gen(filelist_path):
print("Generating HTML for: "+filelist_name)
# Find Top-level module name
top_mod = top_mod_find(filelist_path)
print(f"Top-level Module is: {top_mod}")
# Work out output Directory
outdir = os.getenv("SOCLABS_PROJECT_DIR")+"/html/"+filelist_name
print(outdir)
html_scipt_dir = os.getenv("SOCLABS_SOCTOOLS_FLOW_DIR")+"/bin/htmlgen"
subprocess.run(["make","-C",html_scipt_dir,"gen_html","TOP_MODULE="+top_mod,"OUT_DIR="+outdir])
subprocess.run(["make","-C",html_scipt_dir,"gen_html","TOP_MODULE="+top_mod,"OUT_DIR="+outdir,"FILELIST="+filelist_path])
def project_gen(args):
# Has filelist option been passed to script
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment