Commit aceebf2f authored by Tiago Jorge's avatar Tiago Jorge
Browse files

Update: nanoxpython log check

parent 2188ccef
......@@ -2614,7 +2614,10 @@ struct config_bitfile bitfiles[] = {''');
os.environ["NANOXPLORE_BYPASS"] = "x86_64_UBUNTU_16"
with os.popen("make") as pipe:
status =
if "Generating bistream of project succeed" not in status:
# TODO Following check is hugly and error prone, since it inspects nanoxpython log. Change to check command return code instead using something like subprocess.check_call
# Extract return code out of make? or avoid using Makefiles and call directly nanoxpython etc.
# (Two parts of check is due to nanoxpython 2.9.0 having a typo in its log - 'bistream' - that nanoxpython 2.9.2. does not)
if ("Generating bistream of project succeed" not in status) and ("Generating bitstream of project succeed" not in status):
panic('Bitfile synthesis failed in "%s"' % os.getcwd())
btfileSize = os.path.getsize('bitfile-swapped.nxb') # in bytes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment