Update the script for firmware production

This commit is contained in:
Bertrand Songis
2019-04-19 11:58:26 +02:00
parent a2b5f1d11b
commit 0fe89c5dd9
+1 -1
View File
@@ -39,7 +39,7 @@ def build(board, srcdir):
suffix = "" if index == 0 else "_%d" % index
filename = "output/firmware_%s_%s%s.bin" % (board.lower(), timestamp(), suffix)
if not os.path.exists(filename):
os.rename("build/firmware.bin", "output/firmware_%s_%s.bin" % (board.lower(), timestamp()))
os.rename("build/firmware.bin", filename)
break
index += 1
shutil.rmtree("build")