Various modifications to accommodate the somewhat complicated
management of include statements in verilog files in order to
build the compiled libraries.
diff --git a/common/create_lib_library.py b/common/create_lib_library.py
index 7ee350c..bfa773d 100755
--- a/common/create_lib_library.py
+++ b/common/create_lib_library.py
@@ -42,11 +42,14 @@
def create_lib_library(destlibdir, destlib, do_compile_only=False, excludelist=[]):
- alllibname = destlibdir + '/' + destlib + '.lib'
+ # destlib should not have a file extension
+ destlibrooot = os.path.splitext(destlib)[0]
+
+ alllibname = destlibdir + '/' + destlibroot + '.lib'
if os.path.isfile(alllibname):
os.remove(alllibname)
- print('Diagnostic: Creating consolidated liberty library ' + destlib + '.lib')
+ print('Diagnostic: Creating consolidated liberty library ' + destlibroot + '.lib')
# Create exclude list with glob-style matching using fnmatch
if len(llist) > 0: