summaryrefslogtreecommitdiff
path: root/src/maker/ModelGeneration.py
diff options
context:
space:
mode:
authorrahulp132022-02-22 00:40:05 +0530
committerrahulp132022-02-22 00:50:13 +0530
commit0817c3856b05037037f9fe5fe54f233e913a97bd (patch)
treee98bb98074d9fb95088a16c33217b48f6c74edd0 /src/maker/ModelGeneration.py
parent5000da993e5d83bc4306a556da4ccc254145bd31 (diff)
downloadeSim-0817c3856b05037037f9fe5fe54f233e913a97bd.tar.gz
eSim-0817c3856b05037037f9fe5fe54f233e913a97bd.tar.bz2
eSim-0817c3856b05037037f9fe5fe54f233e913a97bd.zip
Updated MSYS paths
Diffstat (limited to 'src/maker/ModelGeneration.py')
-rwxr-xr-xsrc/maker/ModelGeneration.py19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/maker/ModelGeneration.py b/src/maker/ModelGeneration.py
index e7bbe9c9..208664f8 100755
--- a/src/maker/ModelGeneration.py
+++ b/src/maker/ModelGeneration.py
@@ -834,7 +834,14 @@ and set the load for input ports */
if os.path.exists(self.modelpath + "../verilated.o"):
os.remove(self.modelpath + "../verilated.o")
- self.cmd = "make -f V" + self.fname.split('.')[0]\
+ if os.name == 'nt':
+ # path to msys home directory
+ self.msys_home = self.parser.get('COMPILER', 'MSYS_HOME')
+ self.cmd = self.msys_home + "/mingw64/bin/mingw32-make.exe"
+ else:
+ self.cmd = "make"
+
+ self.cmd = self.cmd + " -f V" + self.fname.split('.')[0]\
+ ".mk V" + self.fname.split(
'.')[0] + "__ALL.a sim_main_" \
+ self.fname.split('.')[0] + ".o ../verilated.o"
@@ -918,9 +925,9 @@ and set the load for input ports */
try:
if os.name == 'nt':
- # path to msys bin directory where make is located
- self.msys_bin = self.parser.get('COMPILER', 'MSYS_HOME')
- self.cmd = self.msys_bin + "\\make.exe"
+ # path to msys home directory
+ self.msys_home = self.parser.get('COMPILER', 'MSYS_HOME')
+ self.cmd = self.msys_home + "/mingw64/bin/mingw32-make.exe"
else:
self.cmd = "make"
@@ -953,8 +960,8 @@ and set the load for input ports */
try:
if os.name == 'nt':
- self.msys_bin = self.parser.get('COMPILER', 'MSYS_HOME')
- self.cmd = self.msys_bin + "\\make.exe install"
+ self.msys_home = self.parser.get('COMPILER', 'MSYS_HOME')
+ self.cmd = self.msys_home + "/mingw64/bin/mingw32-make.exe install"
else:
self.cmd = "make install"
print("Running Make Install")