Line 53... |
Line 53... |
script += 'exit_code=$?\n'
|
script += 'exit_code=$?\n'
|
script += 'rm %s\n' % vhdl_file
|
script += 'rm %s\n' % vhdl_file
|
script += 'exit $exit_code\n'
|
script += 'exit $exit_code\n'
|
# execute script
|
# execute script
|
print("compiling {} ... ".format(vhdl_file))
|
print("compiling {} ... ".format(vhdl_file))
|
return_code = call(script, stdout=None, stderr=STDOUT, shell=True)
|
return_code = call(script, stdout=None, stderr=STDOUT, shell=True, exectuable="/bin/bash")
|
# qmegawiz is very sloppy with it's exitcodes. We assume 0 is OK although this not always the case. :-(
|
# qmegawiz is very sloppy with it's exitcodes. We assume 0 is OK although this not always the case. :-(
|
if return_code == 0:
|
if return_code == 0:
|
print("*** Generation (probably) OK\n")
|
print("*** Generation (probably) OK\n")
|
else:
|
else:
|
print("*** Error during generation, exitcode={}\n".format(return_code))
|
print("*** Error during generation, exitcode={}\n".format(return_code))
|
Line 87... |
Line 87... |
script += 'exit_code=$?\n'
|
script += 'exit_code=$?\n'
|
script += 'rm %s\n' % vhdl_file
|
script += 'rm %s\n' % vhdl_file
|
script += 'exit $exit_code\n'
|
script += 'exit $exit_code\n'
|
# execute script
|
# execute script
|
print("compiling {} ... , output-dir = {}".format(vhdl_file, outputdir))
|
print("compiling {} ... , output-dir = {}".format(vhdl_file, outputdir))
|
return_code = call(script, stdout=None, stderr=STDOUT, shell=True)
|
return_code = call(script, stdout=None, stderr=STDOUT, shell=True, executable="/bin/bash")
|
if return_code == 0:
|
if return_code == 0:
|
print("*** Generation OK\n")
|
print("*** Generation OK\n")
|
else:
|
else:
|
print("*** Error during generation, exitcode={}\n".format(return_code))
|
print("*** Error during generation, exitcode={}\n".format(return_code))
|
error_code |= return_code
|
error_code |= return_code
|
Line 117... |
Line 117... |
% (options, extra_options, tcl_file)
|
% (options, extra_options, tcl_file)
|
script += 'exit_code=$?\n'
|
script += 'exit_code=$?\n'
|
script += 'exit $exit_code\n'
|
script += 'exit $exit_code\n'
|
# execute script
|
# execute script
|
print("compiling {} ... ".format(tcl_file))
|
print("compiling {} ... ".format(tcl_file))
|
return_code = call(script, stdout=None, stderr=STDOUT, shell=True)
|
return_code = call(script, stdout=None, stderr=STDOUT, shell=True, executable="/bin/bash")
|
if return_code == 0:
|
if return_code == 0:
|
print("*** Generation OK\n")
|
print("*** Generation OK\n")
|
else:
|
else:
|
print("*** Error during generation, exitcode={}\n".format(return_code))
|
print("*** Error during generation, exitcode={}\n".format(return_code))
|
error_code |= return_code
|
error_code |= return_code
|