chore: Update paths in legacy build scripts
This commit is contained in:
@@ -41,7 +41,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/ghost_firm_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/ghost_firm_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/firmware_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ def build(board, translation, srcdir):
|
|||||||
suffix = "" if index == 0 else "_%d" % index
|
suffix = "" if index == 0 else "_%d" % index
|
||||||
filename = "output/tbs_firm_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
filename = "output/tbs_firm_%s_%s_%s%s.bin" % (board.lower(), translation.lower(), timestamp(), suffix)
|
||||||
if not os.path.exists(filename):
|
if not os.path.exists(filename):
|
||||||
shutil.copy("%s/firmware.bin" % path, filename)
|
shutil.copy("%s/arm-none-eabi/firmware.bin" % path, filename)
|
||||||
break
|
break
|
||||||
index += 1
|
index += 1
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user